I hereby claim:
- I am jondavidjohn on github.
- I am jondavidjohn (https://keybase.io/jondavidjohn) on keybase.
- I have a public key whose fingerprint is 2BB8 D8E8 77E8 326C 19CD B287 FA54 810B BB1F E0C0
To claim this, I am signing this object:
/** @jsx React.DOM */ | |
var React = require('react'), | |
Toggle = require('./components/Toggle'); | |
var App = React.createClass({ | |
toggleChanged: function(newState) { | |
alert('toggle changed to ' + (newState ? 'on' : 'off')); | |
}, |
var cheerio = require('cheerio'); | |
var $ = cheerio('<div><h1 id="hello">Header 1 with nothing <code><span>sub text</span></code></h1></div>'); | |
console.log($.find('h1').html()); | |
console.log($.find('h1').text()); | |
console.log($.html()); |
SELECT entry_id, DATEDIFF(from_unixtime(field_id_162, '%Y-%m-%d'), from_unixtime(field_id_267, '%Y-%m-%d')) as days, CONVERT_TZ(from_unixtime(field_id_267, '%m/%d/%Y %h:%i %A'), 'GMT', 'CST') as start, from_unixtime(field_id_162, '%m/%d/%Y %h:%i %A') as end FROM exp_channel_data Where field_id_162 != '' AND field_id_729 != '' AND field_id_267 BETWEEN UNIX_TIMESTAMP('2015-01-01') AND UNIX_TIMESTAMP('2015-02-12') |
var payform = require('payform'); | |
var $ = require('jquery'); | |
var domify = require('domify'); | |
$.payform = payform; | |
$.payform.fn = {}; | |
$.fn.payform = function() { | |
var args = [].slice.call(arguments), | |
method = args.shift(); | |
I hereby claim:
To claim this, I am signing this object:
$ch = curl_init(); | |
curl_setopt( $ch, CURLOPT_URL, $centralUrl ); | |
curl_setopt( $ch, CURLOPT_FAILONERROR, 1 ); | |
curl_setopt( $ch, CURLOPT_FOLLOWLOCATION, 1 ); | |
curl_setopt( $ch, CURLOPT_RETURNTRANSFER, 1 ); | |
curl_setopt( $ch, CURLOPT_TIMEOUT, 3 ); | |
curl_setopt( $ch, CURLOPT_POST, true ); | |
curl_setopt( $ch, CURLOPT_HTTPAUTH, CURLAUTH_BASIC ); | |
curl_setopt( $ch, CURLOPT_USERPWD, $authString ); |
var component = (function($){ | |
var default_options = { | |
array_option : [], | |
string_option : "default" | |
}; | |
return { | |
other_function: function(args) { |
$('button').click(function() { | |
$('form').each(function() { | |
var action = $(this).attr("action"); | |
var data = $form.serialize(); | |
$.post(action, data); | |
}); | |
}); |
function gitphpcheck () { | |
filearray=() | |
while read line; do | |
if [[ $line =~ ^(M|N) ]] | |
then | |
filename="`echo $line | awk '{ print $2 }'`" | |
filearray+=($filename) |
# this snippet rewrites your prompt to include the current branch if in a git repo | |
parse_git_branch() { | |
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/' | |
} | |
PS1="\[\e[01;33m\]\w \$(parse_git_branch): \[\e[00m\]" |