Skip to content

Instantly share code, notes, and snippets.

View ivanvanderbyl's full-sized avatar
🏝️

Ivan Vanderbyl ivanvanderbyl

🏝️
View GitHub Profile

Make it real

Ideas are cheap. Make a prototype, sketch a CLI session, draw a wireframe. Discuss around concrete examples, not hand-waving abstractions. Don't say you did something, provide a URL that proves it.

Ship it

Nothing is real until it's being used by a real user. This doesn't mean you make a prototype in the morning and blog about it in the evening. It means you find one person you believe your product will help and try to get them to use it.

Do it with style

import Ember from 'ember';
export default Ember.Controller.extend({
appName:'Ember Twiddle'
});
@ivanvanderbyl
ivanvanderbyl / gist:10765053
Last active August 29, 2015 13:59 — forked from tomdale/gist:8176366
Life-changing Room for Rent

Life-changing Room for Rent

Man, doesn't the San Francisco real estate market suck? Everything is tiny and expensive, and if you're new to the city, I bet you're feeling really overwhelmed.

But good news! Available for one lucky person is the opportunity to rent a room in a huge (by SF standards) house in Noe Valley with two of the most awesome housemates you could ask for.

Sound awesome? Let's get down to brass tacks:

  • $1500 per month for rent (not including utilities)
  • Available June 23rd.
  • $950 refundable security deposit.
@ivanvanderbyl
ivanvanderbyl / UI.ListView.js
Created June 28, 2012 02:12 — forked from guilhermeaiolfi/UI.ListView.js
ListView widget for ember.js
var get = Ember.get, set = Ember.set;
UI = {};
UI.ListView = Em.CollectionView.extend({
tagName: "ul",
viewName: 'ListViewContainer',
classNames: ["ember-listview"],
attributeBindings: ['tabindex', 'unselectable'],
unselectable: 'on',
tabindex: 0,
mode: 'single',
@ivanvanderbyl
ivanvanderbyl / animatable_view.js
Created June 16, 2012 09:13 — forked from johanvalcoog/animatable_view.js
Control Animations on Ember Views
AnimatableView = Ember.ContainerView.extend(Em.Animatable,{
executeAnimation: function() {
.......
this.animate({duration: that.duration, stopEventHandling:true}, function() {
# perform animations based on your JS choices
move('#'+id)
.x(translatePosition)
var DateHelper = {
// Takes the format of "Jan 15, 2007 15:45:00 GMT" and converts it to a relative time
// Ruby strftime: %b %d, %Y %H:%M:%S GMT
time_ago_in_words_with_parsing: function(from) {
var date = new Date;
date.setTime(Date.parse(from));
return this.time_ago_in_words(date);
},
time_ago_in_words: function(from) {
// A Javascript version of Allan Odgaard's thousands separator regex
// http://blog.macromates.com/2007/recursion-in-regular-expressions/
123456789.toString().replace(/(\d{1,3})(?=(\d{3})+(?!\d))/g, '$1,');
// => "123,456,789"
@ivanvanderbyl
ivanvanderbyl / survey
Created November 1, 2009 11:24 — forked from radar/survey.md
What did you do to get good at Rails?
I came from a PHP background, so the path I took was to workout how to do everything I knew with PHP
in Ruby and Rails, as well as reading loads of source code and ripping parts out and making smaller apps.
Who taught you what you know?
Mainly Google, I didn't know anyone using Rails for the first year or more.
Do you have any fond (or not so fond) memories of your learning experiences?
# Daft Golf
# Encode the entire lyrics of Harder Better Faster Stronger in the least amount of characters
# without cheating. Source of lyrics: http://lyricwiki.org/Daft_Punk:Harder,_Better,_Faster,_Stronger
# First attempt without being really anal: 500b
s=%w(after better do ever faster harder hour is it make makes more never our over stronger than us work)
m1="chavnohzy3a7uvnb4iw21ogt3xwazyiw6gqsoaihdjw36q8encnd1oxfpy2eomjfxfr9"
m2="5vjlr1vcd8f7rdjb3c3zfk0kh6cjxc2l8dzvzk2hhfrwkg2n2ln04mpli1tq5gnfu7nvxc6dbk8yq9uxnfboimh5902mqtggizhhaakr2nk2xsh4qar5b8aypdocmeakqelscg11evw57i3ttep2ott0pqteclmae5sckhc"
def d(e, a)
t=e.to_i(36).to_s(2)
t[0]=''
function XHConn()
{
var xmlhttp, bComplete = false;
try { xmlhttp = new ActiveXObject("Msxml2.XMLHTTP"); }
catch (e) { try { xmlhttp = new ActiveXObject("Microsoft.XMLHTTP"); }
catch (e) { try { xmlhttp = new XMLHttpRequest(); }
catch (e) { xmlhttp = false; }}}
if (!xmlhttp) return null;
this.connect = function(sURL, sMethod, sVars, fnDone)
{