Skip to content

Instantly share code, notes, and snippets.

View ybakos's full-sized avatar
💭
the machine stops the machine stops the machine stops

Yong Joseph Bakos ybakos

💭
the machine stops the machine stops the machine stops
View GitHub Profile
@ybakos
ybakos / ClassConduct.md
Created September 19, 2019 21:19 — forked from evanpeck/ClassConduct.md
A code of conduct that is inserted into the syllabus of CS courses. I'd love to improve it + make it more actionable. Don't hesitate to suggest changes!

Code of Conduct

You have two primary responsibilities:

  • Promote an inclusive, collaborative learning environment.
  • Take action when others do not.

Professionally, we adhere to ACM’s Code of Ethics. More broadly, a course like INSERT COURSE NAME involves reflection, collaboration, and communication. Computer science has a checkered history with respect to inclusion – in corporate environments, in our classrooms, and in the products we create. We strive to promote characteristics of transparency and inclusivity that reflect what we hope our field becomes (and not necessarily what it has been or is now).

We reject behavior that strays into harassment, no matter how mild. Harassment refers to offensive verbal or written comments in reference to gender, sexual orientation, disability, physical appearance, race, or religion; sexual images in public spaces; deliberate intimidation, stalking, following, harassing photography or recording, sustained d

const int LED[] = {9,10,11};
void setPinAndBrightnessUp (){
for (double b = 2; b < 256; b = pow(b,1.15) ){
for (int a = 0; a < 2; a++){
analogWrite(LED[a],(int)b);
delay(20);
analogWrite(LED[a], 0);
delay(10);
}
@ybakos
ybakos / EmacsKeyBinding.dict
Created January 8, 2016 21:19 — forked from jwreagor/EmacsKeyBinding.dict
Global Emacs Key Bindings for OS X
{
/* Keybindings for emacs emulation. Compiled by Jacob Rus.
*
* This is a pretty good set, especially considering that many emacs bindings
* such as C-o, C-a, C-e, C-k, C-y, C-v, C-f, C-b, C-p, C-n, C-t, and
* perhaps a few more, are already built into the system.
*
* BEWARE:
* This file uses the Option key as a meta key. This has the side-effect
* of overriding Mac OS keybindings for the option key, which generally
@ybakos
ybakos / osx-for-hackers.sh
Created January 7, 2016 04:47 — forked from brandonb927/osx-for-hackers.sh
OSX for Hackers: Yosemite Edition. This script tries not to be *too* opinionated and any major changes to your system require a prompt. You've been warned. Also, please don't email me about this script, my poor inbox...
#!/bin/sh
# Alot of these configs have been taken from the various places
# on the web, most from here
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
# Set the colours you can use
black='\033[0;30m'
white='\033[0;37m'
red='\033[0;31m'

Sublime Text Monokai Sidebar Theme

A theme for the sidebar in Sublime Text to match the workspace of the Monokai theme.

This theme only modifies the sidebar to better match the Monokai theme, without modifying any of the styling elsewhere defined by Monokai.

File location: Packages/User

For a theme that extends beyond just the sidebar, visit https://gist.github.com/umpirsky/5842174

#!/bin/bash
#script extraido de: http://paulocassiano.wordpress.com/2008/08/29/deixando-o-gedit-com-a-cara-do-textmate/
#tip for better "resolution" here: http://blog.siverti.com.br/2008/05/22/fonte-monaco-no-ubuntugedit/
cd /usr/share/fonts/truetype/
#TODO: put validation if folder already exists
sudo mkdir ttf-monaco
@ybakos
ybakos / benchmark.rb
Created June 13, 2013 15:00 — forked from panthomakos/benchmark.rb
A script for benchmarking the loading of a Rails application's gems.
#!/usr/bin/env ruby
require 'benchmark'
REGEXPS = [
/^no such file to load -- (.+)$/i,
/^Missing \w+ (?:file\s*)?([^\s]+.rb)$/i,
/^Missing API definition file in (.+)$/i,
/^cannot load such file -- (.+)$/i,
]
@ybakos
ybakos / clojure.md
Last active December 16, 2015 22:29

Setting Up Clojure on OS X

I spent a lot of time trying to find a pretty optimal (for me) setup for Clojure… at the same time I was trying to dive in and learn it. This is never optimal; you shouldn't be fighting the environment while trying to learn something.

I feel like I went through a lot of pain searching Google, StackOverflow, blogs, and other sites for random tidbits of information and instructions.

This is a comprehensive "what I learned and what I ended up doing" that will hopefully be of use to others and act as a journal for myself if I ever have to do it again. I want to be very step-by-step and explain what's happening (and why) at each step.

Step 1: Getting Clojure (1.3)

# *&^)^(&(&&*^)^(* encoding: utf-8 *)*)&)^)^%*%&*%**
ÜglÈÊCÕnsªnt = "HAIUGLYCODEZ"
alias :send ∴; alias :get ∵
%w|rubygems sinatra|.each{|_|require _}
%w|gem load|.each{|_| ∴ _, 'kitty'}
(℧=Kitty).∴ *%w(define_method print) do |*⇧| ⇧.∴:join end
∵ %r{\/} do content_type "nialp/txet".reverse and ℧.new.random_kitty end
# gem install kitty
# ruby kitty_server.rb &
# curl http://localhost:4567
@ybakos
ybakos / .profile
Created May 1, 2011 19:37 — forked from mconnell/.profile
My Sublime Text 2 settings.
alias sublime='open -a "Sublime Text 2"'