I hereby claim:
- I am guncha on github.
- I am gunchars (https://keybase.io/gunchars) on keybase.
- I have a public key ASBbEYkROBziDJnCiVDviKygnWleN1pDDEYNI1I9aRMSTQo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
If you use atom... download & install the following packages:
GraphQL = require("graphql") | |
GraphQLRelay = require("graphql-relay") | |
GraphQLUtilities = require("graphql/utilities") | |
__GREETING = "Hello World!" | |
Root = new GraphQL.GraphQLObjectType | |
name: "Root" | |
fields: | |
hello: |
var query = Relay.QL` | |
query { | |
viewer { | |
totalCount | |
} | |
} | |
` | |
console.log("The compiled Relay Query:", query) |
To get a quick and dirty stack traces with Jasmine's HTML Reporter, add this on the spec runner page after jasmine/boot.js
.
<script type="text/javascript" src="sourcemapped-stacktrace.js"></script>
<script type="text/javascript">
jasmine.getEnv().addReporter({
jasmineDone: function() {
var traces = document.querySelectorAll(".jasmine-stack-trace")
for(var i = 0; i < traces.length; i++) {
(function(node){
declare module 'react-relay' { | |
// fragments are a hash of functions | |
interface Fragments { | |
[query: string]: ((variables?: RelayVariables) => string) | |
} | |
interface CreateContainerOpts { | |
initialVariables?: Object | |
prepareVariables?(prevVariables: RelayVariables): RelayVariables |
_ = require("underscore") | |
# State represents aggregate information we've learned about the set of balls. | |
# in the beginning, all of them are unknown. if they are on the heavier side of | |
# the balance, they become heavier or lighter if they're on the lighter side. | |
# if we've ruled them out as not the odd-ball, they become regular. | |
class State | |
constructor: (@unknown = 0, @heavier = 0, @lighter = 0, @regular = 0) -> | |
toString: -> [@unknown, @heavier, @lighter, @regular].toString() | |
size: -> @unknown + @heavier + @lighter + @regular |
Below plist should go into ~/Library/LaunchAgents/homebrew.mxcl.postgresql.plist
. LaunchAgent should pick it up on restart.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
21 22/Jan/2014 |||||||||||||||||||||||||||||| | |
53 21/Jan/2014 |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| | |
53 20/Jan/2014 |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| | |
33 19/Jan/2014 ||||||||||||||||||||||||||||||||||||||||||||||| | |
32 18/Jan/2014 |||||||||||||||||||||||||||||||||||||||||||||| | |
41 17/Jan/2014 ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| | |
51 16/Jan/2014 ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| | |
50 15/Jan/2014 |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| | |
53 14/Jan/2014 |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| | |
67 13/Jan/2014 ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| |