Skip to content

Instantly share code, notes, and snippets.

View pjvds's full-sized avatar
:octocat:
‏‏‎

Pieter Joost van de Sande pjvds

:octocat:
‏‏‎
View GitHub Profile
  • 12 Lomboks (lange rode pepers)
  • 2 kleine rode pepertjes.
  • 1 theel. grof zeezout
  • 1 theel. fijngehakte galanga
  • 1 eetl. in dunne ringen gesneden citroengras (alleen het witte deel) - (trawa cytrynowa)
  • 1 theel. fijngehakte kaffirlimoenschil
  • 1 theel. fijngehakte korianderwortels - (kolendra)
  • 2 eetl. fijngehakte knoflook - (czosnek)
  • 4 eetl. dunne ringen gesneden sjalotjes (ca. 2-3 sjalotjes) - (szalotka)
  • 7 korrel pepers, verse gemalen
@pjvds
pjvds / atos ascii art.txt
Created August 1, 2011 19:29
Atos ASCII Art
,----,
,/ .`| ,----..
,---, ,` .' : / / \ .--.--.
' .' \ ; ; // . : / / '.
/ ; '. .'___,/ ,'. / ;. \| : /`. /
: : \ | : |. ; / ` ;; | |--`
: | /\ \ ; |.'; ;; | ; \ ; || : ;_
| : ' ;. :`----' | || : | ; | ' \ \ `.
| | ;/ \ \ ' : ;. | ' ' ' : `----. \
' : | \ \ ,' | | '' ; \; / | __ \ \ |
@pjvds
pjvds / Why do we need two props.vb
Created December 6, 2011 10:01
Why do we need two props?
Public Interface IFoo
ReadOnly Property Name As String
End Interface
Public Class Foo
Implements IFoo
Public Property Name As String
Public ReadOnly Property IFoo_Name As String Implements IFoo.Name
<!-- Syntax highlighter -->
<link href='http://alexgorbatchev.com/pub/sh/current/styles/shCore.css' rel='stylesheet' type='text/css'/>
<link href="http://alexgorbatchev.com/pub/sh/current/styles/shThemeDefault.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="http://alexgorbatchev.com/pub/sh/current/scripts/shCore.js"></script>
<script type="text/javascript" src="http://alexgorbatchev.com/pub/sh/current/scripts/shBrushBash.js"></script>
<script type="text/javascript" src="http://alexgorbatchev.com/pub/sh/current/scripts/shBrushCpp.js"></script>
<script type="text/javascript" src="http://alexgorbatchev.com/pub/sh/current/scripts/shBrushCSharp.js"></script>
<script type="text/javascript" src="http://alexgorbatchev.com/pub/sh/current/scripts/shBrushCss.js"></script>
<script type="text/javascript" src="http://alexgorbatchev.com/pub/sh/current/scripts/shBrushDelphi.js"></script>
@pjvds
pjvds / FileUploadModule.cs
Created January 12, 2012 14:59
FileUploadModule
public class FileUploadModule : IHttpModule
{
private const int _maxUploadSize = 1337;
public void Init(HttpApplication context)
{
context.BeginRequest += handleBeginRequest;
}
private void handleBeginRequest(object sender, EventArgs e)
@pjvds
pjvds / ubuntu-neo4j.sh
Created April 18, 2012 19:29 — forked from quinn/ubuntu-neo4j.sh
neo4j on ubuntu
sudo apt-get install openjdk-6-jre-headless
curl -O http://dist.neo4j.org/neo4j-community-1.6.2-unix.tar.gz
tar -xf neo4j-community-1.6.2-unix.tar.gz
rm neo4j-community-1.6.2-unix.tar.gz
neo4j-community-1.6.2/bin/neo4j start
Category
{
   String Name
}

Product
{
   String Name
   Decimal SinglePrice

Integer Amount

@pjvds
pjvds / libusb.h
Created January 20, 2013 12:29
Modified libusb.h to solve: `iso.go:67:8: struct size calculation error off=72 bytesize=64` 1. Open `libusb.h` from `/usr/local/include/libusb-1.0/libusb.h`. 2. Change [0] to [1] at line #937.
/*
* Public libusb header file
* Copyright (C) 2007-2008 Daniel Drake <dsd@gentoo.org>
* Copyright (c) 2001 Johannes Erdfelt <johannes@erdfelt.com>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
@pjvds
pjvds / Device.go
Created January 21, 2013 16:27
Quick fix for gousb
package usb
// #include <libusb-1.0/libusb.h>
import "C"
import (
"fmt"
"log"
"reflect"
"sync"
@pjvds
pjvds / gist:5539685
Last active December 17, 2015 02:59
Table reformat example

When the following markdown tables is in my source:

|Left align|Right align|Center align|
|:---------|----------:|:----------:|
|This|This|This|
|column|column|column|
|will|will|will|
|be|be|be|
|left|right|center|

|aligned|aligned|aligned|