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
# -- coding: utf-8 | |
# program: rinzler.sc | |
( | |
SynthDef.new(\senoide, { // nome do synth e início da função principal. | |
arg freq=440, amp=0.5; // argumentos recebidos pelo synth com valores padrão determinados | |
var audio; // variáveis que serão usadas dentro do Synth | |
audio = SinOsc.ar(freq,0,amp); // Gerando a senoide com os argumentos recebidos. |
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/python | |
print 'a' + 'b' + 'c' | |
gera = '' | |
for y in range(0, 20): | |
temp = y*'a' | |
for k in range(0, y + y): | |
temp2 = k * 'b' | |
for s in range(0, y): | |
gera += temp + temp2 + s * 'c' |
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/sh | |
echo "EEC" | |
echo "171 Parallel Architectures" | |
echo "John Owens" | |
echo "UC Davis" | |
mkdir -p $HOME/ipl/ | |
cd $HOME/ipl/ |
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 | |
[[ -z "$PROFILE_NAME" ]] && PROFILE_NAME=Tomorrow | |
[[ -z "$PROFILE_SLUG" ]] && PROFILE_SLUG=Tomorrow | |
[[ -z "$GCONFTOOL" ]] && GCONFTOOL=gconftool | |
[[ -z "$BASE_KEY" ]] && BASE_KEY=/apps/gnome-terminal/profiles | |
PROFILE_KEY="$BASE_KEY/$PROFILE_SLUG" | |
gset() { |
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
:- dynamic animal/2. | |
animal(joselito, ovo). | |
animal(vaca, gado). | |
:- dynamic tipoPele/2. | |
tipoPele(joselito, pelo). | |
tipoPele(vaca, europa). |
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
classe('mamifero') :- patas(1),glmamarias(1),pelo(1),nadadeiras(2),branquias(2),oviparo(2),asa(2). | |
assertClasse('mamifero') :- assert(patas(1)),assert(glmamarias(1)),assert(pelo(1)),assert(nadadeiras(2)),assert(branquias(2)),assert(oviparo(2)),assert(asa(2)). | |
animal('cachorro', 'mamifero'). | |
classe(anonimous) :- patas(2),glmamarias(2),pelo(2),nadadeiras(2),branquias(2),oviparo(2),asa(2). | |
assertClasse(anonimous) :- assert(patas(2)),assert(glmamarias(2)),assert(pelo(2)),assert(nadadeiras(2)),assert(branquias(2)),assert(oviparo(2)),assert(asa(2)). | |
animal(chinforimpula, anonimous). | |
animal(churros, anonimous). | |
animal(cavalo, mamifero). | |
classe(maluco) :- patas(2),glmamarias(2),pelo(1),nadadeiras(1),branquias(1),oviparo(1),asa(1). |
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
λ p5qpl-am ~ → λ git master → git push | |
Enter passphrase for key '/home/tonussi/.ssh/id_rsa': | |
Counting objects: 10, done. | |
Delta compression using up to 2 threads. | |
Compressing objects: 100% (8/8), done. | |
Writing objects: 100% (8/8), 774 bytes, done. | |
Total 8 (delta 5), reused 0 (delta 0) | |
remote: => Syncing Gitorious... [OK] | |
To [email protected]:settings/settings.git | |
35fc9bd..d05eb98 master -> master |
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
# -*- encoding : utf-8 -*- | |
class CriaJogo < ActiveRecord::Migration | |
def self.up | |
create_table "jogo", :force => true do |t| | |
t.column :ranking, :string | |
t.column :jogadores, :string | |
end | |
end |
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
heroku addons:add heroku-postgresql:dev | |
Added heroku-postgresql:dev to citygame-ruby (Free). | |
Attached as HEROKU_POSTGRESQL_GOLD_URL Database has | |
been created and is available ! This database is empty. | |
If upgrading, you can transfer ! data from another | |
database with pgbackups:restore. |
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
______ __ ______ __ __ ______ ______ __ __ ______ | |
/\ ___\ /\ \ /\__ _\ /\ \_\ \ /\ ___\ /\ __ \ /\ "-./ \ /\ ___\ | |
\ \ \____ \ \ \ \/_/\ \/ \ \____ \ \ \ \__ \ \ \ __ \ \ \ \-./\ \ \ \ __\ | |
\ \_____\ \ \_\ \ \_\ \/\_____\ \ \_____\ \ \_\ \_\ \ \_\ \ \_\ \ \_____\ | |
\/_____/ \/_/ \/_/ \/_____/ \/_____/ \/_/\/_/ \/_/ \/_/ \/_____/ | |
Digite 'help' a qualquer momento para visualizar os comandos disponíveis | |
Chame seus amigos e divirta-se :) |