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
The aim was to create a vaildator that takes an XML document of the following form and annotate | |
it to state whether each individual siteswap was valid or invalid: | |
<?xml version="1.0" encoding="ISO-8859-1"?> | |
<siteswaps> | |
<siteswap>34535</siteswap> | |
<siteswap>543</siteswap> | |
<siteswap>441</siteswap> | |
<siteswap>97531</siteswap> | |
<siteswap>24234</siteswap> |
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
// https://github.com/dmachi/webdriver-js | |
// https://code.google.com/p/selenium/source/browse/javascript/webdriver/webdriver.js | |
// http://www.seleniumhq.org/docs/03_webdriver.jsp#introducing-webdriver | |
// $x("//ul[@class='themes']"); | |
var webdriver = require('selenium-webdriver'), | |
assert = require("assert"), | |
test = require('selenium-webdriver/testing'); | |
test.describe('Copy default theme', function () { |
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
info: Welcome to Nodejitsu ColinEberhardt | |
info: jitsu v0.13.3, node v0.10.13 | |
info: It worked if it ends with Nodejitsu ok | |
info: Executing command deploy | |
info: Analyzing application dependencies in node app.js | |
debug: { method: 'GET', | |
debug: uri: 'https://api.nodejitsu.com/apps/ColinEberhardt/JitsuTestColin', | |
debug: headers: | |
debug: { Authorization: '************************************************** | |
***********************', |
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
{ | |
"name": "JitsuTestColin", | |
"description": "Beautify - iOS App Styling", | |
"private": true, | |
"dependencies": { | |
"bootstrap": "git://github.com/twbs/bootstrap.git#v3.0.0", | |
"bootstrap-browserify": "2.1.1", | |
"browserify": "2.35.1", | |
"express": "3.4.4", | |
"jquery-browserify": "1.8.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
// | |
// RWViewController.m | |
// RWReactivePlayground | |
// | |
// Created by Colin Eberhardt on 18/12/2013. | |
// Copyright (c) 2013 Colin Eberhardt. All rights reserved. | |
// | |
#import "RWViewController.h" | |
#import "RWDummySignInService.h" |
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
// | |
// RWViewController.m | |
// RWReactivePlayground | |
// | |
// Created by Colin Eberhardt on 18/12/2013. | |
// Copyright (c) 2013 Colin Eberhardt. All rights reserved. | |
// | |
#import "RWViewController.h" | |
#import "RWDummySignInService.h" |
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 demonstration of Swift sequences | |
// a sequence that lazily creates a Fibonacci sequence | |
class Fibonacci : Sequence { | |
let id:String | |
init(_ id: String) { | |
self.id = id; | |
} | |
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 UIKit | |
// create a 'scene' with a red square | |
let view = UIView(frame: CGRectMake(0, 0, 300, 100)) | |
let subView = UIView(frame: CGRectMake(0,0,50,50)) | |
subView.backgroundColor = UIColor.redColor() | |
view.addSubview(subView) | |
// add gravity | |
let animator = UIDynamicAnimator(referenceView: view) |
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
>> Local Npm module "grunt-contrib-jshint" not found. Is it installed? | |
Running "simplemocha:files" (simplemocha) task | |
(1 of 1624) pass: TodoMVC - agilityjs, No Todos, should hide #main and #footer | |
(2 of 1624) pass: TodoMVC - agilityjs, New Todo, should allow me to add todo items | |
(3 of 1624) pass: TodoMVC - agilityjs, New Todo, should clear text input field when an item is added | |
(4 of 1624) pass: TodoMVC - agilityjs, New Todo, should append new items to the bottom of the list | |
(5 of 1624) pass: TodoMVC - agilityjs, New Todo, should trim text input | |
(6 of 1624) pass: TodoMVC - agilityjs, New Todo, should show #main and #footer when items added | |
(7 of 1624) pass: TodoMVC - agilityjs, Mark all as completed, should allow me to mark all items as 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
let array = ["P","Q","R","S","T","P","R","A","T","B","C","P","P","P","P","P","C","P","P","J"] | |
extension Array { | |
func unique<T: Equatable>() -> [T] { | |
return self.reduce([T](), combine: { (array, value) -> [T] in | |
var result = array | |
let valAsT = value as T | |
if (!contains(array, valAsT)) { | |
result.append(valAsT) | |
} |
OlderNewer