git clone --mirror ssh://[email protected]/user/repo.git filtered-repo
cd filtered-repo
git filter-branch --prune-empty --subdirectory-filter some/folder/path/ master
cd ..
git clone ./filtered-repo new-repo
cd new-repo
git status
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 numToColor (num, maxHue = 350, minHue = 0) { | |
| const hue = num * (maxHue - minHue) + minHue | |
| return `hsl(${hue}, 70%, 45%)` | |
| } |
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
| const glob = require('glob') | |
| const fs = require('fs'); | |
| const xml2js = require('xml2js'); | |
| const path = require('path'); | |
| function parseFile (filePath, parser) { | |
| fs.readFile(filePath, (err, data) => { | |
| parser.parseString(data, (err, result) => { | |
| const itemgroups = result.Project.ItemGroup; | |
| if (itemgroups && itemgroups.length) { |
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
| license: mit |
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
| // TODO: convert to geojson | |
| var features = [["5992", [44.6504003, -93.2971104], "m"], ["2925", [38.3090139, -122.2833277], "m"], ["3258", [44.0459028, -123.1693478], "m"], ["3829", [36.3089363, -82.4037918], "m"], ["4108", [36.1961294, -94.1839461], "m"], ["3126", [39.6252614, -104.7940466], "m"], ["2058", [35.8372108, -78.6074304], "m"], ["3758", [47.7915764, -96.6073175], "m"], ["1447", [46.6945384, -92.1069175], "m"], ["296", [35.2178954, -93.1664602], "m"], ["5639", [33.8009759, -117.9423561], "m"], ["3646", [32.9700244, -80.0031996], "m"], ["2548", [37.6589269, -82.2710627], "m"], ["3894", [38.0377086, -84.4220326], "m"], ["6480", [33.3078738, -111.9016392], "m"], ["5300", [27.8472347, -82.354341], "m"], ["913", [43.2915783, -91.7537152], "m"], ["4648", [30.6780894, -88.1948548], "m"], ["829", [35.652383, -105.9998077], "m"], ["3485", [34.8639269, -83.9980185], "m"], ["3415", [28.1472522, -82.7435188], "m"], ["4147", [35.8181516, -78.8449974], "m"], ["3355", [36.1561688, -115.0796748], "m"], ["2876", [35 |
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
| public T ObjectAssign(T source) | |
| { | |
| Type t = this.GetType(); | |
| var properties = t.GetProperties().Where(prop => prop.CanRead && prop.CanWrite); | |
| foreach (var prop in properties) | |
| { | |
| var value = prop.GetValue(source, null); | |
| if (value != null) | |
| prop.SetValue(this, value, null); |
Command-line install instructions:
sudo apt-get install apt-transport-https
wget -qO - https://z.cash/gpg-pubkeys/zcash.asc | sudo apt-key add -
sudo echo "deb https://apt.z.cash jessie main" | sudo tee /etc/apt/sources.list.d/zcash.list
sudo apt-get update
sudo apt-get install zcash
zcash-fetch-params
mkdir ~/.zcash
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
| { | |
| "01":"AL", | |
| "02":"AK", | |
| "04":"AZ", | |
| "05":"AR", | |
| "06":"CA", | |
| "08":"CO", | |
| "09":"CT", | |
| "10":"DE", | |
| "11":"DC", |