View selection.js
This file contains 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
document.addEventListener('mouseup', function() { | |
var text = window.getSelection().toString(); | |
console.log(text); | |
}); |
View application-80f872aa6889771df05f558a5f1ccde801ccfe7552f653af8f6a8b8e11e2fbcc.js
This file contains 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
Ember.TEMPLATES["application"] = Ember.HTMLBars.template((function() { | |
return { | |
isHTMLBars: true, | |
cachedFragment: null, | |
build: function build(dom) { | |
var el0 = dom.createDocumentFragment(); | |
var el1 = dom.createElement("div"); | |
dom.setAttribute(el1,"class","topbar"); | |
var el2 = dom.createTextNode("\n "); | |
dom.appendChild(el1, el2); |
View dest-2.js
This file contains 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
// 6to5 source.js -m umd | |
(function (factory) { | |
if (typeof define === "function" && define.amd) { | |
define(["exports", "module"], factory); | |
} else if (typeof exports !== "undefined" && typeof module !== "undefined") { | |
factory(exports, module); | |
} | |
})(function (exports, module) { | |
"use strict"; |
View ember-source-1.11.3.diff
This file has been truncated, but you can view the full file.
This file contains 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
--- gem.js 2015-04-24 11:35:45.000000000 +0900 | |
+++ web.js 2015-04-24 11:36:43.000000000 +0900 | |
@@ -1107,7 +1107,7 @@ | |
*/ | |
Ember.MODEL_FACTORY_INJECTIONS = false; | |
- if (Ember.ENV && typeof Ember.ENV.MODEL_FACTORY_INJECTIONS !== "undefined") { | |
+ if (Ember.ENV && typeof Ember.ENV.MODEL_FACTORY_INJECTIONS !== 'undefined') { | |
Ember.MODEL_FACTORY_INJECTIONS = !!Ember.ENV.MODEL_FACTORY_INJECTIONS; |
View backup_folder.rb
This file contains 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 "fileutils" | |
require "pathname" | |
require "date" | |
require "rubygems" | |
require "zipruby" | |
BACKUP_FOLDER = Pathname.new("/path/to/backup") | |
timestamp = DateTime.now.strftime("%Y%m%d%H%M%S") |
View excel.js
This file contains 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
/* | |
* Windows上でExcelを操作するためのシンプルなモジュールです。 | |
* ファイルのオープン・クローズを隠蔽しています。 | |
*/ | |
var excel = (function() { | |
var exports = {}; | |
// Excel操作 |
View console4ie-compressed.js
This file contains 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
// compressed by Closure Compiler (http://closure-compiler.appspot.com/) | |
javascript:(function(c,d,b,k,l,m){function g(){var a=d("textarea");a.rows=k;a.cols=l;return a}d=c[d];b=c.body[b];var h=g();b(h);var n={"\u000c":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","'":"\\'","'":"\\'"},o=/(\f|\n|\r|\t|\'|')/g;c=function(a){a.innerText=m;a.attachEvent("onclick",function(){var e;try{var f=h.value;f=f.replace(/\\/g,"\\\\").replace(o,function(p){return n[p]});e=(new Function("return eval('"+f+"')"))()}catch(i){e=i.name+": "+i.message}j.value=e});return a}(d("button"));b(c);var j=g();b(j)})(document, "createElement","appendChild",10,60,"exec"); |
View compiled-ternary-operator.js
This file contains 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
// a ? b : c | |
if (typeof a !== "undefined" && a !== null) { | |
a; | |
} else { | |
({b: c}); | |
} | |
// if a then b else c | |
if (a) { | |
b; |
View Gemfile
This file contains 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
source :rubygems | |
gem "rack", "~> 1.3" |
View compile-haml.watchr.rb
This file contains 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 "open3" | |
watch('(.*)\.haml') do |md| | |
stdin, stdout, stderr = Open3.popen3("haml #{md[0]}") | |
error_message = '' | |
unless stderr.eof? | |
error_message << stderr.to_a.join | |
end |
OlderNewer