This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#ifndef NBITS | |
#define NBITS 42 | |
#endif | |
static unsigned long long states[NBITS + 1][7][2 * NBITS] ; | |
/* step s r */ | |
static inline int next_s(int s, int b) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <string.h> | |
#include <stdlib.h> | |
#include <assert.h> | |
#define MAX_STRING 100001 | |
static char s[MAX_STRING] ; | |
static unsigned sl ; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* # to compile: | |
* $ gcc -march=native -O3 -Wall -o normalize normalize.c | |
* # to run tests and benchmark: | |
* $ time ./normalize chunky # tests/benchmarks chunky implementation | |
* $ time ./normalize naive # tests/benchmarks naive implementation | |
* $ time ./normalize strdup # benchmarks strdup for comparison | |
*/ | |
#include <stdio.h> | |
#include <string.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function () { | |
var mobileElem = document.getElementById('mobile-link'), | |
mobileUrl; | |
if (mobileElem !== undefined && mobileElem !== null) { | |
mobileUrl = mobileElem.getAttribute('href'); | |
} | |
if (getCookie('noRedirect') !== 'enabled' && mobileUrl !== undefined) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def make_ws url, method | |
ws = WebSocket::Client::Simple.connect url | |
u1 = "ws(#{url.split(WS_BASE).last})" | |
now = 0 | |
prg = 0 | |
sf = self | |
ws.on :open do | |
sf.debug "*** #{u1} connected" | |
now = 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
"os" | |
"flag" | |
"log" | |
"bufio" | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
"flag" | |
"log" | |
"os" | |
"encoding/binary" | |
"bufio" | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
*.o | |
main | |
tags |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Maintainer: Daniel J Griffiths <ghost1227@archlinux.us> | |
# Maintainer: perlawk | |
pkgname=tekui | |
pkgver=1.11 | |
pkgrel=1 | |
pkgdesc="A small, freestanding and portable GUI toolkit written in Lua and C." | |
arch=('i686' 'x86_64') | |
url="http://tekui.teklib.org" | |
license=('GPL') |