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
# ------------------------------------------------------------------- | |
# docker build -t juniorz/jenkins git://gist.github.com/7494802.git | |
# ------------------------------------------------------------------- | |
FROM phusion/baseimage:0.9.1 | |
MAINTAINER Reinaldo Junior <[email protected]> | |
RUN apt-get update && apt-get upgrade -y | |
# Remove authentication rights for insecure_key. | |
RUN echo /bin/sh -c \"rm -f /root/.ssh/authorized_keys /home/*/.ssh/authorized_keys\" > /sbin/remove_authorized_keys &&\ |
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
require 'rubygems' | |
require 'fog' | |
Fog.mock! | |
describe 'Bug' do | |
it 'should not fail' do | |
compute = Fog::Compute.new( | |
:provider => 'openstack', | |
:openstack_username => 'user', |
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
require 'formula' | |
# Documentation: https://github.com/mxcl/homebrew/wiki/Formula-Cookbook | |
# PLEASE REMOVE ALL GENERATED COMMENTS BEFORE SUBMITTING YOUR PULL REQUEST! | |
class Sfml < Formula | |
homepage 'http://www.sfml-dev.org' | |
version '2.0-rc' | |
url 'https://github.com/LaurentGomila/SFML/archive/2.0-rc.zip' |
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
//FightCode can only understand your robot | |
//if its class is called Robot | |
var Robot = function(robot) { | |
var count = 0; | |
var width = 13; // 13px | |
}; | |
Robot.prototype.turnTo = function(robot, degree) { |
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
function Robot(robot) { | |
this.dd = false; | |
} | |
// well, we need to do something... | |
// whenever our robot is idle, this method gets called. | |
Robot.prototype.onIdle = function(ev) { | |
var robot = ev.robot; |
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
function Robot(robot) { | |
this.dd = false; | |
} | |
// well, we need to do something... | |
// whenever our robot is idle, this method gets called. | |
Robot.prototype.onIdle = function(ev) { | |
var robot = ev.robot; |
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
//FightCode can only understand your robot | |
//if its class is called Robot | |
var Robot = function(robot) { | |
robot.clone(); | |
if(robot.parentId){ | |
robot.turn(90); | |
robot.ahead(50); | |
} |
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
webkit_server (capybara-webkit) leaks memory on the following environment: | |
* Mac OS X Mountain Lion (10.8.2) | |
* XQuartz 2.7.4 | |
* Qt 4.8.3 | |
How to fix: | |
1) Downgrade Qt to 4.7.4 | |
brew unlink qt | |
cd `brew --prefix` |
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
class User < ActiveRecord::Base | |
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
module MyAwesomeEngine | |
class Engine < Rails::Engine | |
#isolate_namespace MyAwesomeEngine | |
config.after_initialize do | |
puts "Terminou a inicializacao" | |
end | |
# Antes de cada requisição (1 vez em production e sempre em development) | |
config.to_prepare do |