This file has been truncated, but you can view the full file.
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
Mode(target_versions=set(), line_length=88, string_normalization=True, experimental_string_processing=False, is_pyi=False) | |
--- source | |
+++ first pass | |
@@ -48,12460 +48,18277 @@ | |
import requests | |
from .gcode import Gcode | |
from .vector import Vector | |
# Check if using Windows, Linux, or FreeBSD | |
-if platform.uname()[0].startswith("Windows") or platform.uname()[0].startswith("Linux") or platform.uname()[0].startswith("FreeBSD") : |
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
[[solarized-dark]] | |
palette = "#002b36:#dc322f:#859900:#b58900:#268bd2:#d33682:#2aa198:#eee8d5:#002b36:#cb4b16:#586e75:#657b83:#839496:#6c71c4:#93a1a1:#fdf6e3" | |
login_shell = True | |
background_image = None | |
use_system_font = False | |
cursor_color = "#93a1a1" | |
foreground_color = "#839396" | |
font = Source Code Pro Medium 10 | |
background_color = "#002b36" | |
scrollback_infinite = True |
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
The MIT License (MIT) | |
Copyright (c) 2015 Khan Academy | |
Permission is hereby granted, free of charge, to any person obtaining a copy | |
of this software and associated documentation files (the "Software"), to deal | |
in the Software without restriction, including without limitation the rights | |
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
copies of the Software, and to permit persons to whom the Software is |
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
#lang racket | |
(require plot) | |
(define xdata '(10 25 50 100 200)) | |
(define ydata '(5181 7346 8199 8886 8878)) | |
(parameterize ([plot-font-family 'default] | |
[plot-font-size 16] | |
[plot-width 800] |
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
### Show the currently active git branch at the command line | |
function parse_git_branch { | |
git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e "s/* \(.*\)/ \(\1\)/" | |
} | |
#GREEN="\[\033[0;32m\]" | |
#NONE="\[\033[0m\]" | |
export PS1='\u@\h \w\[\033[0;32m\]$(parse_git_branch)\[\033[0m\]$ ' |
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
// Without `int`: | |
// First test (fails with link error since it can't find the function): | |
#include <stdio.h> | |
#include </usr/include/atlas/clapack.h> | |
/*top*/ | |
extern int t(void); | |
int main(int argc, char **argv) | |
{ |
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
sudo zypper in gcc gcc-c++ | |
sudo zypper in curl | |
\curl -sSL https://get.rvm.io | bash -s stable --ruby=2.1.1 | |
source /home/colin/.rvm/scripts/rvm | |
sudo zypper in libatlas3 libatlas3-devel | |
git clone https://github.com/SciRuby/nmatrix.git | |
cd nmatrix | |
bundle install | |
bundle exec rake compile | |
bundle exec rake spec |
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
install -c tmp/x86_64-linux/nmatrix/2.0.0/nmatrix.so lib//nmatrix.so | |
valgrind --tool=memcheck --num-callers=15 --partial-loads-ok=yes --undef-value-errors=no ruby -S rspec -Ilib:ext spec | |
==12531== Memcheck, a memory error detector | |
==12531== Copyright (C) 2002-2012, and GNU GPL'd, by Julian Seward et al. | |
==12531== Using Valgrind-3.8.1 and LibVEX; rerun with -h for copyright info | |
==12531== Command: ruby -S rspec -Ilib:ext spec | |
==12531== | |
NMatrix { | |
creates a matrix with the new constructor OK (0.01s) | |
adequately requires information to access a single entry of a dense matrix OK (0.02s) |
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 <stdlib.h> | |
typedef unsigned long VALUE; | |
int main() { | |
VALUE x = 0; | |
volatile VALUE y = 1; | |
VALUE* a = malloc(sizeof(VALUE)); | |
volatile VALUE* b = malloc(sizeof(VALUE)); | |
*b = x; |
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
Rubinius Crash Report #rbxcrashreport | |
Error: signal SIGABRT | |
[[Backtrace]] | |
0 rbx 0x00000001004fbfb6 _ZN8rubiniusL12segv_handlerEi + 486 | |
1 libsystem_c.dylib 0x00007fff8e61ecfa _sigtramp + 26 | |
2 ??? 0x00007fff600c7110 0x0 + 140734804816144 | |
3 rbx 0x0000000100c4e796 abort + 22 | |
4 rbx 0x0000000100500075 _ZN8rubinius5abortEv + 53 |