[]
brackets()
parentheses, round brackets{}
curly braces<>
chevrons, angle brackets;
semi-colon:
colon.
period, dot,
comma
This file contains hidden or 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
curl -v -u USERNAME -X POST https://api.github.com/authorizations --data "{\"scopes\":[\"gist\"], \"note\": \"SublimeText 2/3 Gist plugin\"}" |
This file contains hidden or 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
function fibonacciNth ( position ) { | |
switch (position) { | |
case 0: | |
return -1; | |
case 1: | |
return 0; | |
case 2: | |
return 1; | |
default: | |
return fibonacciNth(position-1)+fibonacciNth(position-2); |
This file contains hidden or 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
/* ---- endpoints API ---- */ | |
function disableAllEndpoints( $endpoints ){ | |
foreach ($endpoints as $clave => $valor) { | |
unset( $endpoints[$clave] ); | |
} | |
return $endpoints; | |
} |
This file contains hidden or 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
<!doctype html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<title>Document</title> | |
<meta name="description" content=""> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<!-- Bootstrap --> |
This file contains hidden or 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 buttons = document.querySelectorAll(".fbProfileBrowserListItem .uiButton") | |
for (var i=0; i<buttons.length; i++) { | |
$(buttons[i]).click(); | |
} |
This file contains hidden or 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/env bash | |
# Config Variables | |
args=("$@") | |
SUBDOMAIN_KEY=${args[0]} | |
source ../site/.env | |
sudo sh -c "echo '192.168.50.5 $SUBDOMAIN_KEY.$DOMAIN_CURRENT_SITE' >> /etc/hosts" |
This file contains hidden or 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
<?php | |
/* From => http://www.rarst.net/wordpress/debug-wordpress-hooks/ */ | |
function dump_hook( $tag, $hook ) { | |
ksort($hook); | |
echo "<pre>>>>>>\t$tag<br>"; | |
foreach( $hook as $priority => $functions ) { |
This file contains hidden or 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 Person = function(x){ | |
if(x){this.fullName = x}; | |
}; | |
Person.prototype.whatIsMyFullName = function() { | |
return this.fullName; | |
} | |
var cody = new Person('cody lindley'); | |
var lisa = new Person('lisa lindley'); | |
console.log(cody.whatIsMyFullName(), lisa.whatIsMyFullName()); |