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
(function ($) { | |
// Monkey patch for jQuery 1.7 to optimize animation | |
// Details: | |
// jQuery(this).is(":hidden")) access elem.offsetHeight property in each animation step. | |
// This patch enables lazy access to elem.offsetHeight property only when it is necessary. | |
// 2012/07/26: this patch is unnecessary on jQuery 1.8. fixed by https://github.com/jquery/jquery/pull/869 | |
var elemdisplay = {}, | |
iframe, iframeDoc, | |
rfxtypes = /^(?:toggle|show|hide)$/, | |
rfxnum = /^([+\-]=)?([\d+.\-]+)([a-z%]*)$/i, |
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
// ==UserScript== | |
// @name Google App Engine Log Downloader (forked) | |
// @namespace gldf | |
// @description Google App Engine Log Downloader (forked by mainyaa) | |
// @include http://appengine.google.com/logs* | |
// @include https://appengine.google.com/logs* | |
// @author pto.developer (http://pto-s2.appspot.com/d/ or http://twitter.com/pto_developer) | |
// @author forked by mainyaa (http://twitter.com/mainyaa) | |
// ==/UserScript== |
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
Only in /Applications/Unity4.0/Documentation/: .DS_Store | |
Common subdirectories: /Applications/Unity/Documentation/Components and /Applications/Unity4.0/Documentation/Components | |
Common subdirectories: /Applications/Unity/Documentation/Images and /Applications/Unity4.0/Documentation/Images | |
Common subdirectories: /Applications/Unity/Documentation/Manual and /Applications/Unity4.0/Documentation/Manual | |
Common subdirectories: /Applications/Unity/Documentation/ScriptReference and /Applications/Unity4.0/Documentation/ScriptReference | |
diff --side-by-side /Applications/Unity/Documentation/legal.txt /Applications/Unity4.0/Documentation/legal.txt | |
UNITY 3.5 CONTAINS THE FOLLOWING THIRD PARTY LIBRARIES: UNITY 3.5 CONTAINS THE FOLLOWING THIRD PARTY LIBRARIES: | |
PhysX physics library. Copyright ? 2003-2008 by NVIDIA Corpor PhysX physics library. Copyright ? 2003-2008 by NVIDIA Corpor | |
Beast Copyright ? Autodesk, Inc.Raknet s Copyright ? Jenkin Beast Copyright ? Autodesk, Inc.Raknet s Copyright ? Jenkin |
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
List<Integer> listI = list(1, list(2, list(3, list(4, list(5, list(6, emptyList())))))); | |
Integer sum = listI.filter(new Function1<Integer, Boolean>() { | |
public Boolean apply(Integer i){ return i % 2 == 0; } | |
}) | |
.map(new Function1<Integer, Integer>() { | |
public Boolean apply(Integer i) { return i * 2; } | |
}) | |
.foldLeft(0, new Function2<Integer, Integer, Integer>(){ | |
public Integer apply(Integer seed, Integer item){ return seed + item; } | |
}); |
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 "underscore" | |
assert = require "assert" | |
list = [1..6] | |
sum = _.chain(list) | |
.filter( (i) -> i % 2 == 0) | |
.map( (i) -> i * 2) | |
.reduce( | |
(seed, item) -> | |
seed + item | |
, 0) |
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
import Data.List (group) | |
import Control.Arrow | |
main = putStrLn answer | |
solve = concatMap (uncurry (:) . (head &&& show.length)) . group | |
answer = solve "aaaabb" |
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
'use strict' | |
# dependencies angularjs, karma, karma-mocha, mocha, chai | |
describe 'Unit: $q.all', () -> | |
it 'should simulate promise', inject ($q, $rootScope) -> | |
deferred1 = $q.defer() | |
promise1 = deferred1.promise | |
deferred2 = $q.defer() |
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
cd /var/www/HOGE | |
NR_JAR=/var/www/HOGE/newrelic/newrelic.jar | |
export NR_JAR | |
MAVEN_OPTS="$JAVA_OPTS -javaagent:$NR_JAR" | |
export MAVEN_OPTS | |
killall $(which java) | |
mvn clean compile jetty:run |
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
'use strict' | |
# dependencies angularjs, karma, karma-mocha, mocha, chai, lodash | |
describe 'Unit: $q.all', () -> | |
describe 'should simulate nested promise', -> | |
scope = null | |
q = null | |
promise1resolved = false |
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 'formula' | |
class Docker < Formula | |
homepage 'http://docker.io/' | |
url 'https://github.com/dotcloud/docker/archive/v0.8.0.tar.gz' | |
sha1 '1e9362dab2ac2ecb4a1f193a7e72d060000438c3' | |
depends_on 'go' => :build | |
depends_on 'mercurial' => :build |
OlderNewer