Skip to content

Instantly share code, notes, and snippets.


Keybase proof

I hereby claim:

  • I am dtrce on github.
  • I am 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 / 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"
@repo_name = Dir.pwd.split('/').last


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:

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
View gist:1279983
<div class="clearfix">
<%= label_tag 'customer_email', 'Customer Email' %>
<div class="input">
<%= text_field_tag 'customer_email', nil, :class => 'xlarge' %>
</div><!-- /customer_email -->
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();