Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
// Distances are in thousands of an inch | |
width = 1000; // One inch wide | |
length = 6000; // Six inches long | |
base_thickness = 250; // Quarter inch thickness | |
camera_holder_ring_thickness = base_thickness; | |
module camera_holder_ring() { | |
translate([0,width,0]) |
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
import plistlib, os.path, datetime, pytz, tzlocal, sys | |
_, start_days, end_days = sys.argv | |
start_days = int(start_days) | |
end_days = int(end_days) | |
apple_epoch = datetime.datetime( |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
// units are in mm | |
// dims of amp | |
amp_outside_width = 150; // about 6 inches | |
amp_outside_height = 40; | |
amp_fin_depth = 10; // less than half an inch | |
amp_fin_thickness = 2; | |
amp_fin_inside_distance = 5; |
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 /snap/bin/ubuntu-image \ | |
--extra-snaps=/home/cro/home_root/mnt/2/snapcraft_kernel_build_test/linuxium-kernel_4.4.0-45.66_amd64.snap \ | |
-c beta -o ${DIR2_}/ics-ubuntu-image.img \ | |
${DIR4_}/ics.model | |
LOOP_DEVICE=$(sudo losetup --partscan --find --show \ | |
${DIR2_}/ics-ubuntu-image.img) | |
sudo mount ${LOOP_DEVICE}p3 ${DIR4_}/custom_image |
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
/* | |
watch -n.1 "clang++ --std=c++11 -g main.cpp -shared -o _target.so && mv _target.so target.so" | |
Ortho: http://i.imgur.com/bJ3VqNz.png | |
# clang++ --std=c++11 -g main.cpp -o target && ./target | |
*/ | |
#include <assert.h> | |
#include <stdio.h> |
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
#if 0 /* (sh-mode) | |
set -e | |
LPATH=/Users/cro/Documents/PersonalProjects/Graphics/ | |
# -Ofast | |
[ ! ]&& time clang++ -g --std=c++11 -fPIC -Wall \ | |
$LPATH/text_test.cpp \ | |
-Wno-writable-strings \ | |
-Wno-unused-function \ |
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
#if 0 /* (sh-mode) | |
set -e | |
LPATH=/Users/cro/Documents/PersonalProjects/Graphics/ | |
tu_name=cube_rotate_thing | |
# -Ofast | |
[ ! ]&& time clang++ -g --std=c++11 -fPIC -Wall \ | |
-D "RELOADABLE_CODE=\"$LPATH${tu_name}_reloadable.cpp.so\"" \ |
OlderNewer