bin/elasticsearch
bin/logstash web
include ActionView::Helpers::TagHelper, ActionView::Helpers::TextHelper, WhiteListHelper | |
module ActiveRecord | |
class Base | |
def self.sanitize(attr_name, options = {}) | |
define_method "#{attr_name}=" do |val| | |
write_attribute attr_name, val | |
html = '' |
(ns threed.core | |
(:use [scad-clj.scad]) | |
(:use [scad-clj.model])) | |
(centering! false) | |
(defn lego-single | |
[] | |
(difference | |
(union |
I'm working on it here: https://www.massdrop.com/ext/ergodox/?referer=VTLDKC&hash=67436dcb8135633580e3c919b58b6e39
start with qwerty, add some media keys and move alt to bottom of thumb row
module ActiveRecord | |
class Base | |
# FIXME - WE SHOULD NOT PUT THESE INSIDE AR:B | |
include ActionView::Helpers::TagHelper, ActionView::Helpers::TextHelper, WhiteListHelper | |
def self.sanitize(attr_name, options = {}) | |
define_method "#{attr_name}=" do |val| | |
write_attribute attr_name, val | |
html = '' |
# by bryan helmkamp with slight modification by chris wanstrath | |
# from http://www.brynary.com/2008/8/3/our-git-deployment-workflow | |
# I DO NOT RECOMMEND USING THIS WORKFLOW - IT DESTROYS HISTORY! - jesse andrews | |
module GitCommands | |
extend self | |
def diff_staging | |
`git fetch` |
#!/usr/bin/ruby | |
require 'rubygems' | |
require 'git' | |
log = "~/gitlog.txt" | |
tmp = "/tmp/gitlog" | |
commit = Git.open('.').log.first | |
message = [ | |
commit.date.strftime('%D %H:%M'), |
require 'rubygems' | |
require 'hpricot' | |
require 'open-uri' | |
links = Hash.new(0) | |
# get 50 pages of results from backtweet | |
(1..50).each do |n| | |
fn = "backtype-#{n}.html" | |
unless File.exist?(fn) |
module Main (main) where | |
import XMonad | |
import System.Exit | |
import qualified Data.Map as M | |
import Graphics.X11.Xlib | |
import XMonad.Prompt | |
import XMonad.Prompt.Shell | |
import XMonad.Prompt.XMonad | |
import XMonad.Prompt.RunOrRaise |
class ActiveRecord::Base | |
named_scope :created, lambda { |date_range| | |
case date_range | |
when Range | |
{:conditions => ["date(created_at) in (?)", date_range]} | |
when Date | |
{:conditions => ["date(created_at) = ?", date_range]} | |
else | |
{:conditions => '1=1'} | |
end |