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
#!/bin/bash | |
# URLS | |
URL_DOCKER="deb https://apt.dockerproject.org/repo ubuntu-xenial main" | |
URL_GOLANG="https://storage.googleapis.com/golang/go1.7.4.linux-amd64.tar.gz" | |
URL_MONGODB="https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-ubuntu1604-3.4.0.tgz" | |
URL_NETBEANS="http://download.netbeans.org/netbeans/8.2/final/bundles/netbeans-8.2-php-linux-x64.sh" | |
# Upgrade and install | |
add-apt-repository -y ppa:numix/ppa |
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
/** | |
* MongoDB fixtures | |
* | |
* Command: mongo dbname scores.js | |
*/ | |
var names = ["exam", "essay", "quiz"]; | |
for (var i = 0; i < 1000; i++) { | |
for (j = 0; j < 3; j++) { |
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
#!/bin/bash | |
export CLICOLOR=1 | |
export LSCOLORS=GxFxCxDxBxegedabagaced | |
############## | |
### COLORS ### | |
############## | |
BLACK="\[\033[0;30m\]" |
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
{ | |
"window.zoomLevel": 1, | |
"editor.fontSize": 15, | |
"editor.mouseWheelZoom": false, | |
"terminal.external.osxExec": "iTerm.app" | |
} |
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
package main | |
type Letter uint16 | |
const ( | |
A Letter = 1 << iota | |
B | |
C | |
D | |
All = (D << 1) - A |
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
// Simple Chat Server. It does not broadcast to other people. | |
// It can be used to create a bot. | |
package main | |
import ( | |
"bufio" | |
"fmt" | |
"io" | |
"log" | |
"net" |
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
package main | |
import ( | |
"fmt" | |
"time" | |
) | |
func main() { | |
TimeDisplay(true) | |
} |
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
// http.Flusher example | |
package main | |
import ( | |
"fmt" | |
"net/http" | |
"time" | |
) |