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
$ brew --config; brew doctor | |
HOMEBREW_VERSION: 0.8 | |
HEAD: a2185815eb67d9d54230724bd54c6ba7a4277ae9 | |
HOMEBREW_PREFIX: /usr/local | |
HOMEBREW_CELLAR: /usr/local/Cellar | |
HOMEBREW_REPOSITORY: /usr/local | |
HOMEBREW_LIBRARY_PATH: /usr/local/Library/Homebrew | |
Hardware: dual-core 64-bit core2 | |
OS X: 10.6.8 | |
Kernel Architecture: i386 |
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
%%%---------------------------------------------------------------------------- | |
%%% $ erl -noshell -s fibs main 40 | |
%%% TRANSLATED ARRAY: 102334155 0.001755 seconds | |
%%% TRANSLATED LIST: 102334155 0.000048 seconds | |
%%% REVERSE ORDER LIST: 102334155 0.000004 seconds | |
%%% MINIMAL ARITHMETIC: 102334155 0.000001 seconds | |
%%% NAIVE RECURSIVE: 102334155 8.383385 seconds | |
%%%---------------------------------------------------------------------------- | |
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
$ godi_perform -build apps-oasis | |
### Fetching godi-ocaml-data-notation (if necessary) | |
### Fetching conf-x11 (if necessary) | |
### Fetching conf-tcltk (if necessary) | |
### Fetching godi-ocaml-labltk (if necessary) | |
### Fetching godi-core-script (if necessary) | |
### Fetching conf-opengl (if necessary) | |
### Fetching conf-glut (if necessary) | |
### Fetching godi-lablgl (if necessary) | |
### Fetching godi-lablgtk2 (if necessary) |
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
abs | |
abs_float | |
acos | |
asin | |
at_exit | |
atan | |
atan2 | |
bool_of_string | |
ceil | |
char_of_int |
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
init:get_argument(home). %%% {ok,[["/home/username"]]} |
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
HANDY ONE-LINE SCRIPTS FOR AWK 30 April 2008 | |
Compiled by Eric Pement - eric [at] pement.org version 0.27 | |
Latest version of this file (in English) is usually at: | |
http://www.pement.org/awk/awk1line.txt | |
This file will also be available in other languages: | |
Chinese - http://ximix.org/translation/awk1line_zh-CN.txt | |
USAGE: |
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/bash | |
# Pull this file dowm, make it executable and run it with sudo | |
# wget https://raw.github.com/gist/1603037/build-erlang-r15b.sh | |
# chmod u+x build-erlang-r15b.sh | |
# sudo ./build-erlang-r15b.sh | |
if [ $(id -u) != "0" ]; then | |
echo "You must be the superuser to run this script" >&2 | |
exit 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
awk 'BEGIN{ | |
m=split("Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec",d,"|") | |
for(o=1;o<=m;o++){ | |
date[d[o]]=sprintf("%02d",o) | |
} | |
} | |
{ | |
gsub(/\[/,"",$4); gsub(":","/",$4); gsub(/\]/,"",$5) | |
n=split($4, DATE,"/") | |
day=DATE[1] |
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
%% ---------------------------------------------------------------------------- | |
%% Jesse Gumm <[email protected]> | |
%% http://erlang.org/pipermail/erlang-questions/2012-October/069832.html | |
%% | |
zipn(List) -> | |
zipn([],List). | |
zipn(Acc,[]) -> | |
lists:map(fun lists:reverse/1,Acc); |
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
-- http://blog.moertel.com/articles/2004/03/13/concurrent-port-scanner-in-haskell | |
module Main (main) where | |
import Control.Concurrent | |
import Control.Exception | |
import Data.Maybe | |
import Network | |
import Network.BSD | |
import System.Environment |
OlderNewer