One Paragraph of project description goes here
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.
var http = require('follow-redirects').http; | |
//top 1000 | |
var domains = ["google.com","facebook.com","youtube.com","yahoo.com","baidu.com","wikipedia.org","qq.com","linkedin.com","live.com","twitter.com","amazon.com","blogspot.com","taobao.com","google.co.in","sina.com.cn","wordpress.com","yahoo.co.jp","yandex.ru","bing.com","ebay.com","google.de","vk.com","hao123.com","163.com","tumblr.com","pinterest.com","google.co.uk","google.fr","googleusercontent.com","microsoft.com","msn.com","ask.com","mail.ru","google.co.jp","google.com.br","weibo.com","apple.com","paypal.com","google.ru","instagram.com","google.com.hk","xvideos.com","blogger.com","google.it","tmall.com","google.es","imdb.com","soso.com","craigslist.org","sohu.com","360.cn","go.com","amazon.co.jp","stackoverflow.com","bbc.co.uk","xhamster.com","google.com.mx","neobux.com","google.ca","fc2.com","cnn.com","imgur.com","alibaba.com","wordpress.org","flickr.com","espn.go.com","adcash.com","huffingtonpost.com","odnoklassniki.ru","t.co","conduit.com","thepira |
# config/initializers/postgresql_patch.rb | |
# | |
class ActiveRecord::ConnectionAdapters::AbstractAdapter | |
def translate_exception(exception, message) | |
if exception.is_a?(PG::InvalidTextRepresentation) | |
raise ActiveRecord::RecordNotFound | |
else | |
# override in derived class | |
ActiveRecord::StatementInvalid.new(message, exception) | |
end |
require "net/http" | |
def start_server | |
# Remove the X to enable the parameters for tuning. | |
# These are the default values as of Ruby 2.2.0. | |
@child = spawn(<<-EOC.split.join(" ")) | |
XRUBY_GC_HEAP_FREE_SLOTS=4096 | |
XRUBY_GC_HEAP_INIT_SLOTS=10000 | |
XRUBY_GC_HEAP_GROWTH_FACTOR=1.8 | |
XRUBY_GC_HEAP_GROWTH_MAX_SLOTS=0 |
// package.json | |
{ | |
"dependencies": { | |
"web3": "0.20.0", | |
"solc": "^0.4.19" | |
} | |
} | |
//Create file Ecrow.sol and create 3 variables: a buyer, a seller, and an arbiter | |
contract Escrow { |
# Add Action button on the top navigation menu. Useful for resource with nested resources | |
action_item :only => :show do | |
link_to('Show Users', admin_group_users_path(resource)) | |
end | |
# Custom show page with children items | |
show do |
rails new
first to generate all of the boilerplate files necessary.rails new .
--css tailwind
as an option on the rails new
call to do this automatically.rails new
will do this automatically but take care if you write any custom SQL that it is SQLite compatible.rails new myapp --devcontainer
but only do this if requested directly.