Skip to content

Instantly share code, notes, and snippets.

View booyaa's full-sized avatar
🏠
Working from home forevah!

Mark Sta Ana booyaa

🏠
Working from home forevah!
View GitHub Profile
@booyaa
booyaa / demo-script.md
Created July 21, 2013 06:52
will prolly get edited some more

#script

##preflight checklist

  1. get wifi name of stage hue kit
  2. get gateway ip address
  3. test using curl
  4. check internet access
  5. does audio work?
@booyaa
booyaa / test.js
Created July 21, 2013 01:41
Uncaught TypeError: Cannot call method 'get' of undefined
if (Meteor.isClient) {
Template.hello.greeting = function () {
return "Welcome to demo.";
};
Template.hello.events({
'click input[type=button]' : function () {
// template data, if any, is available in 'this'
if (typeof console !== 'undefined') {
console.log("You pressed the button");
@booyaa
booyaa / EnableTFSInSqlDeveloper.md
Created July 19, 2013 09:13
TFS as an external tool (hurr) in Oracle SQL Developer
@booyaa
booyaa / timelapsing_your_hackday.md
Last active December 19, 2015 17:28
Time lapsing your hackday

timelapsing your hackday

why?

why not? timelapsing your hackday is a great way to record memories in an unobtrusive manner. you could also spot patterns such as when you got stuck on a particular hard problem or when you were just plan bored.

please feel free to comment on the gist or drop me a tweet on @booyaa. i'd love to hear your thoughts and ideas on how i could improve the process.

desktop

@booyaa
booyaa / editorMuscleMemory.md
Last active December 19, 2015 15:19
editors muscle memory

##editors muscle memory

###select a block

  • vim ``v|V``` (block/line)
  • visual studio shift and arrow keys
  • emacs

###copy

@booyaa
booyaa / dabblet.css
Created July 10, 2013 09:01
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
background: #f06;
background: linear-gradient(45deg, #f06, yellow);
min-height: 100%;
/* test */
@booyaa
booyaa / blackMagicks.mkd
Last active December 19, 2015 13:49
data uri + contenteditable = crazy delicious

borrowed from http://www.fizerkhan.com/blog/posts/Use-your-browser-as-Notepad.html

paste into your browser's address bar (won't work on ie and may need base64ing on ffx)

hello world: data:text/html, <html contenteditable>

bad acid: data:text/html, <html><head><link href='http://fonts.googleapis.com/css?family=Open+Sans' rel='stylesheet' type='text/css'><style type="text/css"> html { font-family: "Open Sans" } * { -webkit-transition: all linear 1s; }</style><script>window.onload=function(){var e=false;var t=0;setInterval(function(){if(!e){t=Math.round(Math.max(0,t-Math.max(t/3,1)))}var n=(255-t*2).toString(16);document.body.style.backgroundColor="#ff"+n+""+n},1e3);var n=null;document.onkeydown=function(){t=Math.min(128,t+2);e=true;clearTimeout(n);n=setTimeout(function(){e=false},1500)}}</script></head><body contenteditable style="font-size:2rem;line-height:1.4;max-width:60rem;margin:0 auto;padding:4rem;">

bit of js flair: ```data:text/html,<title>DoJS</title><style type="text/css">#e{font-size

@booyaa
booyaa / timesheet.js
Created July 5, 2013 14:35
timesheet
function parseTime(timeString) {
return timeString.split(":");
}
function process() {
console.log($('input[name="start"]'));
var data = {};
data["start"] = parseTime($('input[name="start"]').val());
data["end"] = parseTime($('input[name="end"]').val());
data["lunch"] = $('input[name="lunch"]').val();
@booyaa
booyaa / README.md
Last active December 19, 2015 09:39
Hello world
@booyaa
booyaa / SingleHandedCoder.md
Last active December 18, 2015 11:08
Single handed coder

###background

this is my journal of my temporary disability. i hope to share lessons learnt from my experience. my primary focus will be on coding using the following ides: visual studio 2010 (windows xp - yes i know) and vim (osx).

###benchmark

i used the following on-line touch typing test: http://www.typingtest.com/ to assess before my temporary disability and here are the results:

left handed: 20 words per minute full use of both hands: 60 words per minute