Skip to content

Instantly share code, notes, and snippets.

View bitoffdev's full-sized avatar
🇺🇸

Elliot bitoffdev

🇺🇸
View GitHub Profile

Keybase proof

I hereby claim:

  • I am bitoffdev on github.
  • I am bitoffdev (https://keybase.io/bitoffdev) on keybase.
  • I have a public key ASDkJ0-gyKS7Jyv-8oRdQ36kwp9iak7W7J-MbygaRCG0Bgo

To claim this, I am signing this object:

@bitoffdev
bitoffdev / try_capture.py
Created December 17, 2017 01:11
Save the files submitted to try in the current directory.
#!/usr/bin/env python3
"""
Save the files submitted to try in the current directory.
Try guide: https://cs.rit.edu/~cs1/Misc/try.html
Usage:
[python3] try_capture.py instructor-account assignment-code
@bitoffdev
bitoffdev / guess.asm
Created November 15, 2017 06:57
obfuscated MIPS number guessing game
.text
mont: li $v0,4
la $a0,d
syscall
jr $ra
.data
a:.byte 71,117,101,115,115,32,97,32,110,117,109,98,101,114,58,32,0
bb:.byte 84,111,111,32,104,105,103,104,58,32,0
.text
awsq:li $v0,4
@bitoffdev
bitoffdev / print_binary.asm
Created October 25, 2017 17:06
MIPS print a 32-bit register as binary
#
# FILE: print_binary.asm
# AUTHOR: Elliot Miller, 2017
#
###############################################################################
.data
newline_string: .asciiz "\n"
#
# Name: print_binary
###############################################################################
##### INSTALL ROS KINETIC #####################################################
###############################################################################
sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros-latest.list'
sudo apt-key adv --keyserver hkp://ha.pool.sks-keyservers.net:80 --recv-key 0xB01FA116
sudo apt-get update
sudo apt-get install -y ros-kinetic-ros-base
sudo rosdep init
rosdep update
import wave
import matplotlib.path as mpath
import matplotlib.patches as mpatches
import matplotlib.pyplot as plt
fig, ax = plt.subplots()
Path = mpath.Path
path_data = []
#include <avr/pgmspace.h> // allows use of PROGMEM
#define CUBESIZE 4
#define PLANESIZE CUBESIZE*CUBESIZE
#define PLANETIME 100 // time each plane is displayed in us -> 100 Hz refresh
#define TIMECONST 20 // multiplies DisplayTime to get ms
// store LED Pattern Table in PROGMEM
// last column is display time in 100ms
const char PROGMEM PatternTable[] = {
@bitoffdev
bitoffdev / MarkdownMenu.py
Created January 3, 2015 02:31
MarkdownMenu.py
# Pythonista Markdown Action Menu
# By: EJM Software ---- http://ejm.cloudvent.net
import ui, console, editor, markdown
def format_italic():
s = editor.get_selection()
if not s==None and s[1]-s[0]>0:
editor.replace_text(s[0], s[1], '*%s*'%editor.get_text()[s[0]:s[1]])
def format_bold():
import requests, datetime, pytz
class AssetStoreException (Exception):
pass
class AssetStoreClient(object):
LOGIN_URL = 'https://publisher.assetstore.unity3d.com/login'
LOGOUT_URL = 'https://publisher.assetstore.unity3d.com/logout'
SALES_URL = 'https://publisher.assetstore.unity3d.com/sales.html'
USER_OVERVIEW_JSON_URL = 'https://publisher.assetstore.unity3d.com/api/user/overview.json'
@bitoffdev
bitoffdev / Markdown Editor.py
Last active August 29, 2015 14:05
Markdown Editor.py
# Pythonista Markdown Editor
# By: EJM Software ---- http://ejm.cloudvent.net
# Source: http://gist.github.com/02df085647247a815eff
# *****************************************
import ui, console, editor, markdown, webbrowser, urllib
@ui.in_background
def new_md(sender):
filename = console.input_alert('', 'File Name')
if filename.find('.')>-1: