This file contains hidden or 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
| (defn fib [n] (match [n] | |
| [0] 1 | |
| [1] 1 | |
| :else (+ (fib (- n 1)) (fib (- n 2))))) |
This file contains hidden or 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
| var map = L.map('map').setView([50, 100], 2); | |
| L.tileLayer('http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {continuousWorld: false}).addTo(map); | |
| $.getJSON("data/russia-federative-division-0.1.geojson", function (data) { | |
| L.geoJson(data, { | |
| coordsToLatLng: function (coords) { | |
| longitude = coords[0]; | |
| latitude = coords[1]; |
This file contains hidden or 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
| var container; | |
| var camera, scene, renderer; | |
| var group; | |
| var radius = 200; | |
| var mouseX = 0, mouseY = 0; | |
| var width = 700; | |
| var height = 700; | |
| var windowHalfX = width / 2; |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or 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
| {% for post in site.posts %} | |
| {% for tag in post.tags %} | |
| {% if tag == "star" %} | |
| {{post.title}} | |
| {% endif %} | |
| {% endfor %} | |
| {% endfor %} |
This file contains hidden or 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
| {% assign starred = site.posts | where: "star", true %} | |
| {% for post in starred %} | |
| {{post.title}} | |
| {% endfor %} |
This file contains hidden or 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
| @import 'nib' | |
| image-with-linear-gradient(url, linear-gradient-arguments...) | |
| error('image url required') unless length(url) | |
| background-image url(url), unquote('linear-gradient(' + join(', ',linear-gradient-arguments) + ')') |
This file contains hidden or 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
| #!/bin/bash | |
| # Convert to osm xml | |
| for file in *.osm.pbf; do | |
| echo "Converting $file to ${file%.pbf}" | |
| ./osmconvert $file > ${file%.pbf} | |
| done | |
| # Filter power=line | |
| for file in *.osm; do |
This file contains hidden or 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
| #!/bin/bash | |
| find app \( -iname "*.rb" -o -iname "*.coffee" \) -exec awk 'BEGIN {printf("\n*%s*\n", ARGV[1]); printf("\n```\n")} {printf("\t%s\n", $0)} END{printf("```\n")}' "{}" \; > source.md |
This file contains hidden or 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 iterableFileList(fileList) { | |
| return Object.assign({ | |
| __proto__: fileList.__proto__, | |
| [Symbol.iterator]() { | |
| let nextIndex = 0; | |
| return { | |
| next() { | |
| return nextIndex < fileList.length ? | |
| {done: false, value: fileList[nextIndex++]} : | |
| {done: true}; |