Skip to content

Instantly share code, notes, and snippets.

View jcserracampos's full-sized avatar
💭
Everybody is just another transaction in the blockchain

Júlio Campos jcserracampos

💭
Everybody is just another transaction in the blockchain
View GitHub Profile
# gem install jphastings-dlc
require 'dlc'
s = DLC::Settings.new
s.name = "Your Name"
s.url = "http://yourdomain.com"
s.email = "your.name@yourdomain.com"
# Now you can make a dlc:
package = DLC::Package.new
package.name = "My package" # Suggested, but not required
@mateusg
mateusg / inflections.rb
Created April 17, 2011 23:03
pt-BR inflections file for Ruby on Rails applications
# encoding: utf-8
# Be sure to restart your server when you modify this file.
# Add new inflection rules using the following format
# (all these examples are active by default):
# ActiveSupport::Inflector.inflections do |inflect|
# inflect.plural /^(ox)$/i, '\1en'
# inflect.singular /^(ox)en/i, '\1'
# inflect.irregular 'person', 'people'
# inflect.uncountable %w( fish sheep )
{
"directory": "components"
}
@keit
keit / gist:6288233
Last active February 22, 2018 15:01
Rails4 + Bower + Bootstrap set-up
This document is outdated.
You should read David Bryant Copeland's excellent online book: http://angular-rails.com/crud_recipe.html
---------------------------------------------------------------------------------------------------------------
I think it's better to install javascript/css libraries using Bower rather than gem which is Ruby packager.
1. Install Rails 4 and create a new project.
2. Install bower(Note you need to install node first.)
sudo npm install -g bower
@ssmereka
ssmereka / gist:6517444
Last active June 16, 2022 09:03
Automatic Cookie Clicker and other cheats for http://orteil.dashnet.org/cookieclicker/
/**
* Auto Cookie Clicker
* Auto click cookies and golden cookies in the Cookie Clicker
* game found here: http://orteil.dashnet.org/cookieclicker/
*/
/**
* How to in Chrome:
* Open the browers and navigate to http://orteil.dashnet.org/cookieclicker/
@schickling
schickling / Rakefile
Last active January 31, 2024 23:00
Activerecord without Rails
require "active_record"
namespace :db do
db_config = YAML::load(File.open('config/database.yml'))
db_config_admin = db_config.merge({'database' => 'postgres', 'schema_search_path' => 'public'})
desc "Create the database"
task :create do
ActiveRecord::Base.establish_connection(db_config_admin)
@PurpleBooth
PurpleBooth / README-Template.md
Last active May 6, 2024 07:22
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

@nsommer
nsommer / bower.rake
Created October 8, 2015 17:09
Bower integration for capistrano deployments
namespace :bower do
%w[install list].each do |command|
desc "#{command} bower packages"
task command do
on roles(:web) do
within release_path do
execute 'bower', 'install'
end
end
end
@jcserracampos
jcserracampos / inflections.rb
Created January 6, 2016 10:13 — forked from mateusg/inflections.rb
pt-BR inflections file for Ruby on Rails applications
# encoding: utf-8
# Be sure to restart your server when you modify this file.
# Add new inflection rules using the following format
# (all these examples are active by default):
# ActiveSupport::Inflector.inflections do |inflect|
# inflect.plural /^(ox)$/i, '\1en'
# inflect.singular /^(ox)en/i, '\1'
# inflect.irregular 'person', 'people'
# inflect.uncountable %w( fish sheep )

Ruby Association Certified Ruby Examination Silver Sample Questions

Q1. Which of the following have true values in Ruby? (Choose two.)

  • (a) ""
  • (b) 0
  • (c) false
  • (d) nil