Skip to content

Instantly share code, notes, and snippets.

View ker2x's full-sized avatar

Laurent Laborde ker2x

  • Toulouse, France
  • 00:33 (UTC +02:00)
View GitHub Profile
@ker2x
ker2x / gist:a86b1f6fc0de6a9c1f2e
Last active August 29, 2015 14:01
ragel spec problem
# Lexer.rl
@stack = [];
%%{
machine plexer;
number = ('+'|'-')?digit+('.'digit)*;
@ker2x
ker2x / LICENSE.txt
Created February 17, 2012 17:58 — forked from 140bytes/LICENSE.txt
140byt.es -- Click ↑↑ fork ↑↑ to play!
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2011 YOUR_NAME_HERE <YOUR_URL_HERE>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
unsigned int
chars_to_int(char * from, int start, int end) {
/* better way : byte copy */
unsigned int value = 0;
unsigned char buf;
int exp;
int pos=start;
for( ; pos <= end ; pos ++ ) {
exp = (end - pos);
buf = from[pos];
{
"cells": [
{
"cell_type": "code",
"execution_count": 367,
"metadata": {},
"outputs": [],
"source": [
"import numpy as np\n",
"import scipy as sci\n",
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.