Skip to content

Instantly share code, notes, and snippets.

View efvincent's full-sized avatar

Eric Vincent efvincent

View GitHub Profile
@efvincent
efvincent / gist:1125111
Created August 4, 2011 13:07
sstrong 01
using System;
namespace ConsoleApplication10 {
class Program {
static void Main(string[] args) {
var n = MFac.Make(12.392, Measure.Inches);
var m = 1293.29.Units(Measure.Inches);
var j = 2901.Units(Measure.Feet);
Console.ReadKey();
}
@efvincent
efvincent / gist:1128215
Created August 5, 2011 18:49
Silly discussion deserves a silly retort
public string NuttyWay() {
// No LAZY shortcuts!!
List<string> names = new List<string>();
names.Add("Jack");
names.Add("Jill");
names.Add("John");
string allNames = string.Empty;
List<string>.Enumerator enumerator = default(List<string>.Enumerator);
try {
@efvincent
efvincent / _.md
Created December 23, 2013 17:34
reddit base
@efvincent
efvincent / _.md
Created December 23, 2013 20:32
d3 date brush
@efvincent
efvincent / _.md
Created December 24, 2013 04:23
d3 table
@efvincent
efvincent / tl-debounce.js
Last active August 29, 2015 13:57 — forked from tommaitland/ng-debounce.js
Debounce for a textbox. Thanks to tommaitland, modified to not use "ng" prefix
angular.module('app', []).directive('tlDebounce', function($timeout) {
return {
restrict: 'A',
require: 'ngModel',
priority: 99,
link: function(scope, elm, attr, ngModelCtrl) {
if (attr.type === 'radio' || attr.type === 'checkbox') return;
elm.unbind('input');
@efvincent
efvincent / Preferences.sublime-settings
Last active August 29, 2015 14:00
Sublime Settings
{
"auto_complete_commit_on_tab": true,
"bold_folder_labels": true,
"draw_minimap_border": true,
"draw_white_space": "all",
"font_face": "Source Code Pro",
"font_size": 14,
"highlight_line": true,
"highlight_modified_tabs": true,
"ignored_packages": [
@efvincent
efvincent / .jshintrc
Created April 24, 2014 15:55
my jshint config file
{
"-W015": true,
"lastsemic": true,
"node": true,
"browser": true,
"esnext": true,
"bitwise": true,
"camelcase": true,
"curly": false,
"eqeqeq": true,
@efvincent
efvincent / gvGetFile.js
Created May 1, 2014 14:28
input file directive
'use strict';
angular.module('udrApp')
.directive('gvGetFile', function ($log) {
return {
template: '<div></div>',
restrict: 'E',
replace: true,
scope: {
handleFiles: '&'
@efvincent
efvincent / .bashrc
Last active March 30, 2017 22:28
my current .bashrc
# Normal Colors
Black='\e[0;30m' # Black
Red='\e[0;31m' # Red
Green='\e[0;32m' # Green
Yellow='\e[0;33m' # Yellow
Blue='\e[0;34m' # Blue
Purple='\e[0;35m' # Purple
Cyan='\e[0;36m' # Cyan
White='\e[0;37m' # White