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
Math.perm = (n = 1, i, s = 0) -> | |
i = (if n <= 1 then 1 else n) unless i? | |
return n if i <= 1 or n <= 1 or i <= s + 1 | |
i-- | |
Math.perm n * i, i, s | |
stack = [] | |
stack.push (Math.perm(50,null,44) / Math.perm(6)) / i for i in [1..100] |
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
# On a mac with snow leopard, for nicer terminal colours: | |
# - Install SIMBL: http://www.culater.net/software/SIMBL/SIMBL.php | |
# - Download'Terminal-Colours': http://bwaht.net/code/TerminalColours.bundle.zip | |
# - Place that bundle in ~/Library/Application\ Support/SIMBL/Plugins (create that folder if it doesn't exist) | |
# - Open Terminal preferences. Go to Settings -> Text -> More | |
# - Change default colours to your liking. | |
# | |
# Here are the colours from Textmate's Monokai theme: | |
# |
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
# So far, this is being based off of http://www.movable-type.co.uk/scripts/sha256.html | |
# http://csrc.nist.gov/publications/fips/fips180-4/fips-180-4.pdf | |
class SHA2 | |
# §5.3, *Setting the Initial Hash Value* | |
# §5.3.3, *SHA-256* | |
H = [ | |
0x6a09e667, 0xbb67ae85, 0x3c6ef372, 0xa54ff53a, 0x510e527f, 0x9b05688c, 0x1f83d9ab, 0x5be0cd19 | |
] | |
# §4.2.2, *SHA-224 and SHA-256 Constants* |
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
# Path to your oh-my-zsh configuration. | |
ZSH=$HOME/.oh-my-zsh | |
# Set name of the theme to load. | |
# Look in ~/.oh-my-zsh/themes/ | |
# Optionally, if you set this to "random", it'll load a random theme each | |
# time that oh-my-zsh is loaded. | |
ZSH_THEME="wedisagree-sjabour" | |
# Example aliases |
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
<button id="btn">Press</button> | |
<div id="box"></div> |
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
[user] | |
name = atsjj | |
email = [email protected] | |
[core] | |
excludesfile = /Users/lname/.gitignore_global | |
[push] | |
default = current | |
[alias] | |
lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit |
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
require 'formula' | |
class Dopewars < Formula | |
homepage 'http://dopewars.sourceforge.net/' | |
url 'http://downloads.sourceforge.net/project/dopewars/dopewars/1.5.12/dopewars-1.5.12.tar.gz' | |
sha1 'ad46a38e225680e591b078eeec563d47b96684bc' | |
depends_on 'gettext' => :build | |
depends_on 'glib' => :build | |
depends_on 'gtk+' => :build |
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
From 6191e5efbf3a5c7cfa6b29b679270d5a0e2ad9d4 Mon Sep 17 00:00:00 2001 | |
From: Steve Jabour <[email protected]> | |
Date: Thu, 5 Jun 2014 16:02:49 -0600 | |
Subject: [PATCH 1/1] ruby 2.0.0-p247 readline patch | |
--- | |
ext/readline/extconf.rb | 9 +++++++++ | |
ext/readline/readline.c | 2 +- | |
2 files changed, 10 insertions(+), 1 deletion(-) |
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
<!DOCTYPE html> | |
<meta charset="utf-8"> | |
<canvas id='c'></canvas> | |
<script type="text/javascript"> | |
document.addEventListener('DOMContentLoaded', function() { | |
var canvas = document.getElementById('c'); | |
canvas.width = canvas.height = 465; | |
var context = canvas.getContext('2d'); |
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
» ent halos.raw | |
Entropy = 7.428127 bits per byte. | |
Optimum compression would reduce the size | |
of this 376 byte file by 7 percent. | |
Chi square distribution for 376 samples is 254.47, and randomly | |
would exceed this value 49.76 percent of the times. | |
Arithmetic mean value of data bytes is 115.1941 (127.5 = random). |
OlderNewer