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
+ Error stacktraces are turned on. | |
Maven version: 2.0.10 | |
Java version: 1.6.0_14 | |
OS name: "windows vista" version: "6.0" arch: "x86" Family: "windows" | |
[DEBUG] Building Maven user-level plugin registry from: 'C:\Users\nwl\.m2\plugin-registry.xml' | |
[DEBUG] Building Maven global-level plugin registry from: 'C:\Entwicklung\Tools\apache-maven-2.0.10\bin\..\conf\plugin-registry.xml' | |
[INFO] Scanning for projects... | |
[INFO] Searching repository for plugin with prefix: 'cuke4duke'. | |
[DEBUG] Loading plugin prefixes from group: org.apache.maven.plugins | |
[DEBUG] Loading plugin prefixes from group: org.codehaus.mojo |
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
-- Puts org-mode links to selected mails into clipboard and moves selected mails to archive | |
-- Replace {MAILBOX} and {ACCOUNT} below | |
tell application "Mail" | |
set theLinks to "" | |
set theSelection to selection | |
repeat with aMessage in theSelection | |
set theId to ((content of header "Message-Id" of aMessage) as text) | |
set theSubject to ((subject of aMessage) as text) | |
set theSender to sender of aMessage | |
set theLinks to (theLinks & (createLinkTo(theId, theSender, theSubject) of me)) |
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
(ns extreme-startup-clj.core | |
(:require compojure.handler) | |
(:use compojure.core) | |
(:use ring.adapter.jetty) | |
(:use clojure.contrib.lazy-seqs)) | |
(declare do-answer) | |
(defn answer [question] | |
(let [q (.substring question 10) |
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
(ns example | |
(:use somnium.congomongo) | |
(:use [somnium.congomongo.config :only [*mongo-config*]]) | |
(:import [org.mongeez Mongeez]) | |
(:import [org.springframework.core.io ClassPathResource])) | |
(defn migrate-mongo [db] | |
"Migrates mongodb by using mongeez" | |
(let [mongo (:mongo *mongo-config*) | |
mongeez (Mongeez.)] |
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
@Test | |
public void equally_named_categories_should_be_equal() { | |
forAll(names(), new AbstractCharacteristic<String>() { | |
@Override | |
protected void doSpecify(String name) throws Throwable { | |
Category thisCategory = new Category(name); | |
Category thatCategory = new Category(name); | |
assertEquals(thisCategory, thatCategory); | |
} | |
}); |
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
(ns evolvefn) ;; Lee Spector (lspector@hampshire.edu) 20111018 | |
;; This code defines and runs a genetic programming system on the problem | |
;; of finding a function that fits a particular set of [x y] pairs. | |
;; The aim here is mostly to demonstrate how genetic programming can be | |
;; implemented in Clojure simply and clearly, and several things are | |
;; done in somewhat inefficient and/or non-standard ways. But this should | |
;; provide a reasonable starting point for developing more efficient/ | |
;; standard/capable systems. |
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
/** | |
* @license Angular Auth | |
* (c) 2012 Witold Szczerba | |
* License: MIT | |
*/ | |
angular.module('angular-auth', []) | |
/** | |
* Holds all the requests which failed due to 401 response, | |
* so they can be re-requested in the future, once login is completed. |
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
var mod = {}; | |
mod.AuthCtrl = [ | |
'$scope', 'requests401', '$http', 'Ping', '$location', function($scope, requests401, $http, Ping, $location) { | |
var fadespeed = 300; | |
$scope.user = { | |
"username": "test", | |
"password": "test" | |
}; |
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 TheModule from 'platform-specific-module'; | |
export default class ComponentUnderTest extends Component { | |
render() { | |
return ( | |
<TheModule /> | |
) | |
} | |
} |
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
#!/usr/bin/env bash | |
export APK_FILE="$BUDDYBUILD_WORKSPACE/android/app/build/outputs/apk/app-release.apk" | |
echo "Uploading $APK_FILE" | |
export TESTDROID_FILE=`curl -s --user $TESTDROID_API: -F myAppFile=@$APK_FILE http://appium.testdroid.com/upload | node -pe "JSON.parse(require('fs').readFileSync('/dev/stdin').toString()).value.uploads.myAppFile"` | |
echo "Uploaded as $TESTDROID_FILE" | |
npm run functional-test |
OlderNewer