I hereby claim:
- I am s992 on github.
- I am seanw_ (https://keybase.io/seanw_) on keybase.
- I have a public key ASAXfjoSHNL42_cgoIS5smI-jenxdU0weKyHqDBd6yYaTwo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
#/usr/bin/env bash | |
# MIT © Sindre Sorhus - sindresorhus.com | |
# git hook to run a command after `git pull` if a specified file was changed | |
# Run `chmod +x post-merge` to make it executable then put it into `.git/hooks/`. | |
changed_files="$(git diff-tree -r --name-only --no-commit-id ORIG_HEAD HEAD)" | |
check_run() { | |
echo "$changed_files" | grep --quiet "$1" && eval "$2" |
(function() { | |
"use strict"; | |
angular.module( "myApp", [ | |
"rateLimiter" | |
]) | |
.config([ "rateLimiterConfigProvider", function( rateLimiterConfigProvider ) { | |
rateLimiterConfigProvider.addLimiter( /api\.battle\.net/, 10, 1100 ); | |
}]) |
$ git clone [email protected]:username/username.github.com.git | |
$ cd username.github.com | |
$ git checkout source | |
$ mkdir _deploy | |
$ cd _deploy | |
$ git init | |
$ git remote add origin [email protected]:username/username.github.com.git | |
$ git pull origin master | |
$ cd .. |
import geb.Browser | |
import geb.Page | |
import geb.Module | |
class NavigationLink extends Module { | |
def linkText | |
static content = { | |
link { $("a", text: linkText) } |
import javax.swing.JOptionPane | |
// for: http://www.raymondcamden.com/index.cfm/2014/2/21/Friday-Puzzler-Rolling-the-die | |
class DiceRoller { | |
static Random random = new Random() | |
static void main( String[] args ) { | |
String roller = JOptionPane.&showInputDialog "Enter your roll:" |
<cfscript> | |
function test() { | |
return "I break when serialized!"; | |
} | |
writeOutput( serializeJSON( test ) ); | |
</cfscript> |
<cfscript> | |
string = "I'm a string!"; | |
numeric = 12345; | |
boolean = true; | |
chromelogger.log( string, numeric, boolean ); | |
</cfscript> |
<cfscript> | |
// Ignore cfscript tags, they're just for syntax highlighting. | |
component { | |
... | |
function onRequestStart() { | |
if( structKeyExists( url, 'ormDropCreate' ) ) { | |
dropTables(); | |
ormReload(); |
<!--- Plug in an existing datasource ---> | |
<cfquery name="qDatabases" datasource="YOUR_DSN_HERE"> | |
SHOW DATABASES; | |
</cfquery> | |
<!--- Log in to the CF admin with your password ---> | |
<cfset adminAPI = createObject( 'component', 'cfide.adminapi.administrator' ) /> | |
<cfset adminAPI.login( 'YOUR_PASSWORD_HERE' ) /> | |
<!--- Loop over our query and create datasources for each database in MySQL ---> |