View super.js
1 2 3 4 5 6 7 8 9 10
App = { fields: {}, field: {} };
 
App.field.Field = function(){
this.callSuper = function(args){
var name = arguments.callee.caller.$name;
var parent = new this.parent;
parent[name].apply(this, args);
};
this.render = function(json){
console.log("Field", json);
View test_induced_design.rb
1 2 3 4 5 6 7 8 9 10
#RSPEC
require 'spec_helper'
 
describe EmployeesController do
let(:employee_params) { ... }
describe "POST create" do
it "should create bla bla bla" do
employee = mock_model(Employee, id: 666)
Employee.should_receive(:create).with(employee_params).and_return employee
post :create, employee: employee_params
View export.rb
1 2 3 4 5 6 7 8 9 10
namespace :export do
desc "Gerando SEED"
task :gerar => :environment do
File.open("/Users/cmilfont/projetos/bookmaker/lib/tasks/import.rake", "w:UTF-8") do |file|
file.write "#encoding: UTF-8 \n"
file.write "namespace :import do \n"
file.write " task :all => :environment do \n"
gerar_corpo
View keybase.md

Keybase proof

I hereby claim:

  • I am cmilfont on github.
  • I am cmilfont (https://keybase.io/cmilfont) on keybase.
  • I have a public key whose fingerprint is 4EF8 2397 E9A0 1C40 842D A5BA 1F08 24CF BBA5 A937

To claim this, I am signing this object:

View quadro.rb
1 2 3 4 5 6 7 8 9 10
require 'spec_helper'
 
describe Quadro do
 
describe "#mover", %q{
Como um usuário
Eu quero mover um cartão de um quadro para outro
Para definir o status do cartão
} do
View solr.xml
1 2 3 4 5
<?xml version="1.0" encoding="utf-8"?>
<Context docBase="/root/atlas/shared/solr/solr.war" antiResourceLocking="false" privileged="true">
<Environment name="solr/home" type="java.lang.String" value="/root/atlas/shared/solr_home" override="true"/>
</Context>
<!-- /etc/tomcat6/Catalina/localhost/solr.xml -->
View gist:8522608
1 2 3 4 5 6
1) stopping all running solr processes
2) removing the solr folder BUT keep a copy of it accessible in case you need some of the old config, synonyms and such.
3) gem uninstall all related gems
> for i in `gem list --no-versions`; do gem uninstall -aIx $i; done
4) bundle install
5) rails generate sunspot_rails:install
View pasteFromClipboard.js
1 2 3 4 5 6 7 8 9
document.onpaste = function(event){
var items = (event.clipboardData || event.originalEvent.clipboardData).items;
console.log(JSON.stringify(items)); // will give you the mime types
var blob = items[0].getAsFile();
var reader = new FileReader();
reader.onload = function(event){
console.log(event.target.result)}; // data url!
reader.readAsDataURL(blob);
}
View app.js
1 2 3 4 5 6 7 8 9 10
var express = require('express');
var app = express.createServer();
 
require('./settings').boot(app);
 
app.dynamicHelpers({
base: function(){
// return the app's mount-point
// so that urls can adjust. For example
// if you run this example /post/add works
View georgegracie.txt
1 2 3 4 5 6 7 8 9 10
19 de janeiro de 1930 - Vitória sobre o Boxer Johann Tose.
03 de julho de 1931 - Vitória sobre o capoeira Eduardo José Sant'Anna (Coronel).
19 de novembro de 1931 - Vitória sobre Jayme Ferreira.
03 de dezembro de 1931 - Vitória sobre Mario Aleixo.
08 de abril de 1933 - Empate com Geo Omori (Jiu Jitsu).
08 de Julho de 1933 - Vitória sobre Tico Soledade.
28 de outubro de 1933 - Vitória sobre Manoel Fernandes (armlock).
23 de dezembro de 1933 - Empate com Geo Omori (Vale Tudo).
19 de janeiro de 1934 - Empate com Orlando Americo da Silva "Dudu".
16 de maio de 1934 - Vitória sobre Shigêo (estrangulamento).
Something went wrong with that request. Please try again.