Skip to content

Instantly share code, notes, and snippets.

View glejeune's full-sized avatar

Gregoire Lejeune glejeune

View GitHub Profile
@milnak
milnak / garlic-os-tips.md
Last active November 18, 2024 18:28
My set of GarlicOS tips #rg35xx

Garlic OS Tips (Windows-based)

GarlicOS Cookbook

Follow these instructions for an easy way to get up and going quickly! These are complete instructions, and will be the easiest way to get started on a new RG35XX.

Set up SD Card

Get a high quality SD (e.g. SanDisk Extreme) card, 128GB or larger, 256GB is recommended. Don't skimp here, they're cheap, and don't use the card that comes with the RG35XX as it's crap.

@efcasado
efcasado / eqc.md
Last active September 28, 2024 18:32
A gentle introduction to (Erlang) QuickCheck

Erlang QuickCheck

What is QuickCheck?

QuickCheck is a language for stating properties of programs.

?FORALL(X, nat(), X*X >= 0)
anonymous
anonymous / gist:4591596
Created January 22, 2013 02:34
require 'llvm/core'
require 'llvm/execution_engine'
require 'llvm/transforms/scalar'
class Generator
attr_accessor :ptr
def build(code,name, mod)
@piscisaureus
piscisaureus / pr.md
Created August 13, 2012 16:12
Checkout github pull requests locally

Locate the section for your github remote in the .git/config file. It looks like this:

[remote "origin"]
	fetch = +refs/heads/*:refs/remotes/origin/*
	url = [email protected]:joyent/node.git

Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/* to this section. Obviously, change the github url to match your project's URL. It ends up looking like this:

@seanlilmateus
seanlilmateus / gist:1536136
Created December 29, 2011 20:51
macruby core animation Fireworks, have a nice macruby new year
#!/usr/local/bin/macruby
framework 'Cocoa'
framework 'QuartzCore'
framework 'CoreGraphics' # Mountain Lion Update
class FireworkDelegate
attr_accessor :window
def initWithURL(url)
case url
@glejeune
glejeune / README.md
Created November 6, 2011 19:50
A (very) simple chat service using AMQP

Run

  1. Install and run an AMQP server (RabbitMQ is a good choise)

  2. Install amqp and ncurses-ruby gems

    sudo gem install amqp ncurses-ruby

  3. Run the client

ruby ./amqp-chat.rb

@dreamersdw
dreamersdw / brainfuck.c
Created October 29, 2011 16:16
Brainfuck interpreter written in C
#include <stdio.h>
#define match(from, to, ptr, dir, level) \
while(*(dir ptr)) { \
if (*ptr == to && level == 0) break; \
if (*ptr == from) ++level; \
if (*ptr == to) --level; \
}
char code[32768] = {0};