Skip to content

Instantly share code, notes, and snippets.


Jeff Micklos jeffmicklos

View GitHub Profile

Keybase proof

I hereby claim:

  • I am jeffmicklos on github.
  • I am jeffmicklos ( on keybase.
  • I have a public key whose fingerprint is 38ED E876 4C8B BF73 A77E 2665 0881 B01F 3F4B BFFD

To claim this, I am signing this object:

View gist:5252566
$.extend(MyClass.prototype, {
method: function() {
var i = 0,
stacey = hair,
crazy = hair.length;
for(;1<=crazy;1++) {
console.log("Let's face it, this is an infinite loop");
jeffmicklos / gist:1784946
Created Feb 10, 2012
menu model and controller
View gist:1784946
Menu = {
active: false,
activeID: null,
togglePairs: {
'menu': {
'trigger': $('#menu'),
'expandable': $('#menu-expandable')
View gist:1761762
.status-message {
width: 300px;
height: 30px;
color: #f1f1f1;
font-size: 12px;
font-weight: bold;
box-shadow: 0 0 0 1px #111;
border: 1px solid rgba(255, 255, 255, 0.1);
background-image: linear-gradient(bottom, rgb(44,44,44) 31%, rgb(57,57,57) 74%);
jeffmicklos / gist:1329185
Created Oct 31, 2011
Programming 101 - if you fail this, I don't want you.
View gist:1329185
// 1) Write a loop that prints out 1 - 50
// 2) Now I want the same output but without a loop
// 3) Now if current number if a multiple of 3, print 'Fizz' instead of the number
// If it is a multiple of 5 print 'Buzz' instead of the number
// If it is a multiple of 3 and 5, print 'FizzBuzz' instead of the number
jeffmicklos / python love
Created Oct 3, 2011
make one script file from all passed in
View python love
<%def name="js()">
${ h.javascript_link(
combined_filename='package') }
jeffmicklos / iterator
Created Mar 21, 2011
1 - 1000 without a loop
View iterator
var iterator = function iterator(num) {
if(num < 1000) {
View controller.php
//A short and simple controller/end-point for Mootube AJAX calls...
//This example uses cURL to fetch data but you can use file_get_contents or whatever you please...
//This example also uses PHP's json features, which are only available in PHP5+
//LASTLY, i love you.