- Shrink to Grow(Daniel Bovensiepen)
- Identical Production, Staging and Development Environments Using Chef, AWS and Vagrant(Christopher Rigor)
- Fewer Constraints, More Concurrency.(Ryan Smith)
- Webruby: Now you can write your favorite Ruby code for the browser!(Xuejie "Rafael" Xiao)
- Contributing to Ruby(Zachary Scott)
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
class Test::Unit::UI::Console::RedGreenTestRunner < Test::Unit::UI::Console::TestRunner | |
def initialize(suite, output_level=NORMAL, io=$stdout) | |
# monkey patched passando os parametros suite, output_level | |
super(suite, output_level) | |
# monkey patched @io = io | |
@io = io | |
end | |
# monkey patched adicionado o parametro color=nil | |
def output_single(something, color=nil, level=NORMAL) |
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
pt-BR: | |
activerecord: | |
models: | |
attributes: | |
# Devise | |
user: | |
name: Nome | |
email: E-mail |
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
# ~~~~~~~~~~~~~~~~~~~~~~~~ | |
# souDev: @CoGUMm | |
# WebSite: www.CoGUMm.net | |
# ~~~~~~~~~~~~~~~~~~~~~~~~ | |
#encoding: utf-8 | |
#!/usr/bin/env ruby | |
require 'rubygems' | |
require 'net/http' | |
require 'json/pure' |
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
require 'rubygems' | |
require 'sinatra' | |
require 'hpricot' | |
require 'open-uri' | |
html = '<html><head><title>Feed de imagens</title>' | |
html += '<meta http-equiv="Content-Type" content="text/html;charset=UTF-8"></meta></head>' | |
html += '<link rel="stylesheet" href="http://passets-lt.pinterest.com/css/pinboard_759c5bb3.css" type="text/css" media="all"/>' | |
html += '<body><h1>Feed de imagens</h1>' |
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 cannonRotated = false; | |
var Robot = function(robot) { | |
robot.rotateCannon(-90); | |
cannonRotated = true; | |
}; | |
Robot.prototype.onIdle = function(ev) { | |
var robot = ev.robot; | |
if (!cannonRotated){ |
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
[cogumm@cogumm]/power-polygon$ sudo node run.js | |
module.js:340 | |
throw err; | |
^ | |
Error: Cannot find module 'bytes' | |
at Function.Module._resolveFilename (module.js:338:15) | |
at Function.Module._load (module.js:280:25) | |
at Module.require (module.js:364:17) | |
at require (module.js:380:17) |
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
import feedparser | |
def showRSS(bot, update): | |
rss_url = feedparser.parse("http://distrowatch.com/news/dwd.xml") | |
for i in range(1): | |
sendMessage(bot, update, | |
rss_url.entries[i].title + ": \n" + | |
rss_url.entries[i].link) | |
return rss_url |
Quer deixar o seu seu bate-papo de texto do Discord com um sabor diferente? Você está com sorte, pois este é um Guia de Markdown para o nosso amado Discord!. O Discord usa o Markdown, um sistema simples de formatação de texto simples que ajudará você a destacar suas frases. Veja como fazer isso! Apenas adicione alguns caráteres antes e depois de texto desejado para mudar o estilo! Vou te mostrar alguns exemplos ...
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
echo ################################################################ | |
echo Script limpador de spooler de impressão | |
echo LEMBRE-SE DE EXECUTAR COMO ADMINISTRADOR | |
echo NÃO ME RESPONSABILIZO POR MAUS DANOS À MÁQUINA COM ESTE SCRIPT, | |
echo FAVOR UTILIZÁ-LO SE APENAS TIVER CERTEZA DO QUE ESTEJA FAZENDO. | |
echo ################################################################ | |
echo Este script tem como objetivo limpar a fila de impressão do Uindolus | |
net stop spooler | |
echo spooler finalizado | |
cd %systemroot%\system32\spool\printers |
OlderNewer