# Anchor
click_link 'Save'
# Button
click_button 'awesome'
# Both above
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 Bar, Foo, | |
__hasProp = {}.hasOwnProperty, | |
__extends = function(child, parent) { | |
for (var key in parent) { | |
if (__hasProp.call(parent, key)) child[key] = parent[key]; | |
} | |
function ctor() { | |
this.constructor = child; | |
} | |
ctor.prototype = parent.prototype; |
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 'active_support/dependencies' | |
%w(app/business app/enumerations app/marketplace).each do |path| | |
ActiveSupport::Dependencies.autoload_paths.push(path) unless ActiveSupport::Dependencies.autoload_paths.include?(path) | |
end |
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
module Morpheus | |
module Adapters | |
module Solr | |
class Relation | |
include ActiveModel::Model | |
attr_accessor :connection, :relation_class, :where | |
delegate :present?, :blank?, :empty?, to: :to_a | |
delegate :each, :map, :collect, :select, :find, :last, :first, to: :to_a | |
delegate :total, :facet_fields, to: :response |
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
[color] | |
branch = auto | |
diff = auto | |
status = auto | |
[color "branch"] | |
current = yellow reverse | |
local = yellow | |
remote = green | |
[color "diff"] | |
meta = yellow bold |
Bom prometi investir uma hora do meu tempo nos meus projetos OpenSource, nessas duas últimas duas semanas.
Segue a retrospectiva do que eu chamei de sprint 1:
- API Matchers novo release: [https://github.com/tomas-stefano/api_matchers/commits/master](https://github.com/tomas-stefano/api_matchers/commits/master}.
- Infinity test e o mais próximo da versão 2.0: tomas-stefano/infinity_test#31
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
source 'https://rubygems.org' | |
gem 'rack' | |
gem 'puma' |
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
module.exports = function(grunt) { | |
grunt.initConfig({ | |
pkg: grunt.file.readJSON('package.json'), | |
handlebars: { | |
all: { | |
src: ["app/assets/javascripts/templates"], | |
dest: "app/assets/javascripts/templates/all.js" | |
} | |
} | |
}); |
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
# This class should parse a yaml configuration file. | |
# | |
require 'ostruct' | |
class APISettings | |
def self.cross_origin_resource_sharing | |
OpenStruct.new(allow: ['http://127.0.0.1:8080', 'http://localhost:8080']) | |
end | |
end |
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
$ npm install handlebars | |
$ node | |
> var Handlebars = require('handlebars'); | |
> var template = Handlebars.compile("Hi, {{name}}"); | |
> console.log(template({name: "Bob"})); | |
Hi, Bob |