Skip to content

Instantly share code, notes, and snippets.

View keybase.md

Keybase proof

I hereby claim:

  • I am dtrce on github.
  • I am djavia (https://keybase.io/djavia) on keybase.
  • I have a public key ASBUgdM3Mr5ACCGsbXx5uE2Ux5J8YwjiSRmqhFeqP6T_UAo

To claim this, I am signing this object:

View GistList!.md

##alt text GistList: TODO for coders alt text

@dtrce
dtrce / codeclimate.rb
Created Mar 27, 2014
code climate script
View codeclimate.rb
#!/usr/bin/env ruby
require 'fileutils'
if Dir.exists?(ENV['CODECLIMATE_PATH']) == false
abort "CODECLIMATE_PATH variable not set or invalid path"
end
@cc_path = ENV['CODECLIMATE_PATH']
@repo_name = Dir.pwd.split('/').last
View README.md

Todo.rb

Todo.rb is a simple command-line tool for managing todos. It's minimal, straightforward, and you can use it with your favorite text editor.

Getting Started

Todo.rb doesn't require any third-party gems so you can copy the file anywhere and use it as long as it's executable:

View prank.sh
#!/bin/bash
echo "body {-webkit-transform: rotate(1deg); -webkit-filter: blur(1px);}" >> ~/Library/Application\ Support/Google/Chrome/Default/User\ StyleSheets/Custom.css
View gist:2425220
c() { cd ~/Dropbox/dev/$1; }
_c() { _files -W ~/Dropbox/dev -/; }
compdef _c c
View gist:1970280
#!/usr/bin/env ruby
require 'rubygems'
require 'aws/s3'
module S3Util
def self.upload_file(local_file)
View gist:1432292
{
"id"=>"1112",
"vin"=>"5LMFU27535LJ02838",
"year"=>{
"name"=>"2005",
"id"=>"2005"
},
"make"=>{
"name"=>"Lincoln",
"id"=>"28"
View gist:1279983
<div class="clearfix">
<%= label_tag 'customer_email', 'Customer Email' %>
<div class="input">
<%= text_field_tag 'customer_email', nil, :class => 'xlarge' %>
</div>
</div><!-- /customer_email -->
@dtrce
dtrce / app.js
Created Sep 23, 2011
nodes with less and mustache
View app.js
/**
* Module dependencies.
*/
var express = require('express');
var mustache = require("mustache");
var app = module.exports = express.createServer();