Skip to content

Instantly share code, notes, and snippets.

View ndhu's full-sized avatar

Andy Hulstkamp ndhu

View GitHub Profile
@ndhu
ndhu / phantomjsGoogleSearch
Created January 8, 2014 23:02
phantomjs. example on how to search google, collect links of search result and scrape multiple pages of the search result
/**
* Created by andy hulstkamp
*/
var webpage = require("webpage"),
fs = require("fs");
var debug = false,
pageIndex = 0,
allLinks = [],
@ndhu
ndhu / FileSystemAPITest
Created December 25, 2013 20:43
FileSystem API write and read text
(function (window, document, undefined) {
'use strict';
window.FS = window.FS || (function () {
//use fallback if fileSystem is prefixed in specifc UA
window.requestFileSystem = window.requestFileSystem || window.webkitRequestFileSystem;
var saveTextFile = function (fileName, value, saveCompleteCallback) {
@ndhu
ndhu / A-Pen-by-Andy-Andreas-Hulstkamp.markdown
Last active December 28, 2015 03:49
A Pen by Andy Andreas Hulstkamp.