This list includes all the projects I want to write and implement at some point. Order of the items is meaningless.
- Writing a filesystem
- Creating a programming language
- Writing a C compiler
#!/usr/bin/python | |
# -*- coding:utf-8 -*- | |
import math | |
import logging | |
import time | |
import requests | |
from PIL import Image,ImageDraw,ImageFont | |
from waveshare_epd import epd2in13_V2 |
UP=19 | |
DOWN=20 | |
LEFT=21 | |
RIGHT=22 | |
# Replace "XX:XX:XX:XX:XX:XX" with the MAC address of you Mi Box | |
IP=$(arp -n | grep "XX:XX:XX:XX:XX:XX" | cut -d " " -f1) | |
echo "Connecting..." | |
adb connect $IP |
#!/usr/bin/env bash | |
########### | |
# summary.sh | |
# Summarize your work in a git repository | |
# Author: Oz Tamir, 30/11/2016, [email protected] | |
# usage: ./summery.sh FIRSTNAME LASTNAME | |
############ | |
#!/usr/bin/env python | |
import time | |
def is_prime(number): | |
''' Check if number is a prime number ''' | |
if number >= 2: | |
for y in range(2,number): | |
if number % y == 0: | |
return False | |
else: |
<snippet> | |
<content><![CDATA[console.log(${1: ">>> This is a debug message from $TM_FILENAME:$TM_LINE_NUMBER <<<< "}); | |
debugger;]]></content> | |
<!-- Optional: Set a tabTrigger to define how to trigger the snippet --> | |
<tabTrigger>cdbg</tabTrigger> | |
<!-- Optional: Set a scope to limit where the snippet will trigger --> | |
<scope>source.js</scope> | |
<description>console.log() and a breakpoint</description> | |
</snippet> |
#!/bin/sh | |
random=$(( ( RANDOM % 10 ) + 1 )) | |
if [ $random -eq 1 ] | |
then | |
say -v Whisper "I see you" | |
elif [ $random -eq 2 ] | |
then | |
say -v Hysterical "You can't stop me now" |
#!/usr/bin/env bash | |
############################################### | |
# power_cycle.sh: reboot a HOTBOX router # | |
# Author: Oz Tamir ([email protected]) # | |
############################################### | |
USERNAME='' | |
PASSWORD='' |
#!/usr/bin/env bash | |
SCM_THEME_PROMPT_PREFIX="${cyan}(${green}" | |
SCM_THEME_PROMPT_SUFFIX="${cyan})" | |
SCM_THEME_PROMPT_DIRTY=" ${red}✗" | |
SCM_THEME_PROMPT_CLEAN=" ${green}✓" | |
function prompt_command() { | |
PS1="${blue}\T ${green}\u ${reset_color}${white}\w ${reset_color}$(scm_prompt_info) ${bold_blue}${reset_color}> "; | |
} |
#!/usr/bin/env bash | |
# Go home! | |
alias home="cd ~" | |
# Edit custom aliases | |
alias bashconf="sublime ~/.bash_it/aliases/custom.aliases.bash" | |
# Edit .bash_profile | |
alias bashitconf="sublime ~/.bash_profile" |