Skip to content

Instantly share code, notes, and snippets.

Avatar

Elliot Saba staticfloat

View GitHub Profile
View brew --config
$ brew --config
HOMEBREW_VERSION: 0.9.5
ORIGIN: https://github.com/Homebrew/homebrew.git
HEAD: eada467b01a102f27024657868687d32ce2fb038
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CELLAR: /usr/local/Cellar
CPU: quad-core 64-bit haswell
OS X: 10.9.1-x86_64
Xcode: 5.0.2
CLT: 5.0.1.0.1.1382131676
View longline
clang++ -stdlib=libc++ -mmacosx-version-min=10.7 -O0 -g -DDEBUG -fstack-protector-all -D_GNU_SOURCE -Wall -Wno-strict-aliasing -fno-omit-frame-pointer -Iflisp -Isupport -fvisibility=hidden -fno-common -I/usr/local/Cellar/llvm/3.3/include -I/private/tmp/julia-5noP/deps/libuv/include -I/private/tmp/julia-5noP/usr/include -DLIBRARY_EXPORTS jltypes.do gf.do ast.do builtins.do module.do codegen.do interpreter.do alloc.do dlload.do sys.do init.do task.do array.do dump.do toplevel.do jl_uv.do jlapi.do profile.do gc.do -shared -o /private/tmp/julia-5noP/usr/lib/libjulia-debug.dylib -L/usr/local/opt/suite-sparse-julia/lib -L/usr/local/opt/arpack-julia/lib -L/usr/local/opt/openblas-julia/lib -L/usr/local/opt/llvm/lib -L/usr/local/opt/readline/lib -L/usr/local/lib -F/usr/local/Frameworks -Wl,-headerpad_max_install_names -headerpad_max_install_names -Xlinker -all_load /private/tmp/julia-5noP/src/flisp/libflisp.a -Xlinker -all_load /private/tmp/julia-5noP/src/support/libsupport.a -L/private/tmp/julia-5noP/usr/lib /private
@staticfloat
staticfloat / balthor.win
Created Feb 9, 2014
Balthor, the Inimitable
View balthor.win
These are posts I found on a forum a couple years ago, saved, and stumbled across recently.
Nobody really knew what to do with this guy. It was wonderful.
[From the FL Studio Forums]
I suspect that when a software program is done being written it is uploaded to a Federal computer.All software that is available for download resides in a Federal computer.The software programs in these Government computers are in a pristine state.That means these programs have no EULA virus and so on in them.The websites that offer these programs as downloads link to this Federal computer system.If a file is uploaded it could be that it it is uploaded to a Federal computer.E-mail attachments are uploaded to a Federal system.You might see the link address when you upload an attachment.ISP's could also reside in a Federal computer.The ISP's home computer would alter the content in the Federal computer but the ISP's main program would be in the Federal system.It would be the same for websites.Websites are in the Federal computer
View strange_win32_segfault
++ date
Sun Feb 16 19:50:27 EST 2014
++ trap upload_log EXIT
++ rm -rf deps/libuv deps/Rmath
++ rm -f 'bin/sys*.ji'
++ git submodule update
Submodule path 'deps/Rmath': checked out 'e61abe6ff3e2f6a2f13e204d68caea7309253915'
Submodule path 'deps/libuv': checked out '5bf16a9b86b2b059b20703d52c1dbba5979b6f5c'
++ git reset --hard
HEAD is now at ca445ba It was getting a little ridiculous having to change the URLs for the win-extras RPMs every couple days.
@staticfloat
staticfloat / getStatusString.cs
Created Apr 17, 2014
Mapping from GPS PositionStatus's to strings
View getStatusString.cs
// Helper function to get status string for location
string getStatusString(PositionStatus locStatus)
{
switch (locStatus)
{
case Windows.Devices.Geolocation.PositionStatus.Ready:
// Location data is available
return "Location is available.";
case Windows.Devices.Geolocation.PositionStatus.Initializing:
// This status indicates that a GPS is still acquiring a fix
@staticfloat
staticfloat / gist:11044232
Created Apr 18, 2014
Navigation overrides
View gist:11044232
public partial class MainPage : PhoneApplicationPage
{
// ...
// Navigation to this page just finished
protected override void OnNavigatedTo(NavigationEventArgs e)
{
// Put setup here
@staticfloat
staticfloat / readline-6.3.patch
Last active Aug 29, 2015
readline 6.3 patch for Julia 0.2.1
View readline-6.3.patch
diff --git a/ui/repl-readline.c b/ui/repl-readline.c
index ccdaf56..30a27d7 100644
--- a/ui/repl-readline.c
+++ b/ui/repl-readline.c
@@ -831,7 +831,7 @@ void jl_init_repl(int history)
rl_instream = fopen("/dev/null","r");
prompt_length = 7; // == strlen("julia> ")
init_history();
- rl_startup_hook = (Function*)init_rl;
+ rl_startup_hook = (rl_hook_func_t*)init_rl;
@staticfloat
staticfloat / output
Created Apr 27, 2014
Stochastic Gradient Descent algorithm test
View output
$ ./julia stogradesc.jl
elapsed time: 0.238974639 seconds
$ ./julia --version
julia version 0.3.0-prerelease+2776
@staticfloat
staticfloat / Frame.h
Created Apr 29, 2014
Frame/Pixel classes for manipulating ARGB data
View Frame.h
/*
These classes are meant to aid in image processing. They provide a simple,
efficient interface for accessing frames of pixel data. They assume an input
format of DXGI_FORMAT_B8G8R8A8_UNORM, and should provide a transparent means
of accessing pixel data.
Frame is used to abstract an array of pixel data. To construct it, use:
Frame f( width, height, dataPtr );
View foneastra_bt_config.ino
/*
* This sketch should be run on a brand new FoneAstra board that has been flashed with the appropriate bootloader, fuse & lock bits.
* The sketch configures FoneAstra's BT module with the name "FoneAstra-{last 4 hex digits of RN-42's MAC address}.
* It configures the RN-42's UART to 38400 bps. This results in the lowest combined UART error rates for the RN-42 &
* FA's ATMega running with a 8Mhz crystal. 0.2% on both ends.
* After flashing & running this sketch on FA, all other sketches should configure the ATMega's h/w UART at 38400 like so:
* Serial.begin(38400);
*
* Code adapted from Sparkfun....see the commented section below. Ignore the bit about making appropriate connections because
* the RN-42 is already connected to FA on the PCB.