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
{"lastUpload":"2018-12-04T04:54:52.615Z","extensionVersion":"v3.2.2"} |
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
// Stub Implementation | |
// =================== | |
function notify (msg) { console.log(msg) } | |
function renderListItem () { /* UI update goes here */ } | |
var movieApi = { | |
titles: [ | |
'IV – A New Hope (1977)', | |
'V – The Empire Strikes Back (1980)', |
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'; | |
let http = require('http'); | |
// Generator function, wrapper for http.get. | |
function *get(url) { | |
// Each generator function should call yield initially, | |
// to get the caller object, which contains done(result) | |
// and fail(error) functions. Pass the argument when | |
// done/failed doing asynchronous stuff appropriately. |
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
public class DebugApplication extends Application { | |
private static final String TAG = DebugApplication.class.getSimpleName(); | |
private static ActivityLifecycleCallbacks activityCallbacks = new ActivityLifecycleCallbacks() { | |
@Override | |
public void onActivityCreated(Activity activity, Bundle bundle) { /* Don't care */ } | |
@Override |
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 fs = require('fs-extra'), | |
_ = require('lodash'), | |
Promise = require('bluebird'), | |
archiver = require('archiver'), | |
scraper = require('website-scraper'); | |
var defaultOptions = { | |
'User-Agent': 'Mozilla/5.0 (Linux; Android 4.2.1; en-us; Nexus 4 Build/JOP40D) AppleWebKit/535.19 (KHTML, like Gecko) Chrome/18.0.1025.166 Mobile Safari/535.19' | |
}; |
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
// npm install bcrypt | |
var bcrypt = require('bcrypt'); | |
var password = process.argv[2]; | |
bcrypt.genSalt(function(err, salt) { | |
if (err) { | |
console.log(err); | |
} | |
console.log('salt: ' + salt + ' (length: ' + salt.length + ')'); |
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
#!/bin/bash | |
# Should work with GitLab/GitHub/Bitbucket | |
username="your-username" | |
host="your-host.com" # eg: github.com | |
clone_dir="`pwd`/repos" | |
repos=( | |
"repo-abc" | |
"repo-def" |
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
jQuery.extend = jQuery.fn.extend = function() { | |
var options, name, src, copy, copyIsArray, clone, | |
target = arguments[0] || {}, | |
i = 1, | |
length = arguments.length, | |
deep = false; | |
// Handle a deep copy situation | |
if ( typeof target === "boolean" ) { | |
deep = target; |
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
#!/bin/bash | |
# with macports installed | |
sudo port install sqlite3 && | |
git clone https://github.com/oojah/sqlite3-pcre.git sqlite3-pcre && | |
cd sqlite3-pcre && | |
gcc -shared -o pcre.so -L/opt/local/lib -lsqlite3 -lpcre -Werror pcre.c -I/opt/local/include && | |
sudo cp pcre.so /opt/local/lib/sqlite3 && | |
echo ".load /opt/local/lib/sqlite3/pcre.so" > ~/.sqliterc |