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
<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
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
# 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
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
#!/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
#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 | |
# I sincerely recommend this is backed by ramfs/tmpfs, otherwise you will | |
# probably hit your disk rather hard--which is bad for SSDs :) | |
# Same goes for any file you redirect stdout to. | |
WORKDIR="${1:-/tmp/work}" | |
mkdir -p "$WORKDIR" || exit 1 | |
if [ ! -r ciphers.txt ]; then |
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, hashlib, json | |
from random import SystemRandom | |
from shcs.rsa.crypto import Cipher as RSA | |
from shcs.pad import LSBPadding | |
from shcs import modular | |
parser = argparse.ArgumentParser() | |
parser.add_argument('-h', '--hash', dest='hash', default='sha512', help='Hash function to use for commitment') |
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
-- Simple package manager script | |
package = { | |
path = ['./', '/usr/share/sol/'], | |
extensions = ['.sol', ''], | |
loaded = {}, | |
loading = {}, | |
load = func(self, file) | |
result = try(io.open, file, io.MODE_READ) | |
if !result[0] then return None end |