Skip to content

Instantly share code, notes, and snippets.

(defproject modern-cljs "0.1.0-SNAPSHOT"
:description "FIXME: write description"
:url "http://example.com/FIXME"
:license {:name "Eclipse Public License"
:url "http://www.eclipse.org/legal/epl-v10.html"}
:source-paths ["src/cljs" "src/clj"]
:dependencies [[org.clojure/clojure "1.7.0"]
[org.clojure/clojurescript "1.7.48"]
[compojure "1.4.0"]]
:plugins [[lein-cljsbuild "1.1.0"]
@alendit
alendit / mylib.c
Last active August 29, 2015 14:01
Apparent cffi bug
#include <stdlib.h>
#include <stdio.h>
#include "mylib.h"
/* initialize the array with integers 0...length */
void initialize_MyArray(MyArray* a, long length){
a->length = length;
a->arr = (int*)malloc(length * sizeof(int));
int i;
for(i=0; i<length; i++){
@alendit
alendit / gist:774367e2eb1c411bc657
Last active August 29, 2015 14:01
The Internation 2014 Prize Pool Prediction
{
"metadata": {
"name": "",
"signature": "sha256:b3cc84a8e3da6c5df0957c9258a407f6a771ff218bad3cc6164a788167eedbc6"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
@alendit
alendit / output.txt
Last active August 29, 2015 14:04
xdress compilation error (bug #259)
Error compiling Cython file:
------------------------------------------------------------
...
if isinstance(new_set, _SetUInt):
self.set_ptr = (<_SetUInt> new_set).set_ptr
elif isinstance(new_set, np.generic) and np.PyArray_DescrFromScalar(new_set).type_num == np.NPY_UINT32:
# scalars are copies, sadly not views, so we need to re-copy
if self.set_ptr == NULL:
self.set_ptr = new cpp_set[xdress_extra_types.uint32]()
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@alendit
alendit / gist:4a3b456f7092f1d6c94b5c357f944ac3
Created October 1, 2017 14:18
Bundestagswahl 2017: der Bundeswahlleister-Scrapper
{
"cells": [
{
"cell_type": "code",
"execution_count": 32,
"metadata": {},
"outputs": [],
"source": [
"import requests\n",
"import bs4\n",