Skip to content

Instantly share code, notes, and snippets.

@KTOmega
KTOmega / FacebookExtreme.css
Created January 29, 2015 05:54
Facebook Extreme, for procrastinators constantly on Facebook. Used with Stylish, the Chrome and Firefox extension.
/**
* FacebookExtreme.css
* Facebook custom CSS for extreme nondistraction.
* For use with Stylish, a Chrome and Firefox extension.
*/
#pagelet_advertiser_panel, .fbChatSidebar ._55lr, .homeSideNav ._bui,
#pagelet_trending_tags_and_topics, #pagelet_composer ._55d0 {
display: none;
}
@KTOmega
KTOmega / fb-improved.css
Last active December 1, 2016 10:30
My take on Facebook CSS
@font-face {
font-family: 'Open Sans';
font-style: normal;
font-weight: 300;
src: local('Open Sans Light'), local('OpenSans-Light'), url(https://themes.googleusercontent.com/static/fonts/opensans/v8/DXI1ORHCpsQm3Vp6mXoaTXhCUOGz7vYGh680lGh-uXM.woff) format('woff');
}
@font-face {
font-family: 'Open Sans';
font-style: normal;
font-weight: 400;
@KTOmega
KTOmega / colors.ino
Created July 25, 2015 20:17
Multicolored LED Arduino Example
////////////////////////////////////////////////////////////////////////
//
// Multicolored LED Arduino Example
// (Using common cathode full-color LEDs)
//
// Kevin Tran <me@kevintran.codes>
//
////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////
@KTOmega
KTOmega / hour_diff.py
Created December 17, 2015 08:29
Find hour splits. (You're welcome Celine)
def read_file(filename):
with open(filename, "r") as file:
return [x for x in file]
def read_duration(input):
splitted = input.split('-')
def split_time(time):
time_split = time.split(':')
return (int(time_split[0]), int(time_split[1]))
@KTOmega
KTOmega / Makefile
Last active May 5, 2016 11:03
Runner for CS 188 Project 6, involving TensorFlow. Run make account, then make key. Then you can choose to make shell, make prepare or make copy.
SHELL=/bin/bash
SERVER:=hive1.cs.berkeley.edu
FILES:=perceptron.py answers.py solvers.py search_hyperparams.py features.py
SOURCE_ZIP:=https://s3-us-west-2.amazonaws.com/cs188websitecontent/projects/sp16/classification_sp16/classification_sp16.zip
PROJECT_NAME:=classification_sp16
all: copy shell
account:
@([ -f ./.account ] && (echo -n "Account: " && cat ./.account; exit 0;)) || (echo -n "Account: " && read acc && echo $$acc > ./.account)
@KTOmega
KTOmega / p6-helper.sh
Last active May 5, 2016 11:52
Runner for CS 188 Project 6, involving TensorFlow. Run p6-helper.sh account, then p6-helper.sh key. Then you can choose to p6-helper.sh shell, p6-helper.sh prepare or p6-helper.sh copy.
#!/bin/bash
SERVER=hive1.cs.berkeley.edu
FILES=(
perceptron.py
answers.py
solvers.py
search_hyperparams.py
features.py

Keybase proof

I hereby claim:

  • I am ktomega on github.
  • I am ktomega (https://keybase.io/ktomega) on keybase.
  • I have a public key whose fingerprint is BE82 1635 5F94 70E2 1AC8 B776 FAA5 3E2C A423 E36C

To claim this, I am signing this object:

@KTOmega
KTOmega / piazza-improved.css
Created December 1, 2016 10:29
Procrastination CSS for Piazza
::-webkit-scrollbar {
width: 5px;
height: 5px;
}
::-webkit-scrollbar-track {
background-color: #EEE;
}
::-webkit-scrollbar-thumb {