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
CREATE TABLE test_order ( | |
`orderId` int unsigned NOT NULL AUTO_INCREMENT, | |
orderNumber varchar(255), | |
orderDate varchar(255), | |
shipperReference varchar(255), | |
shipperReference2 varchar(255), | |
shippingService varchar(255), | |
orderGroup varchar(255), | |
`name` varchar(255), | |
company varchar(255), |
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 | |
# per @madeindjs's suggestion: | |
# For a quick install, into your project folder enter this command line: | |
# | |
# curl https://gist.githubusercontent.com/thealexbaron/fd2a390dc6f8958d1b1ffe8b66b676bb/raw/5f5ed22c281a8488116a41e4496075f8b28d106a/prepare-commit-msg.sh > .git/hooks/prepare-commit-msg && chmod u+x .git/hooks/prepare-commit-msg | |
# | |
# which does: | |
# - get Gist | |
# - copy into .git/hooks/prepare-commit-msg file |
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
#!/usr/bin/perl | |
use strict; | |
use warnings; | |
use Scalar::Util qw(looks_like_number); | |
use Data::Dumper; | |
# update https://gist.github.com/thealexbaron/45fb567e2c1349983865adbfe6945b57 when we update this file |
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
{ | |
"2012":{ | |
"single":[ | |
{ | |
"bracket":"8700", | |
"percent":"10" | |
}, | |
{ | |
"bracket":"35350", | |
"percent":"15" |
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
/** @jsx React.DOM */ | |
jest.dontMock('../components/pendingData.jsx'); | |
describe('PendingData', function() { | |
var React = require('react/addons'); | |
var PendingData = require('../components/pendingData.jsx'); | |
var TestUtils = React.addons.TestUtils; |
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
import java.util.Random; | |
public class Fields | |
{ | |
Random dice = new Random(); | |
int oneDThree; | |
public void getRand() | |
{ |
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 iterationCount = 3; | |
function doIterations(cb) { | |
if (iterationCount !== 0) { | |
// print the number of iterations, then wait 5 seconds | |
setTimeout(function(){ console.log(iterationCount); iterationCount --; doIterations(cb); }, 500); | |
} | |
else { | |
// now that we're done, fire the callback (if one exists) | |
cb && cb(); | |
} |