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
#!/usr/bin/env python | |
import random | |
class Markov: | |
def __init__(self, file, size): | |
self.size = size | |
self.starts = [] | |
self.cache = {} | |
self.file_to_words(file) | |
self.parse_words() |
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
#!/usr/bin/python | |
from __future__ import print_function | |
from sys import argv | |
from math import sqrt, floor | |
text = " ".join(argv[1:]) | |
def p(*args): | |
print(*args, sep='', end='') |
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
knuder = [ | |
(1.797,0.397), | |
(1.653,0.776), | |
(1.430,0.883), | |
(1.004,0.377), | |
(1.057,0.577), | |
(1.377,0.703), | |
(0.790,1.043), | |
(0.784,0.763), | |
(2.530,0.730), |
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
// By Martin Dybdal (dybber.dk) | |
// Conkeror page-mode: http://conkeror.org/PageModes | |
// Define absalon_username and absalon_password in your rc-file. | |
// Provides the command 'open-absalon' for opening Absalon | |
in_module(null); | |
require("content-buffer.js"); | |
interactive("open-absalon", "Open Absalon", "follow", $browser_object = "http://absalon.ku.dk"); |
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
#!/usr/bin/python | |
import urllib | |
print "\n" | |
file = open('prank.sh', 'w') | |
webfile = urllib.urlopen('http://github.com/Eckankar/prank-script/raw/master/prank.sh') | |
file.write(webfile.read()) | |
file.close() | |
webfile.close() |
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
#!/usr/bin/env python | |
from __future__ import print_function | |
from xml.dom.minidom import parseString | |
from dateutil.parser import parse as dateparse | |
from time import mktime | |
import sys | |
if len(sys.argv) > 1: | |
filename = sys.argv[1] | |
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
<?php | |
/////////////////////////////////////////////////////////////////////////////// | |
// | |
// Scans for 3-letter domain names. | |
// | |
/////////////////////////////////////////////////////////////////////////////// | |
// This is the number of domains the script will stop at. | |
$i = 100; | |
ob_start(); |
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> | |
void fact(int* n, int* out); | |
int main(int argc, char *argv[]) { | |
int n = atoi(argv[1]); | |
int out = 1; | |
fact(&n, &out); | |
printf("%d\n", out); | |
return 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
#!/usr/bin/env python | |
import sys | |
import pyexiv2 | |
import os.path | |
def main(): | |
if len(sys.argv) < 2: | |
print "Specify file to examine, please." |
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 jøptest; | |
import java.util.ArrayList; | |
import java.util.Collection; | |
import java.util.List; | |
import java.util.Random; | |
import java.util.Scanner; | |
public class Main { | |
OlderNewer