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 * as fs from 'fs'; | |
| import { polygon, featureCollection } from '@turf/helpers'; | |
| import booleanIntersects from '@turf/boolean-intersects' | |
| const degrees = 6 | |
| const featureArray = [] | |
| // create a geojson feature collection using TurfJS | |
| var collection = featureCollection(featureArray) |
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
| # extracted from http//www.naturalearthdata.com/download/110m/cultural/ne_110m_admin_0_countries.zip | |
| # under public domain terms | |
| country_bounding_boxes = { | |
| 'AF': ('Afghanistan', (60.5284298033, 29.318572496, 75.1580277851, 38.4862816432)), | |
| 'AO': ('Angola', (11.6400960629, -17.9306364885, 24.0799052263, -4.43802336998)), | |
| 'AL': ('Albania', (19.3044861183, 39.624997667, 21.0200403175, 42.6882473822)), | |
| 'AE': ('United Arab Emirates', (51.5795186705, 22.4969475367, 56.3968473651, 26.055464179)), | |
| 'AR': ('Argentina', (-73.4154357571, -55.25, -53.628348965, -21.8323104794)), | |
| 'AM': ('Armenia', (43.5827458026, 38.7412014837, 46.5057198423, 41.2481285671)), |
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
| run-shell "powerline-daemon -q" | |
| source "$HOME/.local/lib/python3.8/site-packages/powerline/bindings/tmux/powerline.conf" | |
| set -g default-terminal "xterm-256color" | |
| # set-option -g default-command "/usr/local/bin/reattach-to-user-namespace -l /bin/zsh" | |
| # install reattach-to-user-namespace first | |
| # --> brew install reattach-to-user-namespace | |
| new-session |
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
| ''' | |
| O'Meirrcy !!!! Download free ebooks from O'Reilly | |
| Usage: | |
| > git clone https://gist.github.com/Krazybug/1ae50814d25b0a1d862dfdf7161ee503 | |
| > mv 1ae50814d25b0a1d862dfdf7161ee503 omercy | |
| > cd omercy | |
| > pip install requests | |
| > pip install bs4 | |
| > python omercy.py |
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
| use_bpm 100 | |
| live_loop :pad do | |
| chords = [ | |
| [:a2, :g3, :c4, :e4], | |
| [:d2, :f3, :c4, :e4], | |
| [:g2, :f3, :a3, :d4], | |
| [:c2, :g3, :d4, :e4] | |
| ] |
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 mock | |
| with mock.patch('path.to.ObjectClass.my_property', new_callable=mock.PropertyMock) as mock_my_property: | |
| mock_my_property.return_value = 'my value' |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.