This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Lines\s*:\s*(\d*\.?\d+)% |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"DestinationType":{ | |
"DATA_URL":0, | |
"FILE_URI":1, | |
"NATIVE_URI":2 | |
}, | |
"EncodingType":{ | |
"JPEG":0, | |
"PNG":1 | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let timeout = 1000; | |
/** | |
* Create a custom observable that creates a XHR request and returns complete when the promise is fulfilled | |
*/ | |
let observable = Rx.Observable.create((o) => { | |
dataService.fetch('test.json') | |
.then((data) => { | |
o.onNext(data); | |
o.onCompleted(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* The element to use, in this case a search field. | |
*/ | |
let input = document.getElementById('input'); | |
let results = document.getElementById('results'); | |
/** | |
* Create an Observable that will receive all keyup events | |
*/ | |
let source = Rx.Observable.fromEvent(input, 'keyup') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@function mapReverse ($map) { | |
$result: null; | |
@if type-of($map) == "map" { | |
$keys: map-keys($map); | |
$map-reversed: (); | |
@for $i from length($keys) through 1 { | |
$map-reversed: map-merge( | |
$map-reversed, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Outputs the reading time | |
# "A 4 minute read" | |
# Put into your _plugins dir in your Jekyll site | |
# Usage: A {{ page.content | reading_time }} read | |
module ReadingTimeFilter | |
def reading_time( input ) | |
words_per_minute = 180 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% with 'one two three four five six' as list %} | |
{% for item in list.split %} | |
{{ item }}<br> | |
{% endfor %} | |
{% endwith %} |