This file contains hidden or 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
#! /usr/bin/env ruby | |
require 'uri' | |
require 'net/http' | |
require 'json' | |
class Mukom < Net::HTTP | |
BASE = URI.parse 'https://mokum.place/api/v1/' | |
attr_accessor :api_key |
This file contains hidden or 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 <stdlib.h> | |
#define N 26 | |
#define LEN (N * 2 + 1) | |
static int s[LEN] ; | |
static void print_s(void) { | |
for (int i = 0; i < LEN; i ++) |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 <[email protected]> | |
# 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') |