Skip to content

Instantly share code, notes, and snippets.

Gabriel kanedo

Block or report user

Report or block kanedo

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@kanedo
kanedo / triangle_filter.py
Created Oct 24, 2018
triangle smoothing filter in python
View triangle_filter.py
def triangle_filter(self, n):
f = np.zeros((1+2*n))
for i in range(n):
f[i] = i+1
f[-i-1] = i+1
f[n] = n + 1
return f / np.sum(f)
filter = triangle_filter(smoothing_factor)
tmp = np.pad(data, smoothing, mode='edge')
@kanedo
kanedo / csvToMMD.swift
Created Mar 20, 2018
csv to multimarkdown
View csvToMMD.swift
#!/usr/bin/swift -suppress-warnings
// based on https://chrisbrandow.svbtle.com/csv-to-multimarkdown-tables
import Foundation
let separators: [Character: String] = ["=": ":---:", ">": "----:", "<": ":----"]
let separatorSet = CharacterSet(charactersIn: "><=, ")
func csv(data: String) -> [[String]] {
var result: [[String]] = []
let rows = data.components(separatedBy: "\n")
@kanedo
kanedo / fertility bias window construction.ipynb
Created Mar 7, 2018
use mxnet.nd.gather_nd to create matrix for fertility bias (Cohn et al, 2016)
View fertility bias window construction.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View Headline - Symbol List.tmPreferences
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>name</key>
<string>Symbol List</string>
<key>scope</key>
<string>meta.function.headline.latex</string>
<key>settings</key>
<dict>
@kanedo
kanedo / 2015-10-18_7173497_rollefbachviadukt-und-indetalweg_export.geojson
Created Oct 18, 2015
Rollefbachviadukt - Kornelimünster - Indetalrundweg
View 2015-10-18_7173497_rollefbachviadukt-und-indetalweg_export.geojson
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View westerwaldsteig_etappe4.geojson
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View westerwaldsteig_etappe3.geojson
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View westerwaldsteig_etappe2.geojson
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View westerwaldsteig_etappe1.geojson
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View keybase.md

Keybase proof

I hereby claim:

  • I am kanedo on github.
  • I am kanedo (https://keybase.io/kanedo) on keybase.
  • I have a public key whose fingerprint is 164C 817C EA9E 5106 7E6D C663 D067 2EBA 5F64 E214

To claim this, I am signing this object:

You can’t perform that action at this time.