Skip to content

Instantly share code, notes, and snippets.

View tanelih's full-sized avatar

Taneli Hartikainen tanelih

View GitHub Profile
@tanelih
tanelih / shared-results.go
Created January 13, 2015 09:06
Simple example of using a shared results channel to retrieve data.
package main
import "log"
import "time"
type (
DoneChannel chan int
ResultsChannel chan int
)
@tanelih
tanelih / provision-node.sh
Created November 28, 2014 09:42
Simple Node.JS provisioning script for Vagrant
#!/bin/bash
# Vagrant provisioning script for setting up a simple 'nodejs' development
# environment.
#
# > vagrant up && vagrant ssh
# > cd <my-synced-folder> && npm install
#
# If you are also doing 'front-end' development, you might want to add:
# gem install sass
@tanelih
tanelih / steamid.go
Last active August 29, 2015 14:09
Simple SteamID conversion
/**
* See https://developer.valvesoftware.com/wiki/SteamID for details.
*/
package steamid
import "strconv"
const (
ACCOUNT_ID_BITS = 32
ACCOUNT_TYPE_BITS = 4
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<!-- Make the app behave more like a native app -->
<meta name="viewport" content="user-scalable=no, initial-scale=1.0, maximum-scale=1.0, width=device-width, height=device-height" />
<!-- Bootstrap styles -->
<link href="css/bootstrap.css" rel="stylesheet" media="screen" />