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" |
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
| 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
| <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
| '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
| '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
| 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
| require 'date' | |
| MAX_DAYS_AGO = 8 | |
| class Branch | |
| attr_accessor :name | |
| def initialize(name) | |
| @name = name | |
| end |
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
| /inet\s{1}(?!127\.0\.0\.1)(.*?)\s/ | |
| ifconfig | grep 'inet\s' | grep -v 127 | cut -d' ' -f 2 |
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
| javascript:(function(){[].slice.call(document.querySelectorAll('*')).forEach(function(q){q.style.fontFamily='"Comic Sans MS", cursive, sans-serif';});})(); |
NewerOlder