A timeline of the last four years of detecting good old window.localStorage
.
October 2009: 5059daa
A timeline of the last four years of detecting good old window.localStorage
.
October 2009: 5059daa
A lot of times you are developing a web application on your own laptop or home computer and would like to demo it to the public. Most of those times you are behind a router/firewall and you don't have a public IP address. Instead of configuring routers (often not possible), this solution gives you a public URL that's reverse tunnelled via ssh to your laptop.
Because of the relaxation of the sshd setup, it's best used on a dedicated virtual machine just for this (an Amazon micro instance for example).
@import "compass/css3/shared"; | |
// NOTE: | |
// All mixins for the 2009 spec have been written assuming they'll be fed property values that | |
// correspond to the standard spec. Some mixins can be fed values from the 2009 spec, but don't | |
// rely on it. The `legacy-order` mixin will increment the value fed to it because the 2009 | |
// `box-ordinal-group` property begins indexing at 1, while the modern `order` property begins | |
// indexing at 0. | |
// if `true`, the 2009 properties will be emitted as part of the normal mixin call |
require 'formula' | |
class Luvit < Formula | |
homepage '' | |
url 'https://github.com/luvit/luvit-releases/raw/master/0.5.0/luvit-0.5.0.tar.gz' | |
sha1 'a448cd5ed8299d9f6f89e0aa88e1bdbf3e000a8d' | |
def install | |
ENV.j1 # if your formula's build system can't parallelize | |
(function () { | |
/** | |
A responsive context, inspired by Meteor. | |
A responsive context is intended as a replacement for | |
events as a tool for invalidating databindings. Instead of | |
dispatching events that the dependent code listens to, the | |
dependent code instantiates a context and runs code inside of |
(function (window) { | |
// This library re-implements setTimeout, setInterval, clearTimeout, clearInterval for iOS6. | |
// iOS6 suffers from a bug that kills timers that are created while a page is scrolling. | |
// This library fixes that problem by recreating timers after scrolling finishes (with interval correction). | |
// This code is released in the public domain. Do with it what you want, without limitations. I do not promise | |
// that it works, or that I will provide support (don't sue me). | |
// Author: rkorving@wizcorp.jp | |
var timeouts = {}; |
import sublime, sublime_plugin, subprocess | |
class TidyXmlCommand(sublime_plugin.TextCommand): | |
def run(self, edit): | |
if self.view.sel()[0].size() > 0: | |
self.cursor = None | |
for region in self.view.sel(): | |
self.format(edit, region) | |
else: | |
self.cursor = self.view.sel()[0] |
It appears that Apple somehow broke Python in Mountain Lion, so even with the latest Command Line Tools and Xcode 4.4 virtualenv won't properly work. During virtual environment creation it will try to install easy_install inside /Library hierarchy. So let's give it a quick workaround. Let's install custom python into your $HOME-directory using pythonbrew!
Without the Apple Mac Developer account you won't even see the proper download link for the latest CL Tools and the old one won't work on ML. So here's the link: http://goo.gl/iBTXh. It points towards the Apple website so don't worry.
#!/usr/bin/env ruby | |
require 'net/telnet' | |
require 'lib/trollop' | |
opts = Trollop::options do | |
banner <<-EOS | |
Command line tool to list memcache keys and to get the value of a specific key | |
Usage: | |
memcache [options] |