This gist's comment stream is a collection of webdev apps for OS X. Feel free to add links to apps you like, just make sure you add some context to what it does — either from the creator's website or your own thoughts.
— Erik
/* | |
* This work is free. You can redistribute it and/or modify it under the | |
* terms of the Do What The Fuck You Want To Public License, Version 2, | |
* as published by Sam Hocevar. See the COPYING file for more details. | |
*/ | |
/* | |
* Easing Functions - inspired from http://gizma.com/easing/ | |
* only considering the t value for the range [0, 1] => [0, 1] | |
*/ | |
EasingFunctions = { |
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000
#!/usr/bin/env bash | |
# script: watch | |
# author: Mike Smullin <mike@smullindesign.com> | |
# license: GPLv3 | |
# description: | |
# watches the given path for changes | |
# and executes a given command when changes occur | |
# usage: | |
# watch <path> <cmd...> | |
# |
FROM ubuntu | |
MAINTAINER Eric Mill "eric@konklone.com" | |
# turn on universe packages | |
RUN echo "deb http://archive.ubuntu.com/ubuntu raring main universe" > /etc/apt/sources.list | |
RUN apt-get update | |
# basics | |
RUN apt-get install -y nginx openssh-server git-core openssh-client curl | |
RUN apt-get install -y nano |
# SYNTAX: | |
var pattern = new RegExp(pattern, attributes); # attributes: g (global); i (case-sensitive); m (multiline matches) | |
var pattern = /pattern/attributes; # same as above | |
# BRACKETS: | |
[...]: Any one character between the brackets. | |
[^...]: Any one character not between the brackets. |
use list::Node; | |
mod list { | |
use std::mem; | |
#[derive(Show)] | |
pub struct Node<T> { | |
pub data: T, | |
prev: Option<Box<Node<T>>>, | |
next: Option<Box<Node<T>>> |
function StartDayAgain(){ | |
sarah.wakeUp(); | |
// What if my life was like a movie? In space? | |
sarah.goto("Bathroom"); | |
sarah.exit(sarah.pajamas); | |
sarah.clean(sarah); | |
sarah.clean(sarah.teeth); |
#include <GLFW/glfw3.h> | |
#define GLFW_EXPOSE_NATIVE_X11 | |
#define GLFW_EXPOSE_NATIVE_GLX | |
#include <GLFW/glfw3native.h> | |
#include <cairo/cairo.h> | |
#include <cairo/cairo-gl.h> | |
#include <stdlib.h> | |
int main(int argc, char * argv[]) { |