This guide was created by VTEX for internal purposes inspired by Shopify's GraphQL API Tutorial.
There is no official GraphQL guidelines for handling errors, so we are stabilishing our own.
This guide was created by VTEX for internal purposes inspired by Shopify's GraphQL API Tutorial.
There is no official GraphQL guidelines for handling errors, so we are stabilishing our own.
http://angular.github.io/protractor/#/api
Note: Most commands return promises, so you only resolve their values through using jasmine expect API or using .then(function()) structure
Based on this post: https://spagettikoodi.wordpress.com/2015/01/14/angular-testing-cheat-sheet/ by @crystoll
browser.get('yoururl'); // Load address, can also use '#yourpage'
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
Having trouble installing the latest stable version of tmux?
I know, official package for your OS/distro is outdated and you just want the newest version of tmux.
Well, this script should save you some time with that.
var tag="mytag";r="";$tw.wiki.each(function(t){if(t.hasTag(tag)){r=r+" "+(t.fields.text||"")}});r.trim().replace(/\s+/gi," ").split(" ").length |
Get Homebrew installed on your mac if you don't already have it
Install highlight. "brew install highlight". (This brings down Lua and Boost as well)
/** | |
* (C)Leanest CSS spinner ever | |
*/ | |
@keyframes spin { | |
to { transform: rotate(1turn); } | |
} | |
.progress { | |
display: inline-block; |
@mixin same($values...){ | |
$length: length($values); | |
$value: nth($values, $length); | |
@for $i from 1 to $length{ | |
#{nth($values, $i)}: $value; | |
} | |
} | |
//Usage: |
/** | |
* The first commented line is your dabblet’s title | |
*/ | |
tr { | |
border-width: 1px 0px 1px 0px; | |
border-style: solid; | |
border-color: #fff; | |
display: block; | |
} | |
tr:hover { |
/** | |
* The first commented line is your dabblet’s title | |
*/ | |
tr { | |
border-width: 1px 0px 1px 0px; | |
border-style: solid; | |
border-color: #fff; | |
display: block; | |
} | |
tr:hover { |