Skip to content

Instantly share code, notes, and snippets.

View ekdevdes's full-sized avatar

Ethan Kramer ekdevdes

View GitHub Profile
@ekdevdes
ekdevdes / AExmK.html
Created June 15, 2012 20:37
[HTML] query test (posted via Fiddles for iOS)
<a href="http://jsfiddle.net/api/user/zalun/demo/list.json?sort=framework&limit=20&start=21">NSString <code>query</code> test</a>
@ekdevdes
ekdevdes / Fancy File Inputs.js
Created June 19, 2012 02:43 — forked from davist11/Fancy File Inputs.js
Fancy File Inputs
var SITE = SITE || {};
SITE.fileInputs = function() {
var $this = $(this),
$val = $this.val(),
valArray = $val.split('\\'),
newVal = valArray[valArray.length-1],
$button = $this.siblings('.button'),
$fakeFile = $this.siblings('.file-holder');
if(newVal !== '') {
@ekdevdes
ekdevdes / RDzhA.html
Created June 28, 2012 04:57
[HTML] fiddles html for email (posted via Fiddles for iOS)
<a href="http://jsfiddle.net/ethankr/xyz/123"><h1 style='display:inline;'>iCal-like dates</h1><h3 style='display:inline;'> v3</h3></a>
<p>use in maranatha's site and use sugar js with it</p>
<dl>
<dt><b>Framework</b></dt>
<dd>jQuery</dd>
<br>
<dt><b>Normalize CSS?</b></dt>
<dd>No</dd>
<br>
<dt><b>Slug</b></dt>
@ekdevdes
ekdevdes / RDzhA.css
Created June 28, 2012 04:57
[CSS] fiddles html for email (posted via Fiddles for iOS)
html,body{
font-family:sans-serif;
}
b{
font-weight:bold;
}
dt,dd{
display:inline;
}
@ekdevdes
ekdevdes / vjCSk.js
Created June 28, 2012 04:57
[JS] iCal-like event adder (posted via Fiddles for iOS)
$('div').hide();
$('a').toggle(function(){
$(this).find('span').addClass("rotate");
$('div').fadeIn(300);
},function(){
@ekdevdes
ekdevdes / vjCSk.html
Created June 28, 2012 04:57
[HTML] iCal-like event adder (posted via Fiddles for iOS)
<a href="#"><span>+</span></a>
<div>
<form>
<input type="text" id="event" placeholder="movie at 7pm" />
<span class="help-text">press enter to continue</span>
</form>
</div>
@ekdevdes
ekdevdes / vjCSk.css
Created June 28, 2012 04:57
[CSS] iCal-like event adder (posted via Fiddles for iOS)
body{
font-family:sans-serif;
padding:20px;
}
a{
color:white;
background:blue;
padding:15px;
text-decoration:none;
@ekdevdes
ekdevdes / 0_README.md
Created July 7, 2012 03:17 — forked from netzpirat/0_README.md
Continuous CoffeeScript testing with Guard and Jasmine

Continuous CoffeeScript testing with Guard and Jasmine

This Gist shows how to set up a Rails project to practice BDD with CoffeeScript, Guard and Jasmine. You can see this setup in action on Vimeo

  • Install Gems with Bundler with bundle install
  • Define your guards with mate Guardfile
  • Initialize Jasmine with bundle exec jasmine init
  • Configure Jasmine with mate spec/support/yasmine.ym
  • Start Guard with bundle exec guard
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta content="yes" name="apple-mobile-web-app-capable">
<title></title>
<!-- iPhone -->
<link href="http://taylor.fausak.me/static/images/apple-touch-icon-57x57.png"
@ekdevdes
ekdevdes / color.m
Created January 18, 2013 07:53 — forked from kylefox/color.m
/*
Distributed under The MIT License:
http://opensource.org/licenses/mit-license.php
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to