I hereby claim:
- I am robfletcher on github.
- I am robfletcher (https://keybase.io/robfletcher) on keybase.
- I have a public key whose fingerprint is B0DA 4426 D1D5 1AF0 2D93 F480 9376 AE14 4362 B58E
To claim this, I am signing this object:
package yaml.encoding | |
import org.yaml.snakeyaml.Yaml | |
import spock.lang.* | |
@Unroll | |
class YamlEncodingSpec extends Specification { | |
Yaml yaml = new Yaml() | |
File file |
package spock.extensions.state | |
class StateMachine<E extends Enum> { | |
private final String name | |
private E currentState | |
StateMachine(String name, E initialState) { | |
this.name = name | |
currentState = initialState |
/* | |
* Outputs a color property with an opaque fallback for browsers that do not support RGBA. | |
*/ | |
@mixin safe-rgba($property, $color, $fallback-color: opacify($color, 1)) { | |
@if opacity($color) == 1 { | |
#{$property}: $color; | |
} @else { | |
#{$property}: $fallback-color; | |
.rgba & { | |
#{$property}: $color; |
curl http://validator.w3.org/check -i -F output=json -F uploaded_file=@<path-to-html-file> |
I hereby claim:
To claim this, I am signing this object:
/* | |
* This script will scrape text posts from a Tumblr blog and export them as `.md` | |
* files with YAML frontmatter ready to be used in a Middleman blog. | |
* | |
* Aliases are added for the _middleman-alias_ gem so Tumblr style URLs like | |
* `/post/{id}/{slug}` will redirect to the Middleman-style URL. | |
* | |
* Although I built this for migrating to Middleman it should be pretty easy to | |
* adapt this for any similar static site generator. | |
*/ |
import groovy.transform.* | |
@CompileStatic | |
class A { | |
private final String name | |
A(String name) { | |
this.name = name | |
} | |
} |
buildscript { | |
repositories { | |
jcenter() | |
} | |
dependencies { | |
classpath "com.github.jruby-gradle:jruby-gradle-plugin:0.1.3+" | |
} | |
} |
def "subscriber receives message"() { | |
given: "An async event bus" | |
def eventBus = new AsyncEventBus(Executors.newCachedThreadPool()) | |
and: "A Fake Service" | |
def vars = new BlockingVariables() | |
def fakeService = Stub(FictionalService) { | |
process(_) >> { PersonMessage message -> vars.message = message } | |
} |