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
I may not agree with what you say, but I'll defend to the death your right to say it. | |
- Voltaire |
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
val t1 = "scala owns java" | |
var t2 = "scala owns java" // Var can change | |
val t2:String = "scala owns java" // You can define the type, but rarely you have to | |
def up(x:String) = x.toUpperCase | |
def up(x:String):String = { x.toUpperCase } // You can have code blocks for more than one line command. | |
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
# This is a study for a programming language I will create later this year. | |
# Suggestions gladly accepted | |
# Oh, and I'm also looking for a cool non-geek name :) | |
import os | |
animal is class(name) | |
#look, nothing here! | |
dog is class |
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
folder = "/Users/alcides/Desktop/timelapse" | |
puts "recording..." | |
1.upto 60 do | |
`screencapture -xC #{folder}/#{Time.now.strftime("%I-%M-%S")}.tiff` | |
sleep 30 | |
end | |
puts "converting..." |
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
source ~/Code/Support/applebin/_git-completion.sh | |
PS1='\W$(__git_ps1 " (%s)") >>> ' |
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
- Twitter: | |
Broadcast 1 - N | |
Um sistema em que eu sigo várias pessoas e sempre que uma altera o seu estado, eu recebo-o. | |
Da mesma foram, sempre que eu altero o meu estado, as pessoas que me seguem, recebem-no. | |
Março de 2006 | |
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
(1..49).to_a.sort_by{ rand }.slice(0..6).sort |
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
startup_message off | |
bindkey -d ^? stuff ^H | |
bindkey -d ^@ stuff ^H | |
caption always "%w" | |
hardstatus on | |
hardstatus alwayslastline | |
hardstatus string "%w" |
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
#screen stuff | |
if [[ `screen -list | grep Detached | wc -l` == 0 ]]; then | |
if [ ! ${SSH_TTY} ]; then | |
exec screen | |
else | |
screen | |
fi | |
else | |
if [ ! ${SSH_TTY} ]; then |
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
#!/bin/sh | |
# MySQL Backup | |
DIRS="/home/alcides/admin /home/alcides/sites" | |
NOW=$(date +"%Y-%m-%d") | |
DAY=$(date +"%a") | |
FULLBACKUP="Sun" | |
BACKUP=/home/alcides/backups/$NOW |
OlderNewer