Skip to content

Instantly share code, notes, and snippets.

Avatar

Bastiaan Quast bquast

View GitHub Profile
View NeuralNetwork.R
# sigmoid function
sigmoid <- function(x)
1 / (1 + exp(-x) )
# sigmoid derivative
sigmoid_output_to_derivative <- function(x)
x*(1-x)
# hidden layer size
hidden_dim = 4
View lyx-biber
[bquast@UX32VD ~]$ lyx
This is pdfTeX, Version 3.14159265-2.6-1.40.17 (TeX Live 2016/Arch Linux) (preloaded format=pdflatex)
restricted \write18 enabled.
entering extended mode
(./bibliography-biblatex-biber.tex
LaTeX2e <2016/03/31> patch level 3
Babel <3.9r> and hyphenation patterns for 83 language(s) loaded.
INFO - This is Biber 2.5
View gist:d588d7ab9c17f8b7fcd848384debafb9
# Functional software for Windows
# to be used when admin rights are unavailable
# 64-bit versions
#
# Bastiaan Quast
# bquast@gmail.com
# Git (portable / thumbdrive)
https://git-scm.com/download/win
@bquast
bquast / distancexform.py
Created Jun 26, 2017 — forked from hagerty/distancexform.py
Distance transform from geoJSON to a bumpy array
View distancexform.py
import json
from shapely.geometry import Polygon, shape, Point
import gdal
import numpy as np
import sys
fn = sys.argv[1]
path = sys.argv[2]
def Pixel2World ( geoMatrix, i , j ):
ulX = geoMatrix[0]
@bquast
bquast / README.md
Last active May 22, 2021 — forked from rgdonohue/README.md
Interactive World Map in D3
View README.md

An interactive world map displaying country names on hoover, based on maptimeLEX .

@bquast
bquast / index.html
Last active Oct 25, 2017
stackedAreaChart-nvd3
View index.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<link href="https://cdnjs.cloudflare.com/ajax/libs/nvd3/1.7.0/nv.d3.min.css" rel="stylesheet" />
<script src="https://cdnjs.cloudflare.com/ajax/libs/d3/3.5.5/d3.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/nvd3/1.7.0/nv.d3.min.js"></script>
</head>
<body>
@bquast
bquast / index.html
Last active Oct 25, 2017
pieChart-nvd3
View index.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<link href="https://cdnjs.cloudflare.com/ajax/libs/nvd3/1.7.0/nv.d3.min.css" rel="stylesheet" />
<script src="https://cdnjs.cloudflare.com/ajax/libs/d3/3.5.5/d3.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/nvd3/1.7.0/nv.d3.min.js"></script>
</head>
<body>
@bquast
bquast / data.json
Last active Sep 15, 2020
NVD3 multiBarChart with external JSON
View data.json
[{
"values": [{
"x": "one",
"y": 6
}, {
"x": "two",
"y": 12
}, {
"x": "three",
"y": 9
@bquast
bquast / G2.json
Last active Oct 27, 2017
Goal 2: Growth
View G2.json
[{
"values": [{
"x": 2005,
"y": 5.79
}, {
"x": 2006,
"y": 7.9
}, {
"x": 2007,
"y": 15.03
@bquast
bquast / index.html
Last active Oct 30, 2017
nvd3 sankey
View index.html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<link href="https://cdnjs.cloudflare.com/ajax/libs/nvd3/1.8.6/nv.d3.min.css" rel="stylesheet" />
<script src="https://cdnjs.cloudflare.com/ajax/libs/d3/3.5.17/d3.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/nvd3/1.8.6/nv.d3.min.js"></script>