[]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
| /* ---- 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()); |
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
| # @gf3’s Sexy Bash Prompt, inspired by “Extravagant Zsh Prompt” | |
| # Shamelessly copied from https://github.com/gf3/dotfiles | |
| if [[ $COLORTERM = gnome-* && $TERM = xterm ]] && infocmp gnome-256color >/dev/null 2>&1; then | |
| export TERM=gnome-256color | |
| elif infocmp xterm-256color >/dev/null 2>&1; then | |
| export TERM=xterm-256color | |
| fi | |
| if tput setaf 1 &> /dev/null; then |
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
| // Use Gists to store code you would like to remember later on | |
| console.log(window); // log the "window" object to the console |