See discussion on Hacker News. Built with D3 and TopoJSON.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var common = require('../common'); | |
var MultipartParserStub = GENTLY.stub('./multipart_parser', 'MultipartParser'), | |
QuerystringParserStub = GENTLY.stub('./querystring_parser', 'QuerystringParser'), | |
JSONParserStub = GENTLY.stub('./json_parser', 'JSONParser'), | |
EventEmitterStub = GENTLY.stub('events', 'EventEmitter'), | |
FileStub = GENTLY.stub('./file'); | |
var formidable = require(common.lib + '/index'), | |
IncomingForm = formidable.IncomingForm, | |
events = require('events'), |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env node | |
var cordova_util = require('cordova/src/util'); | |
var projectRoot = cordova_util.isCordova(process.cwd()); | |
var projectXml = cordova_util.projectConfig(projectRoot); | |
var projectConfig = new cordova_util.config_parser(projectXml); | |
projectConfig.name(); | |
var fs = require ('fs'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
document.addEventListener("deviceready", function () { | |
function fail(error) { | |
console.log(error.code); | |
} | |
function gotFileWriter(writer) { | |
writer.onwriteend = function(evt) { | |
var startScript = function (src) { | |
var script = document.createElement ('SCRIPT'); | |
script.setAttribute ("type", "text/javascript"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
plugins.shareSocial.share = function (message, image, url, title, successCallback, failCallback) { | |
function success(args) { | |
successCallback && successCallback(args); | |
} | |
function fail(args) { console.log (args); | |
failCallback && failCallback(args); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Microsoft.Phone.Controls; | |
using System; | |
using System.Collections.Generic; | |
using System.Diagnostics; | |
using System.IO; | |
using System.IO.IsolatedStorage; | |
using System.Linq; | |
using System.Reflection; | |
using System.Text; | |
using System.Windows; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function MakeEl (name, attributes) { | |
var el = document.createElement (name); | |
if (typeof attributes == 'object') { | |
for (var i in attributes) { | |
el.setAttribute (i, attributes[i]); | |
if (i.toLowerCase() == 'class') { | |
el.className = attributes[i]; // for IE compatibility | |
} else if (i.toLowerCase() == 'style') { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE USER 'backupdb'@'localhost' IDENTIFIED BY '++++++++++++++++++++++++++++++++++'; | |
GRANT RELOAD ON *.* TO 'backupdb'@'localhost'; | |
GRANT CREATE, INSERT, DROP ON mysql.ibbackup_binlog_marker TO 'backupdb'@'localhost'; | |
GRANT CREATE, INSERT, DROP ON mysql.backup_progress TO 'backupdb'@'localhost'; | |
GRANT CREATE, INSERT, SELECT, DROP ON mysql.backup_history TO 'backupdb'@'localhost'; | |
GRANT REPLICATION CLIENT ON *.* TO 'backupdb'@'localhost'; | |
GRANT SELECT,LOCK TABLES ON *.* TO 'backupdb'@'localhost'; | |
GRANT SELECT,LOCK TABLES ON information_schema.* TO 'backupdb'@'localhost'; | |
GRANT SUPER ON *.* TO 'backupdb'@'localhost'; | |
GRANT CREATE TEMPORARY TABLES ON mysql.* TO 'backupdb'@'localhost'; |
may 14, 2014
• added help • fixed some issues for fonts with space in family name
OlderNewer