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
------------------------------------------------------------ | |
/Users/james/.virtualenvs/numbatest/bin/pip run on Wed Mar 20 12:56:47 2013 | |
Downloading/unpacking numba | |
Getting page http://pypi.python.org/simple/numba | |
URLs to search for versions for numba: | |
* http://pypi.python.org/simple/numba/ | |
Getting page http://numba.github.com | |
Getting page http://numba.pydata.org | |
Getting page https://numba.github.com |
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 | |
# -*- coding: utf-8 -*- | |
from flask import Flask | |
from flaskext.sqlalchemy import SQLAlchemy | |
from werkzeug.security import generate_password_hash | |
from werkzeug.security import check_password_hash | |
from sqlalchemy.orm.exc import NoResultFound | |
app = Flask(__name__) |
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
(setcar mode-line-position '(:eval (number-to-string (random)))) |
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
julia> a = function(x) | |
x[1] = 0 | |
end | |
# function | |
julia> x = [3,3] | |
2-element Int64 Array: | |
3 | |
3 |
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
function doit(f::IOStream) | |
wordmap = Dict{Array{Char},Array{Char}}() | |
best = (0,"","") | |
for line in eachline(f) | |
if length(line) > best[1] | |
word = collect(line) | |
cannonical = sort(word) | |
if haskey(wordmap,cannonical) | |
best = (length(word),word,wordmap[cannonical]) |
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
;; needed for both | |
(defun venv--gen-fun (command) | |
`(defun ,(intern (format "pcomplete/eshell-mode/%s" command)) () | |
(pcomplete-here* (venv-get-candidates)))) | |
;; with the common lisp loop macro | |
(defmacro venv--make-pcompletions (commands) | |
`(progn ,@(loop for item in commands | |
collect (venv--gen-fun item)))) |
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 wraps | |
from copy import deepcopy | |
def fauxothis(fn): | |
@wraps(fn) | |
def wrapper(self): | |
new = deepcopy(self) | |
fn(new) | |
return new |
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 <math.h> | |
#include <stdlib.h> | |
#include <stdio.h> | |
/* Heap struct (just an array and its length). */ | |
typedef struct { | |
int *slots; | |
int len; | |
} heap_base_t, *heap_t; |
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
main: | |
addi $sp $sp -4 # allocate space for one thing on the stack | |
addi $t0 $zero 30 | |
sw $t0 4($sp) | |
addi $t1 $sp 4 # put the address we want in t1 | |
lw $t1 0($t1) # <- this works, 30 ends up in $t1 | |
# exit syscall | |
li $v0 10 # system call code for exit = 10 | |
syscall # call operating sys |
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
10/09/2013 12:33:34;0002; pbs_mom.1199;Svr;Log;Log opened | |
10/09/2013 12:33:34;0002; pbs_mom.1199;Svr;pbs_mom;Torque Mom Version = 4.1.5, loglevel = 0 | |
10/09/2013 12:33:34;0002; pbs_mom.1200;Svr;setpbsserver;torque-headnode-63079663-10-09-13 | |
10/09/2013 12:33:34;0002; pbs_mom.1200;Svr;mom_server_add;server torque-headnode-63079663-10-09-13 added | |
10/09/2013 12:33:34;0002; pbs_mom.1200;Svr;usecp;*:/glusterfs/users /glusterfs/users | |
10/09/2013 12:33:34;0002; pbs_mom.1200;Svr;setloglevel;4 | |
10/09/2013 12:33:34;0002; pbs_mom.1200;n/a;initialize;independent | |
10/09/2013 12:33:34;0080; pbs_mom.1200;Svr;pbs_mom;before init_abort_jobs | |
10/09/2013 12:33:34;0002; pbs_mom.1200;Svr;pbs_mom;Is up | |
10/09/2013 12:33:34;0002; pbs_mom.1200;Svr;setup_program_environment;MOM executable path and mtime at launch: /usr/local/sbin/pbs_mom 1363720006 |
OlderNewer