Run cmd as Administrator and type the following:
> netsh wlan set hostednetwork mode=allow ssid=HotspotName key=HotspotPass keyUsage=persistentHotspotName: The Hotspot SSID (Hotspot name)
HotspotPass: The Hotspot Password.
| #This is inspired by this piral animation of the same dataset | |
| #http://www.climate-lab-book.ac.uk/2016/spiralling-global-temperatures/ | |
| #and this R code to produce the animation | |
| #https://gist.github.com/jebyrnes/b34930da0052a86f5ffe254ce9900357 | |
| # It also uses elements of this http://www.r-bloggers.com/making-faceted-heatmaps-with-ggplot2/ | |
| # and this https://rpubs.com/bradleyboehmke/weather_graphic graphic | |
| library(dplyr) | |
| library(tidyr) | |
| library(ggplot2) |
| require(tm) | |
| require(wordcloud ) | |
| require(descr) | |
| fileName <- "data.txt" | |
| conn <- file(fileName,open="r") | |
| names <-readLines(conn) | |
| List <- c() | |
| for (i in 1:length(names)){ | |
| #remove commas from the fullname |
| // Android app | |
| private void setupParse(Context context) { | |
| Parse.initialize(this, <PARSE_APP_ID>, <PARSE_CLIENT_KEY>); | |
| ParseInstallation.getCurrentInstallation().put("uniqueId", getWifiMacAddress(context)); | |
| ParseInstallation.getCurrentInstallation().saveInBackground(); | |
| } | |
| private String getWifiMacAddress(Context context) { | |
| WifiManager wifiManager = (WifiManager) context.getSystemService(Context.WIFI_SERVICE); | |
| if (wifiManager != null && wifiManager.getConnectionInfo() != null) { |
| <ul> | |
| <?php | |
| require($_SERVER['DOCUMENT_ROOT'] . '/wordpress/wp-load.php'); | |
| $args = array( | |
| // 'cat' => 3, // Only source posts from a specific category | |
| 'posts_per_page' => 2 // Specify how many posts you'd like to display | |
| ); | |
| $latest_posts = new WP_Query( $args ); | |
| if ( $latest_posts->have_posts() ) { | |
| while ( $latest_posts->have_posts() ) { |
| d3.csv("data/gates_money.csv", function(data) { | |
| custom_bubble_chart.init(data); | |
| custom_bubble_chart.toggle_view('all'); | |
| }); | |
| $(document).ready(function() { | |
| $('#view_selection a').click(function() { | |
| var view_type = $(this).attr('id'); | |
| $('#view_selection a').removeClass('active'); | |
| $(this).toggleClass('active'); |
| <html> | |
| <head> | |
| <title>D3 Axis Example</title> | |
| <script src="http://d3js.org/d3.v2.js"></script> | |
| </head> | |
| <body> | |
| <button id="rescale" onclick="rescale();">Rescale</button> | |
| <script> | |
| var width = 700, |
| // Given a query string "?to=email&why=because&first=John&Last=smith" | |
| // getUrlVar("to") will return "email" | |
| // getUrlVar("last") will return "smith" | |
| // Slightly more concise and improved version based on http://www.jquery4u.com/snippets/url-parameters-jquery/ | |
| function getUrlVar(key){ | |
| var result = new RegExp(key + "=([^&]*)", "i").exec(window.location.search); | |
| return result && unescape(result[1]) || ""; | |
| } |
| <?php | |
| /** | |
| * QR Code + Logo Generator | |
| * | |
| * http://labs.nticompassinc.com | |
| */ | |
| $data = isset($_GET['data']) ? $_GET['data'] : 'http://labs.nticompassinc.com'; | |
| $size = isset($_GET['size']) ? $_GET['size'] : '200x200'; | |
| $logo = isset($_GET['logo']) ? $_GET['logo'] : FALSE; |
| import android.content.Context; | |
| import android.content.DialogInterface; | |
| import android.content.res.TypedArray; | |
| import android.preference.DialogPreference; | |
| import android.util.AttributeSet; | |
| import android.view.View; | |
| import com.quietlycoding.android.picker.NumberPicker; | |
| public class NumberPickerPreference extends DialogPreference { |