Inspired by https://gist.github.com/josevalim/1582864
Ubuntu 12.04
Linux citadel 3.5.0-17-generic #28-Ubuntu SMP Tue Oct 9 19:31:23 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux
- 12G of DDR3 RAM (@ 1033MHz)
- 16 cores (E5530 @ 2.40GHz)
using System; | |
using System.Collections.Generic; | |
using System.Configuration; | |
using System.IO; | |
using System.Linq; | |
using System.Net.Http; | |
using System.Net.Http.Headers; | |
using System.Web; | |
using Microsoft.WindowsAzure.Storage; | |
using Microsoft.WindowsAzure.Storage.Blob; |
#!/usr/bin/env bash | |
function goproject { | |
export GOPATH=$(pwd) | |
add_to_path "$GOPATH/bin" | |
alias gocd="cd $GOPATH" | |
if [ -f goconf ] | |
then | |
lines=($(cat goconf)) | |
cd ${lines[0]} |
using System; | |
using System.Collections; | |
using System.Diagnostics; | |
using System.IO; | |
using System.IO.Compression; | |
using System.Linq; | |
using System.Runtime.Serialization; | |
using System.Runtime.Serialization.Formatters.Binary; | |
using System.Text; | |
using Comparers; |
package main | |
import ( | |
"github.com/codegangsta/martini" | |
"github.com/codegangsta/martini-contrib/binding" | |
"github.com/codegangsta/martini-contrib/render" | |
"labix.org/v2/mgo" | |
) | |
type Wish struct { |
using System; | |
using System.Collections.Generic; | |
using System.Collections.Specialized; | |
// As opposed to magic validation libraries that rely on reflection and attributes, | |
// applicative validation is pure, total, composable, type-safe, works with immutable types, and it's easy to implement. | |
public abstract class Result<T> { | |
private Result() { } |
Inspired by https://gist.github.com/josevalim/1582864
Ubuntu 12.04
Linux citadel 3.5.0-17-generic #28-Ubuntu SMP Tue Oct 9 19:31:23 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux
package loom2d.math | |
{ | |
/** | |
* A slightly less simple Point class. | |
*/ | |
public struct Point | |
{ | |
public var x:Number, y:Number; | |
// CREATION / ASSIGNMENT |
Generate the list yourself:
$ cd /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS*.sdk/System/Library/Frameworks/UIKit.framework/Headers
$ grep UI_APPEARANCE_SELECTOR ./* | \
sed 's/NS_AVAILABLE_IOS(.*)//g' | \
sed 's/NS_DEPRECATED_IOS(.*)//g' | \
sed 's/API_AVAILABLE(.*)//g' | \
sed 's/API_UNAVAILABLE(.*)//g' | \
sed 's/UI_APPEARANCE_SELECTOR//g' | \
/* | |
* Copyright (C) 2010 The Android Open Source Project | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* | |
* Unless required by applicable law or agreed to in writing, software |
// Setup CSRF safety for AJAX: | |
$.ajaxPrefilter(function(options, originalOptions, jqXHR) { | |
if (options.type.toUpperCase() === "POST") { | |
// We need to add the verificationToken to all POSTs | |
var token = $("input[name^=__RequestVerificationToken]").first(); | |
if (!token.length) return; | |
var tokenName = token.attr("name"); | |