Run cmd as Administrator and type the following:
> netsh wlan set hostednetwork mode=allow ssid=HotspotName key=HotspotPass keyUsage=persistent
HotspotName: The Hotspot SSID (Hotspot name)
HotspotPass: The Hotspot Password.
CREATE TABLE `user` ( | |
`twitter_id` int(10) unsigned NOT NULL, | |
`created_at` timestamp NOT NULL default '0000-00-00 00:00:00', | |
`name` varchar(80) NOT NULL, | |
`screen_name` varchar(30) NOT NULL, | |
`location` varchar(120) default NULL, | |
`description` varchar(640) default NULL, | |
`profile_image_url` varchar(400) NOT NULL, | |
`url` varchar(100) default NULL, |
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 { |
<?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; |
// 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]) || ""; | |
} |
<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, |
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'); |
<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() ) { |
// 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) { |
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 |