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
<!-- | |
SVG filter to make your images look like its 1999! | |
(Hi Dan!) | |
--> | |
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 600 160"> | |
<defs> | |
<linearGradient id="rainbow" gradientUnits="userSpaceOnUse" x1="0" y1="0" x2="100%" y2="0"> | |
<stop offset="0" stop-color="#ff0000"></stop> | |
<stop offset="0.2" stop-color="#ffff00"></stop> |
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 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 Handlebars = require('handlebars'); | |
const json = { | |
job: { | |
pids: ["10/1","10/2","10/3"], | |
owner: "bliven_s", | |
status: "SUCCESS" | |
}, | |
secrets: { | |
jwt_token: "8AK820=" |
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 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/zsh | |
# Restores the clipboard after running unicode_fn.sh | |
export LC_ALL='en_US.UTF-8' | |
export LANG='en_US.UTF-8' | |
sleep .1 | |
pbpaste -pboard ruler | pbcopy |
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
lon | lat | duration | |
---|---|---|---|
8.5215272410261 | 47.3957616953417 | 0 | |
8.371835 | 47.24679 | 31.235 | |
8.371027 | 47.250516 | 29.9966666666667 | |
8.372975 | 47.255491 | 29.2833333333333 | |
8.37146 | 47.260156 | 28.6333333333333 | |
8.372376 | 47.264277 | 29.7183333333333 | |
8.369903 | 47.269002 | 33.515 | |
8.371152 | 47.274843 | 31.0783333333333 | |
8.371162 | 47.280342 | 27.5366666666667 |
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
import shapefile | |
def replace_escape(s): | |
return s.replace(b'\xc3\x82\xc2',b'\xc2').replace(b'\xc3\x83\xc2',b'\xc3') | |
sf = shapefile.Reader("swisscantonsmod/ch-cantons.dbf") | |
print(f"records: {len(sf.records())}") | |
print(f"shapes: {len(sf.shapes())}") | |
out = shapefile.Writer("swisscantonsmod/ch-cantons_fixed.dbf") | |
for f in sf.fields: |
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
[nlsa] |~ | |
name = Custom Settings |~ | |
x = 4 |~ |
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
"""A settings module based on global variables""" | |
name = "Custom Settings" | |
x = 4 | |
y = 0 |
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
// g++ -o closuretest -std=c++11 closuretest.cpp | |
#include <iostream> | |
#include<functional> | |
int main() { | |
int i = 0; | |
std::function<void()> fns[3]; | |
for(;i < 3; i++) { | |
fns[i] = [&i]() { | |
std::cout << i << std::endl; |
NewerOlder