Skip to content

Instantly share code, notes, and snippets.

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:

@dtrce
dtrce / GistList!.md
Created October 4, 2014 21:41
Try GistList for iOS! http://gistlist.io/

##alt text GistList: TODO for coders alt text

@dtrce
dtrce / codeclimate.rb
Created March 27, 2014 03:43
code climate script
#!/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

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:

#!/bin/bash
echo "body {-webkit-transform: rotate(1deg); -webkit-filter: blur(1px);}" >> ~/Library/Application\ Support/Google/Chrome/Default/User\ StyleSheets/Custom.css
c() { cd ~/Dropbox/dev/$1; }
_c() { _files -W ~/Dropbox/dev -/; }
compdef _c c
#!/usr/bin/env ruby
require 'rubygems'
require 'aws/s3'
module S3Util
def self.upload_file(local_file)
{
"id"=>"1112",
"vin"=>"5LMFU27535LJ02838",
"year"=>{
"name"=>"2005",
"id"=>"2005"
},
"make"=>{
"name"=>"Lincoln",
"id"=>"28"
@dtrce
dtrce / gist:1279983
Created October 12, 2011 01:38
html div
<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 September 23, 2011 16:05
nodes with less and mustache
/**
* Module dependencies.
*/
var express = require('express');
var mustache = require("mustache");
var app = module.exports = express.createServer();