Skip to content

Instantly share code, notes, and snippets.

View nwillems's full-sized avatar

Nicolai Willems nwillems

View GitHub Profile
@nwillems
nwillems / README.md
Last active August 29, 2015 13:56
A language - thoughts on a higher level language

This is a gist describing some random thoughs on a possible programming language. It is by no means a specification or in anyway something concrete, at the moment it is some thoughts, put in this gist, to remove them from my head.

Comments are very welcome.

Forgiveness

It should be possible - without making them symbols - to have a compiler recognise public and pubilc or even pubic as the same symbol. Of course if you ever choose to use a variable name called pubilc this would not be possibl, but whatever else you do this should be possible.

Syntax

Curly braces are not bulky and blocky enough! Squarebrackets should indicate code-blocks! /sarcasm-off

@nwillems
nwillems / README.md
Last active August 29, 2015 13:57
Example for Datagist

Explanation of data

This data was generated by http://www.generatedata.com/ The template used is:

ID, autoincrement(1,1) Name, Names(Name Surname) City, City() Income, CUrrency(xxxxx, 5000, 10000, "$", "prefix") Distance, NormDist(0,3)

@nwillems
nwillems / index.md
Last active August 29, 2015 13:58
SVN: The wrong parts

Allright, so that was a bold title! So far I've found one MAJOR thing, which I will describe in here.

This is not meant as a commercial for git, but I feel myself hitting problems with SVN which git solves perfectly. My experience with othe DVCS are pretty much non-existing, so comments are welcome.

And in general comments are very welcome!

Catching-up with the latest work

A typical workflow could look something like this: Me: Create branch for feature - MyFeatureBranch Me: Do some development - and commits it

@nwillems
nwillems / idea.md
Last active August 29, 2015 14:05
AppIdea - Shopper

IDEA Create an app that allows you to scan bar codes while shopping, to allow for you to automatically check of things on your shopping list.

Pain Why do I need to think about what I have to go shopping for, when I can have computers tell me what I usually shop for.

Gain in a couple of months you will be able to have an automatic shopping list, due to the things that you've already registered.

Making money By aggregating the data you(the developer/businessman/whatnot) can sell it as large-scale consumer statistics(I think scientific use), or maybe even(if morale allows) use it to effectively do personal targeting!

Challenges

@nwillems
nwillems / derp.java
Created December 16, 2014 18:08
A Java exception wrapping method
// Demonstrate usage
class Mainer{
public static void main(String[] args){
Boolean b = exceptionJoe(new Callable<Boolean>{
public Boolean call(){
return Boolean.TRUE;
}
}, Boolean.FALSE);
}
}
@nwillems
nwillems / index.html
Last active August 29, 2015 14:12 — forked from mbostock/.block
<!DOCTYPE html>
<meta charset="utf-8">
<style>
.link {
fill: none;
stroke: #666;
stroke-width: 1.5px;
}
@nwillems
nwillems / index.html
Last active August 29, 2015 14:12
Trials with Hive graphs in D3
<!DOCTYPE html>
<meta charset="utf-8">
<style>
.link {
fill: none;
stroke-width: 1.5px;
}
.axis {
@nwillems
nwillems / README.md
Created January 11, 2015 02:05
Some other trials with D3

Hello and welcome - another trial with D3 and plotting course statistics.

@nwillems
nwillems / process.c
Last active August 29, 2015 14:21
[JACKAudio] Processing stuffs
int process(jack_nframes_t nframes, void *arg){
jack_default_audio_sample_t *out;
jack_default_audio_sample_t inp[nframes];
int i =0;
out = jack_port_get_buffer(output_port, nframes);
for(i =0; i < nframes; i++){
int t = state;
//char tmp = (t * (t >> 5 | t >> 8)) >> (t >> 16);
@nwillems
nwillems / util.js
Last active August 29, 2015 14:23
Javascript Clone array
// Fire away with comments - I'd like to know faster or more compact
// or what-ever-measure-you-like solutions
function clone(a){
return Array.apply(null, a);
}
// NOTE-to-Self: DONT EVER DO "arr.length--" it WILL mutate array!