Skip to content

Instantly share code, notes, and snippets.

#include<stdio.h>
#include<string.h>
int subpadrao(char romano[], int decimal, int base, char letra_1, char letra_5, char letra_10) {
while(decimal >= 10 * base) {
strncat(romano, &letra_10, 1);
decimal -= 10 * base;
}
if(decimal >= 9 * base) {
strncat(romano, &letra_1, 1);
@elomar
elomar / bissexto.asm
Created October 8, 2009 23:48
Lista de Exercícios de Assembly
# Considerando que o ano está em $7
main: # Divisíveis por 400 são bissextos
addi $8, $0, 400
div $7, $8
mfhi $9
beq $9, 0, bissexto
# Divisíveis por 100 e não por 400 não são bissextos
addi $8, $0, 100
dns - http://freedns.ws
google apps - http://google.com/a
yola, pra criar o site - http://www.yola.com/
logonerds, logos por $50 - http://www.logonerds.com/
wuffo, forms builder - http://wufoo.com/
analytics, pra monitorar - http://www.google.com/analytics/
blog (tumblr)
twitter
adwords
run 'gem sources -a http://gemcutter.org'
git :init
file '.gitignore', <<TXT
log/*.log
tmp/**/*
db/*.sqlite3
.DT_Store
TXT
run 'gem sources -a http://gemcutter.org'
git :init
file '.gitignore', <<TXT
log/*.log
tmp/**/*
db/*.sqlite3
.DT_Store
TXT
def pagseguro
render unless request.post?
seller = Seller.find params[:id]
pagseguro_notification(seller.authenticity_token) do |notification|
# ...
end
end
= pagseguro_form @order, :submit => "Efetuar pagamento!", :email => @seller.email

Bio

Why do you use Ruby and/or Rails? How would you like to see them improve?

Outline the specific project you're proposing.

Why is this important to the Ruby and/or Rails communities at large? Why is this important to you?

namespace :templates do
desc "Copy all the templates from rails to the application directory for customization"
task :copy do
require 'rubygems'
require 'rubygems/gem_runner'
require 'fileutils'
railties = (version = ENV['VERSION']) ?
Gem.cache.find_name('railties', "= #{version}").first :
Gem.cache.find_name('railties').sort_by { |g| g.version }.last
base_path = railties.full_gem_path
ART 131 001 Photography I
ART 141 001 Beginning Graphic Design
ASTR 1010 001 Intro to Astronomy I
BUS 101 001 Intro to Business
BUS 104 W01 Computer Presentations
BUS 112 T01 Personal Finance
BUS 278 T01 Entrepreneurship