Skip to content

Instantly share code, notes, and snippets.

View alliejones's full-sized avatar

Allie Jones alliejones

View GitHub Profile
[
//
// TABS (REGULAR)
//
// Tab set
{
"class": "tabset_control",
"layer0.texture": "",
@sebmarkbage
sebmarkbage / Enhance.js
Last active January 31, 2024 18:33
Higher-order Components
import { Component } from "React";
export var Enhance = ComposedComponent => class extends Component {
constructor() {
this.state = { data: null };
}
componentDidMount() {
this.setState({ data: 'Hello' });
}
render() {
@tkafka
tkafka / LICENSE.txt
Last active September 5, 2019 13:38
Drop-in replacement for ReactCSSTransitionGroup that uses velocity.js instead of CSS transforms. Add your own transitions to `transitions` hash.
The MIT License (MIT)
Copyright (c) 2014 Tomas Kafka
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 permit persons to whom the Software is
furnished to do so, subject to the following conditions:

In no particular order, some fiction I've loved:

  1. The Last Samurai by Helen DeWitt
  2. Vox and The Fermata by Nicholson Baker
  3. The Forgotten Beasts of Eld by Patricia McKillip
  4. The Cyberiad by Stanislaw Lem
  5. Winter's Tale by Mark Helprin
  6. Invisible Cities and Cosmicomics by Italo Calvino
  7. The Scar by China Mieville (And Perdido Street Station, natch. I also liked his The City and the City and Embassytown, but more as metaphorical tools than as stories)
  8. Rosencrantz and Guildenstern are Dead and Arcadia by Tom Stoppard
console.log("hello");
function LazySeq(head, tail) {
this.head = head; // value
this.tail = tail; // thunk || null
}
function ints(n) {
return new LazySeq(n, function() { return ints(n+1); });
}
@backflip
backflip / gist:3132520
Created July 17, 2012 22:17
Update SASS in LiveReload
// Assuming the latest version was installed using RubyGems (gem install sass --pre)
// The path depends on the exact version, of course. Tab completion to the rescue.
cd /Applications/LiveReload.app/Contents/Resources/SASS.lrplugin/lib
mv sass sass-bundled
ln -s /Library/Ruby/Gems/1.8/gems/sass-3.2.0.alpha.275/ sass
@paulirish
paulirish / rAF.js
Last active March 22, 2024 00:00
requestAnimationFrame polyfill
// http://paulirish.com/2011/requestanimationframe-for-smart-animating/
// http://my.opera.com/emoller/blog/2011/12/20/requestanimationframe-for-smart-er-animating
// requestAnimationFrame polyfill by Erik Möller. fixes from Paul Irish and Tino Zijdel
// MIT license
(function() {
var lastTime = 0;
var vendors = ['ms', 'moz', 'webkit', 'o'];
@voxpelli
voxpelli / brew_mamp.markdown
Created June 28, 2010 21:37 — forked from hugowetterberg/brew_mamp.markdown
For Brew driven MAMP with Apache2, PHP 5.3 and MySQL 5.1

For Brew driven MAMP with Apache2, PHP 5.3 and MySQL 5.1

If you've MacPorts install - you probably should move it to avoid any unintentional conflicts.

Install brew (assuming that you have Xcode installed).

$ ruby -e "$(curl -fsS http://gist.github.com/raw/323731/install_homebrew.rb)"

Install git and bash completion. (Perhaps by first following gem instructions at http://wiki.github.com/mxcl/homebrew/gems-eggs-and-perl-modules)