Skip to content

Instantly share code, notes, and snippets.

View koaning's full-sized avatar

vincent d warmerdam koaning

View GitHub Profile
@koaning
koaning / scrape_api.py
Created March 23, 2014 14:03
script for meetup api
import requests as rq
import json
import collections
import time
API_KEY = 'APIKEY'
GROUP_ID = 'GROUPID'
def handle_event(event, event_dict):
event_dict[ event ] = {}
@koaning
koaning / index.html
Created August 23, 2014 16:27
d3 leaflet without geojson
<!DOCTYPE html>
<html>
<head>
<title>d3.js with leaflet.js</title>
<link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.7/leaflet.css"/>
<script src="http://d3js.org/d3.v3.min.js"></script>
<script src="http://cdn.leafletjs.com/leaflet-0.7/leaflet.js"></script>
<script src="http://cdnjs.cloudflare.com/ajax/libs/lodash.js/2.4.1/lodash.js"></script>
<style>
@koaning
koaning / index.html
Created September 7, 2014 10:29
defs usage d3/leaflet
<!DOCTYPE html>
<html>
<head>
<title>d3.js with leaflet.js</title>
<link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.7/leaflet.css"/>
<script src="http://d3js.org/d3.v3.min.js"></script>
<script src="http://cdn.leafletjs.com/leaflet-0.7/leaflet.js"></script>
<script src="http://cdnjs.cloudflare.com/ajax/libs/lodash.js/2.4.1/lodash.js"></script>
<style>
@koaning
koaning / server.R
Last active August 29, 2015 14:11
ShinieR Interaction with <<-
library(shiny)
library(ggplot2)
library(reshape2)
library(randomForest)
df = ChickWeight
n = nrow(df)
perfdf = data.frame(ntree=as.numeric(), mse_train=as.numeric(), mse_test=as.numeric())
count = 0
@koaning
koaning / gist:28a91f5ac8be1571059a
Last active August 29, 2015 14:13
Amsterdam Python Meetup: Pandas 101
{
"metadata": {
"name": ""
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{
@koaning
koaning / gist:331610c504fac3be01c8
Created January 10, 2015 14:23
neural_pca.Rmd
# Neural PCA/Compression in R
In this document I will show a small experiment that shows how a neural network can be used as a pca-algorithm. It should also help explain how neural networks work and why neural networks can be such a powerful machine learning algorithm.
The code will be written in R and needs the following dependencies.
### Packages Used
```{r packages}
library(RSNNS)
@koaning
koaning / solving_non_linear_problems
Last active August 29, 2015 14:13
linear_problems
{
"metadata": {
"name": "",
"signature": "sha256:f2df6bbd409a5263ed5975f62791ba9a5f6c84469fdd4212a03e04b0f3bf051d"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
@koaning
koaning / python_meetup
Last active August 29, 2015 14:13
python_meetup_v2
{
"metadata": {
"name": ""
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{
@koaning
koaning / tsp.ipynb
Created January 17, 2015 22:57
tsp
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@koaning
koaning / asdfad
Created June 30, 2015 21:24
fadfdfd
asdfasdfa