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
(setq initial-scratch-message nil) | |
(setq inhibit-startup-message t) | |
(setq-default tab-width 4) | |
(setq-default indent-tabs-mode nil) | |
(prefer-coding-system 'utf-8) | |
(setq make-backup-files nil) | |
(setq auto-save-default nil) | |
(global-font-lock-mode t) | |
(setq ring-bell-function 'ignore) |
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
def hashfn(item): | |
h = hash(item) | |
return (1 << (h%64)) | (1 << (h/64%64)) | |
def mask(val): | |
return bin(hashfn(val))[2:] | |
class CountingBloom(object): | |
def __init__(self): | |
self.items = [0] * 64 |
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
{-# LANGUAGE OverloadedStrings #-} | |
import Data.Array.IO | |
import Data.Array.Base | |
import Control.Applicative | |
import Control.Monad.Loops | |
import Data.Either | |
import Data.Attoparsec.Char8 | |
import qualified Data.ByteString.Char8 as B | |
import System.Environment |
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== | |
// @match https://webauth.arizona.edu/* | |
// ==/UserScript== | |
var username = 'fill me in', | |
password = 'fill me in'; | |
document.getElementById('username').value = username; | |
document.getElementById('password').value = password; | |
HTMLFormElement.prototype.submit.call(document.getElementById('fm1')) |
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
{-# LANGUAGE GeneralizedNewtypeDeriving #-} | |
{-# LANGUAGE OverloadedStrings #-} | |
{-# LANGUAGE BangPatterns #-} | |
import Control.Applicative | |
import Control.Monad.Loops | |
import Control.Monad.State.Strict | |
import Data.Either | |
import Data.Attoparsec.Char8 | |
import qualified Data.ByteString.Char8 as B |
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
{-# LANGUAGE OverloadedStrings #-} | |
import Data.Array.IO | |
import Data.Array.Base | |
import Control.Applicative | |
import Control.Monad | |
import Data.Attoparsec.Char8 | |
import qualified Data.ByteString.Char8 as B | |
import System.Environment | |
import Debug.Trace |
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
{-# LANGUAGE OverloadedStrings #-} | |
import Data.Array.IO | |
import Data.Array.Base | |
import Control.Applicative | |
import Control.Monad | |
import Data.Attoparsec.Char8 | |
import qualified Data.ByteString.Char8 as B | |
import System.Environment | |
data Primitive = |
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 <iostream> | |
#include <string> | |
#include <vector> | |
#include <cstdlib> | |
#include <boost/spirit/include/qi.hpp> | |
namespace ast | |
{ | |
struct Left | |
{ |
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
+++++++++++++++++++++++++++++++++ c1v33 : ASCII code of ! | |
>++++++++++++++++++++++++++++++ | |
+++++++++++++++++++++++++++++++ c2v61 : ASCII code of = | |
>++++++++++ c3v10 : ASCII code of EOL | |
>++++++++++ c4v7 : quantity of numbers to be calculated | |
> c5v0 : current number (one digit) | |
>+ c6v1 : current value of factorial (up to three digits) | |
<< c4 : loop counter | |
[ block : loop to print one line and calculate next | |
>++++++++++++++++++++++++++++++++++++++++++++++++. c5 : print current number |
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
A mandelbrot set fractal viewer in brainf*** written by Erik Bosman | |
+++++++++++++[->++>>>+++++>++>+<<<<<<]>>>>>++++++>--->>>>>>>>>>+++++++++++++++[[ | |
>>>>>>>>>]+[<<<<<<<<<]>>>>>>>>>-]+[>>>>>>>>[-]>]<<<<<<<<<[<<<<<<<<<]>>>>>>>>[-]+ | |
<<<<<<<+++++[-[->>>>>>>>>+<<<<<<<<<]>>>>>>>>>]>>>>>>>+>>>>>>>>>>>>>>>>>>>>>>>>>> | |
>+<<<<<<<<<<<<<<<<<[<<<<<<<<<]>>>[-]+[>>>>>>[>>>>>>>[-]>>]<<<<<<<<<[<<<<<<<<<]>> | |
>>>>>[-]+<<<<<<++++[-[->>>>>>>>>+<<<<<<<<<]>>>>>>>>>]>>>>>>+<<<<<<+++++++[-[->>> | |
>>>>>>+<<<<<<<<<]>>>>>>>>>]>>>>>>+<<<<<<<<<<<<<<<<[<<<<<<<<<]>>>[[-]>>>>>>[>>>>> | |
>>[-<<<<<<+>>>>>>]<<<<<<[->>>>>>+<<+<<<+<]>>>>>>>>]<<<<<<<<<[<<<<<<<<<]>>>>>>>>> | |
[>>>>>>>>[-<<<<<<<+>>>>>>>]<<<<<<<[->>>>>>>+<<+<<<+<<]>>>>>>>>]<<<<<<<<<[<<<<<<< | |
<<]>>>>>>>[-<<<<<<<+>>>>>>>]<<<<<<<[->>>>>>>+<<+<<<<<]>>>>>>>>>+++++++++++++++[[ |
NewerOlder