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> | |
// Byte type [0, 256)--used for conversion and some indices | |
typedef unsigned char uchar; | |
#define STATES 256 | |
// State type--the type of an ephemeral state in the state machine | |
typedef struct s_state { |
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
#!/bin/bash | |
if [ -n "$SSH_ORIGINAL_COMMAND" ] ; then | |
$SSH_ORIGINAL_COMMAND | |
else |
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
import argparse | |
parser = argparse.ArgumentParser() | |
parser.add_argument('text', help='Message to encode') | |
parser.add_argument('-d', '--dict', dest='dict', default=None, help='Language file to load') | |
parser.add_argument('-m', '--mark', dest='mark', default='*', help='Mark character/string') | |
parser.add_argument('-s', '--space', dest='space', default=' ', help='Space character/string') | |
parser.add_argument('-n', '--newline', dest='newline', default='\n', help='Newline character/string') | |
parser.add_argument('-g', '--gap', dest='gap', type=int, default=1, help='Inter-character gap') | |
parser.add_argument('-G', '--space-gap', dest='space_gap', type=int, default=3, help='Gap for spaces') |
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
# These settings were set by the catalyst build script that automatically | |
# built this stage. | |
# Please consult /usr/share/portage/config/make.conf.example for a more | |
# detailed example. | |
CFLAGS="-O2 -pipe -mtune=native -fomit-frame-pointer" | |
CXXFLAGS="${CFLAGS}" | |
# WARNING: Changing your CHOST is not something that should be done lightly. | |
# Please consult http://www.gentoo.org/doc/en/change-chost.xml before changing. | |
CHOST="x86_64-pc-linux-gnu" | |
# These are the USE flags that were used in addition to what is provided by the |
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
func rand(n=0) | |
n = ((n * 17) + 1569752) % 3707765549 | |
n = (n << 1) | (((n >> 3) & 1) ^ ((n >> 6) & 1)) | |
n = (n << 1) | (((n >> 8) & 1) ^ ((n >> 5) & 1)) | |
n = ((n * 7) + 67293512) % 3747882443 | |
n = (n << 1) | (((n >> 7) & 1) ^ ((n >> 2) & 1)) | |
n = (n << 1) | (((n >> 4) & 1) ^ ((n >> 3) & 1)) | |
return n | |
end |
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
<html> | |
<head> | |
<title>Place2 Mockup</title> | |
<meta charset="utf8"/> | |
<script type="text/javascript"> | |
/* Configuration section */ | |
var WIDTH = 500; | |
var HEIGHT = 500; |
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
(lambda y, mc: (lambda md, fd, pr, w, wt: [pr(i) for i in y(fd, y(md, w, wt))])( (lambda ju, ml: lambda f, w, wt: () if not w else (y(ju, y(ml, (), w, wt)[0], wt),) + f(f, y(ml, (), w, wt)[1], wt))( (lambda sp: lambda f, w, wt: '' if (not w) or wt == 0 else (w[0] if len(w) == 1 else w[0] + ' ' * sp(w, wt) + f(f, w[1:], wt - len(w[0]) - sp(w, wt))))( (lambda w, wt: int(mc((wt - sum(len(i) for i in w)) / float(len(w) - 1)))),), lambda f, c, r, wt: (c, r) if (not r) or sum(len(i) for i in c) + len(c) + len(r[0]) > wt else f(f, c + (r[0],), r[1:], wt),), (lambda f, l: (l[0],) + f(f, l[1:]) if len(l) > 1 else (' '.join(l[0].split()),)), (lambda *a: __import__('sys').stdout.write(' '.join(a)+'\n')), __import__('sys').stdin.read().split(), 20,))(lambda f, *a: f(f, *a), __import__('math').ceil) |
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 y_combin(f, *args): | |
return f(f, *args) | |
def make_line(recur, cur, rest, width): | |
return ( | |
(cur, rest) | |
if (not rest) or sum(map(len, cur)) + len(cur) + len(rest[0]) > width else | |
recur(recur, cur + (rest[0],), rest[1:], width) | |
) |
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
import time | |
import pygame | |
import numpy as np | |
from OpenGL.GL import * | |
pygame.init() | |
dispinfo = pygame.display.Info() | |
disp = pygame.display.set_mode( |
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
--[[ | |
Deathfix -- a simple Garry's Mod script for making real death ragdolls | |
(drop into <game root>/garrysmod/lua/autorun/server) | |
It's been too long for me to remember the original author, but I can safely | |
say that I've modified it quite a bit anyway. Notwithstanding the other author's | |
claim on this file, I hereby grant this file to the public domain. | |
]]-- | |
if SERVER then |