git branch
- the one with the
*
next to it is your currentHEAD
git branch -r
- repositories that are hosted on the repo will be preceded with
origin/
// Available variables: | |
// - Machine | |
// - interpret | |
// - assign | |
// - send | |
// - sendParent | |
// - spawn | |
// - raise | |
// - actions |
// Available variables: | |
// - Machine | |
// - interpret | |
// - assign | |
// - send | |
// - sendParent | |
// - spawn | |
// - raise | |
// - actions |
<?php | |
/** | |
* WordPress Query Comprehensive Reference | |
* Compiled by luetkemj - luetkemj.com | |
* | |
* CODEX: http://codex.wordpress.org/Class_Reference/WP_Query | |
* Source: http://core.trac.wordpress.org/browser/tags/3.3.1/wp-includes/query.php | |
*/ | |
$args = array( |
// hide HMR and GET | |
/^((?!HMR|GET).)*$/ | |
// Hide Warnings | |
/^((?!warning).)*$/ | |
// Hide all | |
/^((?!warning|HMR|GET).)*$/ | |
// wrap regex in / / if using Canary |
const url = require('url'); | |
const crypto = require('crypto'); | |
const config = { | |
secret: 'YOUR_SECRET', | |
clientId: 'CLIENT_ID' | |
} | |
const generateSignature = (address) => { | |
const request = url.parse(address); |
/** | |
<p>Given a collection (array of objects) and a value, find the index of the closest matching value (rounding UP).</p> | |
<br/> | |
<strong.=>example:</strong> | |
<pre> | |
var arr = [{ val: 0}, { val: 25}, { val: 50}, { val: 75}, { val: 100}]; | |
Given: 0 // given value to find | |
Expected: 0 //index |
var counter = { x: 0 }; | |
var p = []; | |
function count(c) { | |
var time = Math.floor(Math.random() * 1000); | |
return new Promise(function (resolve) { | |
setTimeout(function () { | |
var x = c.x++; | |
console.log(x + ':' + time); | |
resolve(x + ':' + time); |
var data = { | |
name: 'james', | |
age: 30 | |
}; | |
function doSomething(){ | |
console.log('- doSomething'); | |
return (...args) => { |
var master = { | |
data: { | |
values: [1, 2, 3], | |
labels: ["one", "two", "three"], | |
food: { | |
name: "pizza" | |
}, | |
groups: [ | |
{ | |
brand: 'zillow', |