These commands are good as of 2011-07-27.
App store http://itunes.apple.com/us/app/xcode/id448457090?mt=12) The download/install takes awhile so start it first. When it finishes downloading you will still need to run it to complete installation.
| # Mac OS X Lion introduced a new, iOS-like context menu when you press and hold a key | |
| # that enables you to choose a character from a menu of options. If you are on Lion | |
| # try it by pressing and holding down 'e' in any app that uses the default NSTextField | |
| # for input. | |
| # | |
| # It's a nice feature and continues the blending of Mac OS X and iOS features. However, | |
| # it's a nightmare to deal with in Sublime Text 2 if you're running Vintage (Vim) mode, | |
| # as it means you cannot press and hold h/j/k/l to move through your file. You have | |
| # to repeatedly press the keys to navigate. |
| <?xml version="1.0" encoding="UTF-8"?> | |
| <assembly xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2" | |
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
| xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2 http://maven.apache.org/xsd/assembly-1.1.2.xsd"> | |
| <id>akka</id> | |
| <formats> | |
| <format>zip</format> | |
| </formats> | |
| <fileSets> |
| # Makefile for a go project | |
| # | |
| # Author: Jon Eisen | |
| # site: joneisen.me | |
| # | |
| # Targets: | |
| # all: Builds the code | |
| # build: Builds the code | |
| # fmt: Formats the source files | |
| # clean: cleans the code |
| #!/bin/bash | |
| mkdir /opt/redis | |
| #RedisVersion=2.2.14 | |
| RedisVersion=2.4.8 | |
| wget http://redis.googlecode.com/files/redis-$RedisVersion.tar.gz | |
| tar -zxvf redis-$RedisVersion.tar.gz | |
| cd redis-$RedisVersion |
| var signForm = $.ajax({ | |
| type: "POST", | |
| url: "/some/form", | |
| dataType: "JSON", | |
| data: myData | |
| }); | |
| signForm.done(function(response){ | |
| // handle success here | |
| }); |
| package main | |
| import ( | |
| "fmt" | |
| ) | |
| type Node struct { | |
| Value int | |
| } |
These commands are good as of 2011-07-27.
App store http://itunes.apple.com/us/app/xcode/id448457090?mt=12) The download/install takes awhile so start it first. When it finishes downloading you will still need to run it to complete installation.
| DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
| Version 2, December 2004 | |
| Copyright (C) 2011 Jed Schmidt <http://jed.is> | |
| Everyone is permitted to copy and distribute verbatim or modified | |
| copies of this license document, and changing it is allowed as long | |
| as the name is changed. | |
| DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE |
| require File.expand_path(File.dirname(__FILE__) + '/../test_helper') | |
| class BuildStatusTest < ActiveSupport::TestCase | |
| test "remove the old statii" do | |
| assert_equal 2, BuildStatus.count | |
| BuildStatus.expire_old | |
| statii = BuildStatus.all | |
| assert_equal 1, statii.size | |
| assert statii[0].updated_at >= 30.days.ago | |
| end |
| require File.expand_path(File.dirname(__FILE__) + '/../test_helper') | |
| class BuildStatusTest < ActiveSupport::TestCase | |
| context "expiring build statii" do | |
| should "remove the old one" do | |
| assert_equal 2, BuildStatus.count | |
| BuildStatus.expire_old | |
| statii = BuildStatus.all | |
| assert_equal 1, statii.size | |
| assert statii[0].updated_at >= 30.days.ago |