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
# AAE 532 - HW09 - Q02 | |
# Author : Thomas Antony ( tantony (at) purdue (dot) edu ) | |
# Code re-purposed from from Udacity.com CS222 - HW02-Q02 | |
# Original code author : Miriam "Swords" Kalk ?? ( I think ) | |
# The simulation starts with the spacecraft in an earth-centered | |
# circular orbit at 175 km altitude, just after finishing a burn which sends it on a | |
# Hohmann trajectory to the moon. | |
# | |
# The purpose of the simulation was to examine what happens to the orbit if a capture | |
# burn was not performed after reaching the moon |
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
template <class T> | |
inline void __swap(T *a, T *b) | |
{ | |
T temp = *a; | |
*a = *b; | |
*b = temp; | |
} | |
/* | |
An implementation of an improved & simplified Brent's Method. |
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
module load cuda | |
module load matlab/R2014a | |
module load mathematica | |
unset SSH_ASKPASS | |
screen -p 0 -X stuff "export DISPLAY=$DISPLAY$(printf \\r)" | |
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/apps/rhel6/Wolfram/Mathematica/9.0/SystemFiles/Links/MathLink/DeveloperKit/Linux-x86-64/CompilerAdditions | |
export PATH=$PATH:/apps/rhel6/Wolfram/Mathematica/9.0/Executables |
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 | |
# Place in ~/Library/TexShop/Engines/LatBibNomTex/engine | |
pdflatex "$1" | |
for file in *.aux ; do | |
bibtex $file | |
bfname=$(dirname "$1")/"`basename "$1" .tex`" | |
makeindex "$bfname".nlo -s nomencl.ist -o "$bfname".nls | |
done | |
pdflatex "$1" | |
# pdflatex "$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
#!/bin/bash | |
# Place in ~/Library/TexShop/Engines | |
# LatNomLat.engine | |
bfname=$(dirname "$1")/"`basename "$1" .tex`" | |
makeindex "$bfname".nlo -s nomencl.ist -o "$bfname".nls | |
done | |
pdflatex "$1" | |
# pdflatex "$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
javascript:void(window.location.host += '.ezproxy.lib.purdue.edu') |
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
// Welcome! require() some modules from npm (like you were using browserify) | |
// and then hit Run Code to run your code on the right side. | |
// Modules get downloaded from browserify-cdn and bundled in your browser. | |
require('virtual-dom') | |
var h = require('virtual-dom/h'); | |
var diff = require('virtual-dom/diff'); | |
var patch = require('virtual-dom/patch'); | |
var createElement = require('virtual-dom/create-element'); |
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
"""Batch convert images to greyscale [by Thomas Antony]. | |
Install dependencies: | |
pip install pillow docopt | |
Note: If you do not provide an output path, the generated files will be saved | |
in a folder named "Converted" | |
Usage: | |
greyscale.py <in_path> [<out_path>] |
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 socket | |
HOST = 'localhost' | |
PORT = 9876 | |
ADDR = (HOST,PORT) | |
BUFSIZE = 4096 | |
videofile = "videos/royalty-free_footage_wien_18_640x360.mp4" | |
bytes = open(videofile).read() |
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
# Download file and run `brew install qcl.rb` | |
class Qcl < Formula | |
desc "A command line tool to transfer files into Qconn-enabled remote device" | |
homepage "https://github.com/TheHipbot/weather" | |
url "https://github.com/thomasantony/qcl/archive/master.zip" | |
sha256 "db762174cd29e827007d97333853e64a8e39210ac4fad23f3083d9912a5ba3ce" | |
version "1.0.0" | |
depends_on "perl" |
OlderNewer