Skip to content

Instantly share code, notes, and snippets.

View jsnyder's full-sized avatar

James Snyder jsnyder

  • Minneapolis, MN
View GitHub Profile
sudo hfsdebug /Library/Backblaze/bzdata/bzfilelists/v00030e0d2155bec8e772a37041a_root_filelist.dat.future
<Catalog B-Tree node = 79492 (sector 0x14d2c8)>
path = Macintosh HD:/Library/Backblaze/bzdata/bzfilelists/v00030e0d2155bec8e772a37041a_root_filelist.dat.future
# Catalog File Record
type = file
file ID = 84013542
flags = 0000000000000010
. File has a thread record in the catalog.
reserved1 = 0
createDate = Wed Dec 30 11:44:45 2009
import multiprocessing as mp
import numpy as np
processes = mp.cpu_count()
nsamples = int(12e6/processes)
def calcInsideNumPy(rank):
np.random.seed(rank)
totalsum = 0
import pyopencl as cl
import numpy as np
import sys, time
class Grid:
"""A simple grid class that stores the details and solution of the
computational grid."""
def __init__(self, nx=10, ny=10, xmin=0.0, xmax=1.0,
ymin=0.0, ymax=1.0):
self.xmin, self.xmax, self.ymin, self.ymax = xmin, xmax, ymin, ymax
X.Org X Server 1.6.0
Release Date: 2009-2-25
X Protocol Version 11, Revision 0
Build Operating System: Linux 2.6.24-15-server x86_64 Ubuntu
Current Operating System: Linux erlanger 2.6.28-11-generic #42-Ubuntu SMP Fri Apr 17 01:58:03 UTC 2009 x86_64
Build Date: 09 April 2009 02:11:54AM
xorg-server 2:1.6.0-0ubuntu14 ([email protected])
Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.