This file contains 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
// Example in The Go Playground: https://play.golang.org/p/huKjmMv--Fs | |
package main | |
import ( | |
"fmt" | |
"reflect" | |
"runtime" | |
"errors" | |
) |
This file contains 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
{ | |
"AWSTemplateFormatVersion": "2010-09-09", | |
"Resources": { | |
"MyVPC": { | |
"Type": "AWS::EC2::VPC", | |
"Properties": { | |
"CidrBlock": { | |
"Ref": "VpcCidrBlock" | |
} | |
} |
This file contains 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 normalize = (function() { | |
var from = "ÃÀÁÄÂÈÉËÊÌÍÏÎÒÓÖÔÙÚÜÛãàáäâèéëêìíïîòóöôùúüûÑñÇç", | |
to = "AAAAAEEEEIIIIOOOOUUUUaaaaaeeeeiiiioooouuuunncc", | |
mapping = {}; | |
for(var i = 0, j = from.length; i < j; i++ ) | |
mapping[ from.charAt( i ) ] = to.charAt( i ); | |
return function( str ) { | |
var ret = []; |
This file contains 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
❯ go build -x -v github.com/gobuffalo/buffalo | |
WORK=/var/folders/qz/wjhfff2n03n5kq3t522z2gvh0000gn/T/go-build325630241 | |
github.com/GeertJohan/go.rice/embedded | |
github.com/daaku/go.zipexe | |
github.com/kardianos/osext | |
mkdir -p $WORK/github.com/GeertJohan/go.rice/embedded/_obj/ | |
mkdir -p $WORK/github.com/GeertJohan/go.rice/ | |
mkdir -p $WORK/github.com/daaku/go.zipexe/_obj/ | |
cd /Users/pitakill/go/src/github.com/GeertJohan/go.rice/embedded | |
/usr/local/Cellar/go/1.8/libexec/pkg/tool/darwin_amd64/compile -o $WORK/github.com/GeertJohan/go.rice/embedded.a -trimpath $WORK -p github.com/GeertJohan/go.rice/embedded -complete -buildid 2fdb6e67466823cafd428e55e8b3646b5a777350 -D _/Users/pitakill/go/src/github.com/GeertJohan/go.rice/embedded -I $WORK -pack ./embedded.go |
This file contains 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
// Process consumes URL strings from stdin. | |
// Process must GET each URL and count "Go" substring in response. | |
// After all URLs are processed, process should print total number of "Go" | |
// occurences, e.g.: | |
// | |
// $ echo -e 'https://golang.org\nhttps://golang.org\nhttps://golang.org' | go run 1.go | |
// Count for https://golang.org: 9 | |
// Count for https://golang.org: 9 | |
// Count for https://golang.org: 9 | |
// Total: 27 |
This file contains 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
/* | |
* redsep backoffice | |
* */ | |
angular.module('redsep') | |
.factory('SharedData', ['$http', '$q', function($http, $q) { | |
var info = {}; | |
return $http.get('/api/v1/me').then(function(responseMe){ | |
info.user = responseMe.data; |
This file contains 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
# Packages | |
Todos los programas corren package main | |
Se pueden nombrar paquetes con otros nombres pero no corren solos | |
# Imports | |
Multiples líneas | |
Agrupados | |
# Exported names | |
Lo que se quiere exportar tiene que tener mayúscula al principio | |
# Functions | |
Uno o varios argumentos |
This file contains 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
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDD397yWlG4YoBVtMY7WRyoim2mf9nYZRR7gdAcBA8MiF+oUx/6hANeQeqN5vTJPbZauArTAPbstd0Vo2xcpnv5ukY8yKFCALPDt68Oucz9yQvJDe6C4SAwKSAr7o7/wq1coCJ7oVJ5ru0k/g9KdhvXzfpITsCSsUZdTe9KxoowPB0t5kBCY3zVXN/0Ht14IQ8RMM0g53fSElS2MjOXXYvZQEtecwhYNbmUbjJAeMDjqDsRPGU80oiEw5/0yhoPiOGMp37si1wzAAQPoT9lhr2TJR0QfJZUqeJolYBOPQzJ8xKA2iB4nP6Nn9zhNP+c9sFfh2l/4/fVdsOc7ONmvUWwSTy4V7RUeAbg6roRbmP2ckN94DsinPKIAZR/4ZmVMIaQNs4q1zZdRWNmM31gTqzTiMgZkYa+Xaf+130qidFfMejimbYH8boQDJXmCx4Qhkxml3B4y/85tx4IIoCap3uq6OCxI6GQBJdI8bNVVHUqz1at+u1Sqegrtrqan7I00wZfJrsX2PYpDcp4uOWUKhY7M4cWqgIPqpiA/rqhHpDEnVflkLNlfJ5ANgDCHXto/dYROzWt/jWulIHqG/Tkas16qQw+qGoZ9I+/VhD0tBidPruNz7Se7BmCrkZlkqwbPiF8amiaqr0unLMxkbO0hpJezoHttZQ/cww1YwzduyFk6Q== pitakill@euler | |
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDs1r1B24LQaVZmFFSfDeuHCaTVEi1QWVuuqrAOEGNMEuN3VzCncruFsXDd9yIdbpGrsx5F1z96Gt5Vqw5wtUH6YWAXuMCdd2eZgWM22XyJ58gDj8FcKWKuWcIwNFY9bVotyjSi7FDEcVj2HZZZJ/Z1mMZfOsHJjMB3XxDS9PfCKF5PmLupi08h+OqxQUa2Fmr2l9O6HrhRToxNUDcnhwhmykll87f4y/tpTlAJEKwA/VkYSeFOVnYx |