Most example code taken from A Tour of Go, which is an excellent introduction to Go. If you're new to Go, do that tour. Seriously.
- Imperative language
Most example code taken from A Tour of Go, which is an excellent introduction to Go. If you're new to Go, do that tour. Seriously.
# Atom Cheatsheet. | |
# Project Key Bindings. | |
- 'cmd-shift-p': open the command palette. | |
- 'cmd-p' or 'cmd-t': open the fuzzy finder to find a file. | |
- 'cmd-b': look for a file that is already open. | |
- 'cmd-shift-b': search the list of files modified and untracked in your project repository. | |
- 'ctrl-0': open and focus the the tree view. |
/** | |
* PHP-like print_r() equivalent for JavaScript Object | |
* | |
* @author Faisalman <[email protected]> | |
* @license http://www.opensource.org/licenses/mit-license.php | |
* @link http://gist.github.com/879208 | |
*/ | |
var print_r = function (obj, t) { | |
// define tab spacing |
Currently considering https://github.com/webdriverio/webdrivercss
Core Goals:
############################################# | |
# Push de la rama actual | |
git push origin $rama_actual | |
############################################# | |
# Volver a un commit anterior, descartando los cambios | |
git reset --HARD $SHA1 | |
############################################# | |
# Ver y descargar Ramas remotas |
<?php | |
class Csv | |
{ | |
public static function fromArray($rows, $delimiter = ',') | |
{ | |
if (empty($rows)) { | |
return ''; | |
} |
<?php | |
use SimpleXMLElement; | |
class Xml { | |
/** | |
* @param array $data | |
* @param string $root | |
* @return SimpleXMLElement |
/* | |
* Sample file using the Linux kernel coding convention. | |
* | |
* https://www.kernel.org/doc/Documentation/CodingStyle | |
* | |
* General rules: | |
* - Indents are tabs and must be 8 spaces wide. | |
* - Each line must be at most 80 characters long. | |
* - Use C-style comments. | |
* - File names should be lower-case.c |
#!/bin/sh | |
usage() { | |
echo "usage: $0 [-s] [-v] [-L] [-h HTTPHOST] [-X HTTPMETHOD] URL" | |
exit 1 | |
} | |
args=`getopt svLX:h: $*` | |
if [ $? != 0 ] ; then | |
usage |