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 Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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
package spike.app2; | |
import akka.actor.ActorContext; | |
import akka.actor.ActorRef; | |
import akka.actor.Props; | |
import akka.actor.ReceiveTimeout; | |
import akka.actor.UntypedActor; | |
import akka.dispatch.Futures; | |
import akka.pattern.AskTimeoutException; | |
import scala.concurrent.Future; |
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
@FunctionalInterface | |
public static interface GenericArgumentMatcher<T>{ | |
boolean matches(T argument); | |
} |
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
#!/bin/sh | |
# usage example: prepareJdk.sh jdk-7u67-windows-x64.exe (result will be in jdk/) | |
# Requires: p7zip, unzip | |
JDK_EXE=$1 | |
7z x -ojdk "$JDK_EXE" | |
unzip jdk/tools.zip -d jdk/ | |
find jdk/ -type f \( -name "*.exe" -o -name "*.dll" \) -exec chmod u+rwx {} \; |
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 RunKeeperMaxSpeed | |
// @description Add max speed value in activity stats | |
// @id me.4ndrew.RunKeeperMaxSpeed | |
// @version 2012.06.15 | |
// @author nopox | |
// @homepageURL http://userscripts.org/scripts/show/136206 | |
// @supportURL http://userscripts.org/scripts/discuss/136206 | |
// @updateURL http://userscripts.org/scripts/source/136206.meta.js | |
// @include *runkeeper.com/user/*/activity/* |
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 RunKeeperRaceSimpleMapTools | |
// @description Add GPX import and clear buttons to edit race page | |
// @id me.4ndrew.RunKeeperRaceMapTools | |
// @version 2012.06.20 | |
// @author nopox | |
// @homepageURL http://userscripts.org/scripts/show/136022 | |
// @supportURL http://userscripts.org/scripts/discuss/136022 | |
// @updateURL http://userscripts.org/scripts/source/136022.meta.js | |
// @include http://runkeeper.com/edit/race* |
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
Path = "C:\Users\put-your-folder-name-here" | |
Set FSO = CreateObject("Scripting.FileSystemObject") | |
Sub visitFolder(folderVar) | |
For Each fileToRename In folderVar.Files | |
fileToRename.Name = "Agreement " & fileToRename.Name | |
Next | |
For Each folderToVisit In folderVar.SubFolders | |
visitFolder(folderToVisit) | |
Next |
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
if (number < Integer.parseInt(channel)); | |
return serviceList.getService(serviceList.size()-1); |
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
// Wow! | |
for (int i = 0; i < proxies.size(); i++) { | |
((AppProxy) proxies.get(i)).removeAppStateChangeEventListener(this); | |
proxies = null; | |
} |
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
Pluses: | |
* Highly configurable | |
* Not only for motoguide. | |
* UI interface | |
* Source code doesn't require any changes (byte-code injection used) | |
* Log4j auto configuration | |
* ant task automatization support | |
Minuses: | |
* Currently only text reports supported. |
NewerOlder