Skip to content

Instantly share code, notes, and snippets.

@kainosnoema
kainosnoema / channel-example.swift
Last active August 30, 2023 04:34
Golang-like concurrency semantics in Swift
import Foundation
go(println("in a thread"))
// buffered channel
var c = Chan(buffer:20)
// sending routing
go {
while(true) {
@mrosset
mrosset / build
Last active December 10, 2015 02:38
#!/bin/bash
# This is a simple build script and will be executed on your CI system if
# available. Otherwise it will execute while your application is stopped
# before the deploy step. This script gets executed directly, so it
# could be python, php, ruby, etc.
tarball="https://go.googlecode.com/files/go1.0.3.linux-amd64.tar.gz"
# Set GOROOT since we dont use GOROOT_FINAL
export GOROOT="$OPENSHIFT_HOMEDIR/app-root/data/go"
@huned
huned / amendment.md
Created December 21, 2011 04:07
an amendment to excise the concept of "underlying service provider technology" to obivate the need to negotiate around licensing and transferability

§4.3 Upon termination of this Agreement, within five (5) days of such termination, Client agrees to pay Service Provider all amounts due or accrued as of the date of such termination. If Service Provider terminates this Agreement due to a default or breach by Client, Client shall immediately return to Service Provider, and cease all further use of, all Underlying Service Provider Technology (as defined in Section 6 below), if any, and Deliverables and all copies of any documents, magnetically encoded materials, any software, drawings, flow charts, structure charts, and recording media and other materials furnished to Client or used by Service Provider in rendering the Services for which full payment has not been made, and any assignment or license granted to Client under this Agreement for the same shall be revoked. Client agrees to reassign any rights granted by Service Provider to Client relating to the same. Upon termination of this Agreement for any reason, each party shall return to the other party o