This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git log -1 | cut -d"|" -f 2 | say |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
var ACCESS_REGEX = /[\[\]\.]/; | |
var BOOLEAN_REGEX = /^(true|false)$/; | |
var NUMBER_REGEX = /^[+-]?(\d*\.)?\d+$/; | |
var DOUBLE_QUOTE_REGEX = /^".*"$/; | |
var SINGLE_QUOTE_REGEX = /^'.*'$/; | |
var NULL_REGEX = /^null$/; | |
function getType (str) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
module.exports = function(global){ | |
function set (key, val) { | |
var valFunc = (typeof val === 'function' ? val : function () { return val; }).bind(global); | |
global.__defineGetter__(key, valFunc); | |
} | |
function SET (key, val) { | |
global[key] = val; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div ng-app="myApp"> | |
<div ng-controller="MyCtrl"> | |
<div ng-repeat="n in names track by n[$index]"> | |
{{n}} {{$index}} {{$even}} {{$first}} {{$last}} | |
</div> | |
</div> | |
</div> | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'pry' | |
all_output = `ag -G ".jsx" "//= require"` | |
calls = all_output.lines.map do |line| | |
path = line.split(':').last | |
.gsub('//= ', '') | |
.gsub('require_tree ', '') | |
.gsub('require ', '') | |
.gsub(/\r/, '') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'json' | |
require 'active_support/inflector' | |
require 'digest' | |
require 'fileutils' | |
PACKAGE_PATH = "com.mbildner.domain" | |
class JavaClass | |
attr_accessor :name, :body |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"bytes" | |
"fmt" | |
"github.com/PuerkitoBio/goquery" | |
"io/ioutil" | |
"os" | |
"regexp" | |
"strings" |
OlderNewer