I hereby claim:
- I am jordanstephens on github.
- I am jordanstephens (https://keybase.io/jordanstephens) on keybase.
- I have a public key whose fingerprint is 126F 251B CDF3 D5CE E87B 1C70 3DBB BC2D AC16 A1AA
To claim this, I am signing this object:
| class LazyPager | |
| include Enumerable | |
| def initialize(&block) | |
| @page = 0 | |
| @block = block | |
| @items = [] | |
| @index = 0 | |
| end |
| openapi: 3.0.0 | |
| info: | |
| title: Fleetio Developer API | |
| version: '1.0' | |
| contact: | |
| name: Fleetio Support | |
| email: [email protected] | |
| url: https://www.fleetio.com/contact | |
| description: |- | |
| ## Getting Started |
I hereby claim:
To claim this, I am signing this object:
| // cycle(0, 1, 3) // => 1 | |
| // cycle(1, 1, 3) // => 2 | |
| // cycle(2, 1, 3) // => 0 | |
| // cycle(0, -1, 3) // => 2 | |
| // cycle(1, -1, 3) // => 0 | |
| // cycle(2, -1, 3) // => 1 | |
| export default function cycle(i, d, n) { | |
| return (i + (n + d)) % n; | |
| } |
| // example usage: | |
| // bBoxUnion("svg > *") => Object {x: 464.9, y: 521.0, width: 319.75, height: 75.5} | |
| function bBoxUnion(selector) { | |
| var nodeList = document.querySelectorAll(selector), | |
| nodeArray = Array.prototype.slice.call(nodeList); | |
| return nodeArray.reduce(function(memo, node) { | |
| if (node.getBBox) { | |
| var bBox = node.getBBox(); |
| require 'yaml' | |
| ARGV.each do |arg| | |
| cars = [] | |
| File.readlines(arg).each do |line| | |
| row = line.split("\t") | |
| year = row[1] | |
| make = row[2].capitalize |
| jQuery('link[rel=stylesheet]').each(function() { | |
| var $t = jQuery(this), p = 'print', s = 'screen', m = 'media'; | |
| if ($t.attr(m) === p) { $t.attr(m, s); } else if ($t.attr(m) === s) { $t.attr(m, p); } | |
| }); |
| Pleasantly surprised to find that this works with SASS, saved me a lot of typing. | |
| @mixin foo { | |
| & bar { | |
| //... | |
| } | |
| } | |
| baz { | |
| @include foo; |