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
adjs = [ | |
"autumn", "hidden", "bitter", "misty", "silent", "empty", "dry", "dark", | |
"summer", "icy", "delicate", "quiet", "white", "cool", "spring", "winter", | |
"patient", "twilight", "dawn", "crimson", "wispy", "weathered", "blue", | |
"billowing", "broken", "cold", "damp", "falling", "frosty", "green", | |
"long", "late", "lingering", "bold", "little", "morning", "muddy", "old", | |
"red", "rough", "still", "small", "sparkling", "throbbing", "shy", | |
"wandering", "withered", "wild", "black", "young", "holy", "solitary", | |
"fragrant", "aged", "snowy", "proud", "floral", "restless", "divine", | |
"polished", "ancient", "purple", "lively", "nameless" |
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
# add gems | |
gem 'whenever' | |
gem 'kaminari' | |
gem 'hpricot' | |
gem 'ruby_parser' | |
gem 'jquery-rails' | |
gem "jquery-ui-rails" | |
gem 'bcrypt-ruby', '~> 3.0.0' | |
gem "rspec-rails", :group => [ :development, :test ] | |
gem "ffaker", :group => :test |
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
def create_directory name | |
directory_name = name | |
Dir.mkdir(directory_name) unless File.exists?(directory_name) | |
puts "Directory #{name} created" | |
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
def directory_size(path) | |
path << '/' unless path.end_with?('/') | |
raise RuntimeError, "#{path} is not a directory" unless File.directory?(path) | |
total_size = 0 | |
Dir["#{path}**/*"].each do |f| | |
total_size += File.size(f) if File.file?(f) && File.size?(f) | |
end | |
# size in bytes |
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 Ember from 'ember'; | |
export default Ember.Controller.extend({ | |
appName: 'Ember exemple' | |
}); |
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
puts "start..." | |
require 'tiny_tds' | |
client = TinyTds::Client.new username: 'sa', password: '123***s', host: '192.168.1.215', port: 1433, database: 'alyamama' | |
#results = client.execute("SELECT * FROM motif_controle") | |
#puts results.fields | |
#results.each do |row| | |
# puts row | |
#end | |
#puts "---------------" | |
results = client.execute("EXEC sp_test") |
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
ActiveRecord::Base.connection.tables.each { |t| ActiveRecord::Base.connection.reset_pk_sequence!(t) } |
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 Ember from 'ember'; | |
export default Ember.Component.extend({ | |
value: "", | |
actions: { | |
onEnter(title) { | |
if (title) { |
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
#Remove old Ruby | |
$ yum remove ruby | |
# Install dependencies | |
$ yum groupinstall "Development Tools" | |
$ yum install zlib zlib-devel | |
$ yum install openssl-devel | |
$ wget http://pyyaml.org/download/libyaml/yaml-0.1.5.tar.gz | |
$ tar xzvf yaml-0.1.5.tar.gz | |
$ cd yaml-0.1.5 |
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
git config --global http.proxy http://proxyUsername:proxyPassword@proxy.server.com:port | |
OR | |
git config --global http.proxy http://proxy.server.com:port |
OlderNewer