I hereby claim:
- I am copremesis on github.
- I am copremesis (https://keybase.io/copremesis) on keybase.
- I have a public key ASCLauGH_ixCE72rbQ5cnTrEQBHB2XNcD_vbv86lOjOjNgo
To claim this, I am signing this object:
require 'benchmark' | |
Object.send(:remove_const, :DateRange) | |
class DateRange < Struct.new(:start_date, :end_date) | |
def good_include?(date) | |
(start_date..end_date).cover?(date) | |
end | |
def other_include?(date) | |
(date >= start_date && date <= end_date) | |
end | |
end |
# Represent states such as 'active', 'disabled', etc in the DB as an int | |
# | |
# Use like so: | |
# | |
# class MyModel < ActiveRecord::Base | |
# include StuffedTableColumns | |
# stuffed_column :status, *(%w(active inactive blocked disabled banned)) | |
# end | |
# TODO: use method_missing to match the column name |
echo 'export PATH=$HOME/local/bin:$PATH' >> ~/.bashrc | |
. ~/.bashrc | |
mkdir ~/local | |
mkdir ~/node-latest-install | |
cd ~/node-latest-install | |
curl http://nodejs.org/dist/node-latest.tar.gz | tar xz --strip-components=1 | |
./configure --prefix=~/local | |
make install # ok, fine, this step probably takes more than 30 seconds... | |
curl https://www.npmjs.org/install.sh | sh |
I hereby claim:
To claim this, I am signing this object:
Starter template which includes libraries for bootstrap (Yeti theme), ember.js + ember-data
A Pen by Curt Husting on CodePen.
// Octokit.js | |
// https://github.com/octokit/core.js#readme | |
//import fetch from 'node-fetch'; | |
//import { Octokit, App } from "octokit"; | |
const fetch = require('node-fetch-commonjs'); | |
import { Octokit } from '@octokit/rest'; | |
const octokit = new Octokit({ | |
request: { |