This file contains 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
// Beat typeracer! | |
// this is a little script that can be copy+pasted into the console | |
// on typerace.net and auto beat it for you | |
// Include jQuery | |
var jq = document.createElement('script'); | |
jq.src = "//ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"; | |
document.getElementsByTagName('head')[0].appendChild(jq); | |
// wait for jQuery to be loaded |
This file contains 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
<html> | |
<head> | |
<title>Fun test</title> | |
<link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css"> | |
<script src="//ajax.googleapis.com/ajax/libs/jquery/2.1.0/jquery.min.js"></script> | |
<script src="//netdna.bootstrapcdn.com/bootstrap/3.1.1/js/bootstrap.min.js"></script> | |
<script src="//cdnjs.cloudflare.com/ajax/libs/async/0.9.0/async.js"></script> | |
<script> |
This file contains 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
Verifying myself: My Bitcoin username is +matt_green. https://onename.io/matt_green |
This file contains 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
'use strict'; | |
var checkXPath = '//*[@id="gc-appbar"]/div/div[2]/div[1]/div[1]/span/div'; | |
var archiveXPath = '//*[@id="gc-appbar"]/div/div[2]/div[2]'; | |
function check() { | |
var click = new MouseEvent('click', { | |
'view': window, | |
'bubbles': true, | |
'cancelable': false |
This file contains 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
'use strict'; | |
var gulp = require('gulp'); | |
var gulpUglify = require('./index.js'); | |
var through = require('through2'); | |
var errorStream = through.obj(function(file, encoding, callback) { | |
// Do something improper | |
var b = a.c; | |
callback(); |
This file contains 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
'use strict'; | |
/* | |
* This gist is meant to accompany the blog post at | |
* https://emgeee.com/making-multiple-ajax-requests-with-es6-generators | |
*/ | |
var request = require('request') | |
var Promise = require('bluebird') | |
var fs = require('fs') | |
var crypto = require('crypto') |
This file contains 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 gulp = require('gulp'); | |
var gutil = require('gulp-util'); | |
var livereload = require('gulp-livereload'); | |
var watch = require('gulp-watch'); | |
var http = require('http'); | |
var ecstatic = require('ecstatic'); | |
var watchGlob = 'www/**/*.{js,html,css}'; | |
var iosDest = "platforms/ios/www/"; |
This file contains 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
app.config(function ($provide) { | |
$provide.decorator('Widget', function ($delegate) { | |
$delegate.prototype.sing = function () { | |
console.log('LA LA LA LA LA') | |
} | |
return $delegate | |
}) | |
}) |
This file contains 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 N = 50 | |
function asyncFunc (cb) { | |
setTimeout(() => cb(Math.random()), 100) | |
} | |
function loop (N, results, done) { | |
// Recursion base-case | |
if (results.length >= N) return done(results) |
This file contains 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
Verifying that "matt_green.id" is my Blockstack ID. https://onename.com/matt_green |
OlderNewer