Skip to content

Instantly share code, notes, and snippets.

@lamchau
lamchau / Soda Dark.sublime-theme
Last active August 29, 2015 14:06
Sublime Text 3: Soda Dark Theme tweaks
[
// remove ST3 3065 file/folder icons
{
"class": "icon_file_type",
"content_margin": [0, 0]
}, {
"class": "icon_folder",
"content_margin": [0, 0]
}, {
"class": "icon_folder_loading",
@lamchau
lamchau / github-pr-cleaner.js
Last active August 29, 2015 14:06
Commit comment deletion bookmarklet for Pull Requests on GitHub. Written to clean up spammy build-bot. Minify for use with http://closure-compiler.appspot.com/home
(function() {
var author = "displayName";
var clickElement = function(element) {
if (!!!element) {
return;
}
var event = document.createEvent("HTMLEvents");
event.initEvent("click", true, true);
event.eventName = "click";
element.dispatchEvent(event);
@lamchau
lamchau / .gitignore
Last active August 29, 2015 14:07 — forked from GerHobbelt/.gitignore
# Editor backup files
*.bak
*~
@lamchau
lamchau / .gitignore
Last active August 29, 2015 14:07 — forked from GerHobbelt/.gitignore
# Editor backup files
*.bak
*~
using System;
namespace ConsoleApplication
{
enum Suit
{
DIAMOND,
CLUB,
HEART,
SPADE
@lamchau
lamchau / README.md
Last active August 29, 2015 14:07 — forked from milroc/README.md
[
// highlight modified files (orange for dirty files, like default theme)
{
"class": "tab_label",
"settings": ["highlight_modified_tabs"],
"parents": [{
"class": "tab_control",
"attributes": ["dirty"]
}],
// "fg": [120, 170, 250], // blue
[
// highlight modified files (blue for dirty files, like default theme)
{
"class": "tab_label",
"settings": ["highlight_modified_tabs"],
"parents": [{
"class": "tab_control",
"attributes": ["dirty"]
}],
"fg": [20, 100, 220]
@lamchau
lamchau / Aprosopo [email protected]
Created November 8, 2014 21:01
https://github.com/facelessuser/Aprosopo - Customizations for Aprosopo Dark ST3 - Blue/Red (Active/Dirty)
[
// sidebar heading (bold/white)
{
"class": "sidebar_heading",
"color": [255, 255, 255],
"font.bold": true,
"shadow_color": [0, 0, 0],
"shadow_offset": [0, -1],
},
@lamchau
lamchau / experiment.sh
Created November 9, 2014 02:42
Homework assistance
#!/bin/bash
clear
BORDER=$(printf '=%.0s' {1..80})\\n
HEADER="%-10s %8s %-10s %24s %11s\n"
FORMAT="%-10s %8d %-10s %11.2f\n"
WIDTH=150
# not defined, what should this be?
# DIVIDER="DIVIDER"