Skip to content

Instantly share code, notes, and snippets.

View kuatsure's full-sized avatar

Jarrett Drouillard kuatsure

View GitHub Profile
// Released under MIT license: http://www.opensource.org/licenses/mit-license.php
$('[placeholder]').focus(function() {
var input = $(this);
if (input.val() == input.attr('placeholder')) {
input.val('');
input.removeClass('placeholder');
}
}).blur(function() {
var input = $(this);
@kuatsure
kuatsure / 74a6bc39.screen.css
Created October 16, 2012 19:34
Yeoman -> index.html & gruntfile.js
body{background:red}/*! normalize.css v2.0.1 | MIT License | git.io/normalize */article,aside,details,figcaption,figure,footer,header,hgroup,nav,section,summary{display:block}audio,canvas,video{display:inline-block}audio:not([controls]){display:none;height:0}[hidden]{display:none}html{font-family:sans-serif;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%}body{margin:0}a:focus{outline:thin dotted}a:active,a:hover{outline:0}h1{font-size:2em}abbr[title]{border-bottom:1px dotted}b,strong{font-weight:700}dfn{font-style:italic}mark{background:#ff0;color:#000}code,kbd,pre,samp{font-family:monospace,serif;font-size:1em}pre{white-space:pre;white-space:pre-wrap;word-wrap:break-word}q{quotes:"\201C" "\201D" "\2018" "\2019"}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sup{top:-.5em}sub{bottom:-.25em}img{border:0}svg:not(:root){overflow:hidden}figure{margin:0}fieldset{border:1px solid #c0c0c0;margin:0 2px;padding:.35em .625em .75em}legend{border:0;padding:0}butt
@kuatsure
kuatsure / main.coffee
Created August 7, 2013 21:48
total godsend, don't know why I didn't do it this way to begin with ...
for elmt , i in array
console.log i, elmt
@kuatsure
kuatsure / default.html
Created August 19, 2013 16:57
Set up a current-item navigation class based on page.tags in jekyll
<!DOCTYPE html>
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]-->
<head>
<title>{{ page.title }} - {{ site.name }}</title>
<meta charset='utf-8'>
@kuatsure
kuatsure / gist:6452268
Created September 5, 2013 16:07
adjusting your colors on the terminal? run this, it'll print out all the colors your computer is set for. each line is in that color
# pretty colors!
for code in {0..255}; do echo -e "$(tput setaf $code)\e[38;05;${code}m $code: Test"; done
python -c $'import SimpleHTTPServer;\nmap = SimpleHTTPServer.SimpleHTTPRequestHandler.extensions_map;\nmap[""] = "text/plain";\nfor key, value in map.items():\n\tmap[key] = value + ";charset=UTF-8";\nSimpleHTTPServer.test();' "8000"
@kuatsure
kuatsure / warrior-lvl-4.js
Last active August 29, 2015 13:57
jswarrior
jsWarrior.turn = function(warrior) {
if ( warrior.check() == "empty" ) {
if ( warrior.curr == 20 ) {
warrior.walk()
} else {
if ( warrior.getHealth() < warrior.curr ) {
warrior.walk()
} else {

Keybase proof

I hereby claim:

  • I am kuatsure on github.
  • I am kuatsure (https://keybase.io/kuatsure) on keybase.
  • I have a public key whose fingerprint is 704B 8476 90F1 7057 42AB 51FD 3F35 83B7 797C 35EF

To claim this, I am signing this object:

Here are some resources you will find useful while getting familiar with Ember.

@kuatsure
kuatsure / SassMeister-input.scss
Created July 24, 2014 19:21
Generated by SassMeister.com.
// ----
// Sass (v3.4.0.rc.1)
// Compass (v1.0.0.alpha.20)
// ----
$wrapper: ".thing";
@mixin when-drawer-is-open {
@at-root #{selector-replace(&,
"#{$wrapper}",