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
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. |
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
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 |
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
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 | |
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
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 |
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
--- trunk.r70558/PKGBUILD 1970-01-01 03:13:08.000000000 -0600 | |
+++ trunk.update/PKGBUILD 2010-03-01 18:36:09.377483037 -0600 | |
@@ -27,19 +27,23 @@ | |
mkdir -p $pkgdir/usr/{lib,bin,share/applications,share/pixmaps,share/man/man1} | |
mkdir -p $pkgdir/usr/lib/xorg/modules/{extensions,drivers} | |
- mkdir -p $pkgdir/usr/lib/vdpau | |
+ mkdir -p $pkgdir/usr/lib/vdpau | |
mkdir -p $pkgdir/usr/share/licenses/nvidia | |
mkdir -p $pkgdir/usr/include/cuda |
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
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 |
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
-- Acquire ADC samples using a timer with polling for available samples | |
if pd.board() == "ET-STM32" then | |
timer = 2 | |
adcchannels = {0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15} | |
adcsmoothing = {4, 4, 4, 4, 16, 16, 16, 16, 32, 32, 32, 32, 64, 128, 64, 128} | |
else | |
timer = 0 | |
adcchannels = {0,1,2,3} | |
adcsmoothing = {4, 64, 32, 16} |
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
#include <mach/mach_time.h> | |
#include <time.h> | |
#include <stdio.h> | |
#define DUFF_DEVICE_8(aCount, aAction) \ | |
do { \ | |
int count_ = (aCount); \ | |
int times_ = (count_ + 7) >> 3; \ | |
switch (count_ & 7){ \ | |
case 0: do { aAction; \ |
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
--------------------------------------------------------------- | |
-- Classic snake game | |
-- | |
-- 2009 Led Lab @PUC-Rio www.eluaproject.net | |
-- Dado Sutter | |
-- Ives Negreiros | |
-- Téo Benjamin | |
--------------------------------------------------------------- | |
local xMax = math.floor( 128 / 6 ) - 1 |
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
import sys | |
import cv | |
from opencv import highgui | |
def detect(image): | |
image_size = cv.GetSize(image) | |
# create grayscale version | |
grayscale = cv.CreateImage(image_size, 8, 1) | |
cv.CvtColor(image, grayscale, cv.CV_BGR2GRAY) |
OlderNewer