Skip to content

Instantly share code, notes, and snippets.

View xrd's full-sized avatar
🎯
Focusing

Chris Dawson xrd

🎯
Focusing
View GitHub Profile
@xrd
xrd / client.go
Last active August 29, 2015 14:02
Testing HTTP Clients with Go
package main
import (
"io/ioutil"
"log"
"net/http"
)
type RealWebClient struct {
}
@xrd
xrd / gist:dad15f9e0adda4c165db
Created June 19, 2014 17:27
Go doesn't help me here
package main
import "fmt"
func main() {
usingComma := -1
delimiter := ":"
if -1 == usingComma {
delimiter := ","
fmt.Println("Delimiter is " + delimiter)
@xrd
xrd / animate.coffee
Last active August 29, 2015 14:00 — forked from anonymous/animate.js
mod = angular.module 'AnimateAlgorithms', []
mod.service 'Algorithm', [ '$timeout', ($timeout) ->
reset = () ->
world.states = []
world.the_state = {}
save = (arr) ->
# console.log "Array: %o", arr
---
layout: impress
title: "My new impress stuff"
description: ""
category:
published: false
tags: []
---
<div class="step" data-x="850" data-y="3000" data-rotate="90" data-scale="5">
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=1024" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<title>impress.js</title>
<link href="http://fonts.googleapis.com/css?family=Open+Sans:regular,semibold,italic,italicsemibold|PT+Sans:400,700,400italic,700italic|PT+Serif:400,700,400italic,700italic" rel="stylesheet" />
Feature: Contextual Transforms
Scenario: As a user I get contextual transforms
Given I have logged in
And I access the "mynewblog" repository
Then I wait for 10 seconds
And I select "_posts"
And I wait for 3 seconds
And I select "2014-04-22-testing-impress.md"
And I wait for the editor
[
{
"code": "<div id=\"its\" class=\"step\" data-x=\"850\" data-y=\"3000\" data-rotate=\"90\" data-scale=\"5\">\n</div>\n",
"type": "insert",
"context": { "template": "impress" },
"version": 2,
"name": "90degrees"
}
]
@xrd
xrd / config.ru
Last active August 29, 2015 13:58
Sieve of Eratosthenes
app = proc do |env|
Rack::Directory.new('.').call(env)
end
run app
@xrd
xrd / foo.md
Created March 5, 2014 19:14
Something here for a test

Hi there

puts "Hello"