Skip to content

Instantly share code, notes, and snippets.

View joelhooks's full-sized avatar
🍄

Joel Hooks joelhooks

🍄
View GitHub Profile
package org.robotlegs.utilities.remote
{
import com.adobe.serializers.json.JSONDecoder;
import mx.collections.ArrayCollection;
public class JsonRemoteService extends RemoteServiceBase
{
public function JsonRemoteService(rootURL:String = "")
{
@squeedee
squeedee / LoggingCommandMap.as
Created August 1, 2010 20:58
Really Helpful commandMap logging for your Robotlegs apps
package com.visfleet.robotlegs {
import com.visfleet.core.isNotNull;
import flash.events.Event;
import flash.events.IEventDispatcher;
import mx.logging.ILogger;
import mx.logging.Log;
@nsdevaraj
nsdevaraj / ColorUtil.as
Created October 21, 2010 10:37
Static functions for conversions like RGB to CMYK, RGB to HSV, HSV to RGB, ColorTransformation, int color value to RGB and Color Calculations.
package
{
import flash.geom.ColorTransform;
public class ColorUtil
{
/**
* RGBColorTransform Create an instance of the information.
* @ Param rgb RGB integer value that indicates (0x000000 - 0xFFFFFF)
* @ Param amount of fill adaptive value (0.0 - 1.0)
* @ Param alpha transparency (0.0 - 1.0)
anonymous
anonymous / bootstrap.sh
Created June 2, 2011 17:19
Django on Heroku with Celery and Sentry
virtualenv --no-site-packages .
source bin/activate
bin/pip install Django psycopg2 django-sentry
bin/pip freeze > requirements.txt
bin/django-admin.py startproject mysite
cat >.gitignore <<EOF
bin/
include/
lib/
EOF
@tallship
tallship / install_tmux_centos6.sh
Created March 8, 2013 20:00
Install tmux on CentOS 6 this is a quick script for Installing the latest [libevent and] tmux on CentOS 6.3 Before anything, do a "yum update" It will install deps, download the latest sources (a/o 20130308), then compile and install everything. Deps: gcc kernel-devel make ncurses-devel (We're installing the latest libevent by hand). Next, we d/…
#!/bin/sh
# install_tmux_centos6.sh
# Make sure we have the deps
yum -y install gcc kernel-devel make ncurses-devel
# Get libevent and tmux source, and put it all under /usr/local/src
# and then untar it all, and config/compile/install them.
mkdir -p /usr/local/src/libevent
mkdir -p /usr/local/src/tmux
@mattclar
mattclar / simple_form.rb
Last active December 21, 2015 13:58 — forked from tommarshall/simple_form.rb
this is a simple form initializer that is ALMOST compatible with Bootstrap3 apart from a way to set the class of the label this would work perfectly
# http://stackoverflow.com/questions/14972253/simpleform-default-input-class
# https://github.com/plataformatec/simple_form/issues/316
inputs = %w[
CollectionSelectInput
DateTimeInput
FileInput
GroupedCollectionSelectInput
NumericInput
PasswordInput
@cobyism
cobyism / design-workflow-q-a.md
Last active February 23, 2017 07:48
Q&A on design workflows.

Design workflow Q&A

James Kirkpatrick sent me some questions about designing in the browser, and design workflows in general to help with his dissertation at the University of Ulster. Here are my responses.

Question: Do you feel that designing in browser is fast becoming the standard in web design, or do you feel that there will still be a few die-hard designers that will refuse to adopt the idea?

I think it is definitely on its way to becoming the standard, especially with the improvements in the pipeline in terms of what’s possible within developer tools (source-map support for Sass, CoffeeScript and so forth). It’s not catching on as quickly as I feel it should be though (given the benefits I feel it has), and honestly I feel like that’s simply because it’s hard for people to drop the tools they know and love cold-turkey. It can take a while to adjust to new tools and workflows, and to be able to afford the time in-between where you just have to accept that you won’t be as productive as usual is

@spoike
spoike / reactjs_componentapi_cheatsheet.md
Created May 13, 2014 07:51
React JS Cheatsheets for Component API, Specifications and Lifecycle

ReactJS Component Cheatsheet

To create a ReactComponent:

ReactComponent React.createClass(object proto)

Basic JSX example:

var TitleComponent = React.createClass({

// REQUIRED

// by Etienne JACOB
// motion blur template by beesandbombs
// needs opensimplexnoise code in another tab
// --> code here : https://gist.github.com/Bleuje/fce86ef35b66c4a2b6a469b27163591e
int[][] result;
float t, c;
float ease(float p) {
@LindseyB
LindseyB / JackboxGames.md
Created June 25, 2020 22:48
Markdown Listing of Jackbox Games because I keep forgetting which packs they are in and how many players they allow
Game Party Pack Min Players Max Players
Dictionarium Jackbox Party Pack 6 3 8
Drawful 2 Drawful 2 3 8
Fibbage 2 Jackbox Party Pack 4 2 8
Guesspionage Jackbox Party Pack 3 2 8
Joke Boat Jackbox Party Pack 6 3 8
Mad Verse City Jackbox Party Pack 5 3 8
Patently Stupid Jackbox Party Pack 5 3 8
Quiplash 2 Jackbox Party Pack 3 3 8