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
public static float[] getFloatC(String filename) | |
throws FileNotFoundException, IOException{ | |
File fl = new File(filename); | |
FileInputStream str = new FileInputStream(fl); | |
FileChannel ch = str.getChannel(); | |
MappedByteBuffer mb = ch.map( FileChannel.MapMode.READ_ONLY, 0L, ch.size( )); | |
int numfloats = (int) ch.size()/4; | |
float[] result = new float [numfloats]; | |
try{ | |
for(int j=0;j<numfloats;j++){ |
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/env bash | |
/usr/bin/chmod -R A+everyone@:list_directory/read_data/add_file/write_data/add_subdirectory/append_data/read_xattr/write_xattr/execute/delete_child/read_attributes/write_attributes/delete/read_acl/write_acl/write_owner/synchronize:file_inherit/dir_inherit/inherited:allow "$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
dims = Dimensions@data; | |
coords = Table[{x, y, z}, {x, 1, dims[[1]]}, {y, 1, dims[[2]]}, {z, 1, | |
dims[[3]]}]; | |
cubes = {Hue @@ #1, EdgeForm[], Cuboid@#2} & | |
output = MapThread[cubes, {data, coords}, 3]; | |
Graphics3D@output |
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
Running as of Aug 28, 2012 | |
http://nzb.su/ | |
http://dognzb.cr | |
http://beta.nzbs.org | |
http://usenet-collector.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
Lyles-MacBook-Air:.ssh lyle$ brew install rsync -v | |
==> Downloading http://rsync.samba.org/ftp/rsync/src/rsync-3.0.9.tar.gz | |
Already downloaded: /Library/Caches/Homebrew/rsync-3.0.9.tar.gz | |
/usr/bin/tar xf /Library/Caches/Homebrew/rsync-3.0.9.tar.gz | |
==> Downloading patches | |
/usr/bin/curl -qf#LA Homebrew 0.9 (Ruby 1.8.7-249; Mac OS X 10.7.2) http://gitweb.samba.org/?p=rsync-patches.git;a=blob_plain;hb=v3.0.9;f=fileflags.diff -o 000-homebrew.diff http://gitweb.samba.org/?p=rsync-patches.git;a=blob_plain;hb=v3.0.9;f=crtimes.diff -o 001-homebrew.diff http://gitweb.samba.org/?p=rsync-patches.git;a=blob_plain;hb=v3.0.9;f=hfs-compression.diff -o 002-homebrew.diff | |
######################################################################## 100.0% | |
######################################################################## 100.0% | |
######################################################################## 100.0% | |
==> Patching |
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/env sh | |
## | |
# This is script with usefull tips taken from: | |
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
# | |
# install it: | |
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh | |
# |
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 | |
/usr/bin/chmod -R A+everyone@:list_directory/read_data/add_file/write_data/add_subdirectory/append_data/read_xattr/write_xattr/execute/delete_child/read_attributes/write_attributes/delete/read_acl/write_acl/write_owner/synchronize:file_inherit/dir_inherit/inherited:allow "$1" |