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
// build: $ cc -o paste paste.c -lmill | |
// run: $ ./paste &; disown | |
// use: $ alias pastebin="nc localhost 6969" | |
// $ echo wat up pimp | pastebin | |
// $ pastebin < source_code.c | |
#include <stdio.h> | |
#include <string.h> | |
#include <ctype.h> | |
#include <assert.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
# this snippet of code needs `curl` and `jq`, which you | |
# can grab from you favorite package manager, or directly | |
# from their respective websites | |
# $URL is the API URL of your preferred pomf clone | |
# ex: https://mixtape.moe/upload.php | |
Function Pomf-Upload($URL) | |
{ | |
foreach ($File in $Args) { | |
$FullPath = (Get-Item $File).FullName |
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 "hash.h" | |
struct _lst { | |
void *e; | |
uint64_t hash; | |
struct _lst *next; | |
}; | |
/* | |
* Adapted sdbm hashing function |
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
zippyshare() { | |
curl -f -\# -F upload_form=@"$@" http://www20.zippyshare.com/upload | html2text | |
} |
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
// ==UserScript== | |
// @name YouTube Autoplay | |
// @namespace https://gandas.us.to/ | |
// @version 0.4 | |
// @description Disable the stupid youtube autoplay | |
// @author sugoiuguu | |
// @match http://www.youtube.com/watch* | |
// @match https://www.youtube.com/watch* | |
// ==/UserScript== |
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
module DFA where | |
import Data.Maybe (fromJust) | |
data Transition i a = Transition a (State i a) | |
deriving (Show, Read, Eq) | |
data State i a = State | |
{ identifier :: i | |
, isFinalState :: Bool |
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
from functools import reduce as _reduce | |
from random import random as _random | |
from sys import version_info as _version, stdout as _stdout, stdin as _stdin | |
# version specific code | |
_input = None | |
if _version[0] < 3: | |
_input = raw_input | |
else: |
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
#!/bin/sh | |
lambda() { | |
if [ ! $__lambda ]; then | |
__lambda=`printf "lambda_%s" $(date +%s)` | |
eval " \ | |
$__lambda() { \ | |
$1; \ | |
};" | |
fi |
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 zipper | |
import l "container/list" | |
type Zipper struct { | |
nzip int | |
list *l.List | |
back *l.Element | |
sel *l.Element | |
front *l.Element |
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
module MinMax where | |
import Data.List (minimumBy) | |
-- a game of tic-tac-toe | |
--- load this file in ghci, and enter | |
--- 'ticTacToe' in the prompt | |
type Token = Char |
OlderNewer