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
| def s = new Singleton() | |
| try { | |
| log("--log-- started") | |
| s.main() | |
| } catch (e) { | |
| log("--log-- " + throwableToString(e)) | |
| } finally { |
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
| // =++=++=++= isolate.groovy =++=++=++= | |
| void sendSignal(String sessionId, String signalName) { | |
| def url = new URL("https://api.tropo.com/1.0/sessions/${sessionId}/signals?action=signal&value=${signalName}") | |
| log("--log-- http get -- " + url) | |
| def connection = url.openConnection() | |
| def response = slurpStream(connection.getInputStream()) | |
| def statusCode = connection.getResponseCode() |
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
| object Chord { | |
| import Impl._ | |
| def ~(s: String): Chord = stringToChord(s) | |
| implicit def stringToChord(s: String): Chord = ChordedString(s) | |
| case class PimpedIterable[T](iter: Iterable[T]) { |
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 net.model3.util; | |
| import java.util.ArrayList; | |
| import java.util.Collections; | |
| import java.util.List; | |
| public class ShowMeThatCME { | |
| static List<Integer> list = Collections.synchronizedList(new ArrayList<Integer>()); | |
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
| $ brew install wget | |
| ==> Downloading http://ftpmirror.gnu.org/wget/wget-1.13.4.tar.bz2 | |
| Already downloaded: /Library/Caches/Homebrew/wget-1.13.4.tar.bz2 | |
| ==> ./configure --disable-debug --prefix=/usr/local/Cellar/wget/1.13.4 --sysconfdir=/usr/local/etc --with-ssl=openssl --disable-iri | |
| configure: configuring for GNU Wget 1.13.4 | |
| checking for a BSD-compatible install... /usr/bin/install -c | |
| checking whether build environment is sane... yes | |
| checking for a thread-safe mkdir -p... build-aux/install-sh -c -d | |
| checking for gawk... no | |
| checking for mawk... no |
NewerOlder