Skip to content

Instantly share code, notes, and snippets.

View andreis's full-sized avatar

andreis

View GitHub Profile
  • Braid [single developer]
  • Dust: An Elysian Tail [single developer]
  • Bastion
  • Fez
  • Mark of the Ninja
  • Super Meat Boy
  • Shovel Knight
  • Wayward Souls [iOS]
  • Papers, Please [single developer]
  • Spelunky
@andreis
andreis / ideas.md
Last active August 29, 2015 14:13
Some *ideas*

Products

  • [meta as fuck] sidelog: a service for storing side project ideas (kind of like a notepad) and also discovering coworkers/ideas; something very similar was launched last 90 days
  • death.app [codename]: a way of recovering access to the online data of a deceased relative; something very similar launched last year, and people said it's mostly a legal challenge, not a software one
  • badger: pinboard.in on steroids; a read-it-later service for links to content you want to keep track of, that leverages the metadata in interesting ways (content discovery, organisation, etc)
  • agreed: website for verbal agreements; uses email addresses and imgur-like one-click link creation; add text and email addresses, and the process is finalised when all people have clicked the link in the email; the urls are unlisted by default
  • twitter collage: photo streams for events based on hashtags and time, optionally geolocation
  • etiq: company ethical meter; user can review and vote on how ethically a company runs
func Encrypt(string text, string[] publicKeys) (string, error) {
// string is the encrypted text
// error is null if encryption went OK, or non-null when there was an error
// (e.g. one of the public keys wasn't well formatted)
// (http://stackoverflow.com/questions/2341486/how-are-pgp-keys-formatted)
}
func Decrypt(string text, string privateKey) (string, error) {
// string is the decrypted text
// error is null if decryption went OK, or non-null when there was an error

Honest Greetings...........,

My name is MR.RAYMOND ATETTEH, I am an accountant in the mineral commission department Ministry of Mines and Energy Ghana. Also I am a member of contracts awarding committee of this ministry under Ghana government. This mail may come to you as a surprise but be rest assured that this is not a hoax mail. I write to solicit your assistance in a funds transfer deal involving US $18,000,000.00.($18 million us dollars)

Two years ago, Ghana government asked my committee to award contracts to foreign firms, which I and my colleague With our good position, deliberately over invoiced the contract sum to the tune of US$18,000,000:00 .The contracts value has been paid off to the actual contractors that executed these jobs, all I want now is a trusted foreign partner like you that we shall front with the banking account number to Claim the over inflated sum.

All I require is your honest cooperation and confidence in me which I know would not come easy.

/Applications (w/o preinstalled apps)

Airmail.app             £1.49, Sparrow clone and best email client hands-down
AppCleaner.app          (*) uninstaller, essential
Atom.app                invite-based beta
CppIDE EAP.app          private beta
Dropbox.app             (*)
Google Chrome.app       (*)
Google Drive.app        (*)
iBooks.app              decent ebook reader
s1 = []
s2 = []
def enq(val):
global s1, s2
if len(s1) == 0:
s1.append(val)
else:
s2.append(val)
while len(s1) > 0:
Process: Google Music [13389]
Path: /opt/homebrew-cask/*/Google Music.app/Contents/MacOS/Google Music
Identifier: com.sajidanwar.Google-Music
Version: 1.1.1 (0)
Code Type: X86-64 (Native)
Parent Process: launchd [241]
Responsible: Google Music [13389]
User ID: 501
Date/Time: 2014-03-26 14:38:26.746 +0000
@andreis
andreis / tree-ser-deser.go
Last active August 29, 2015 13:57
A somewhat obvious solution is to emulate a heap and replace the missing nodes with "x" markers, but this performs badly on path trees (only left links). An improvement would be to replace consecutive "x"-es by "x<number>", where number==how many x-es are replaced. The solution in this gist does a depth-first traversal and prints the tree recurs…
package main
import (
"fmt"
"math/rand"
"strconv"
"strings"
"time"
)
func Tokenize(s string) []string {
out := []string{}
for l, r := 0, 0; r < len(s); {
for l = r; isSep(s[l]); l++ {
}
for r = l; r < len(s) && !isSep(s[r]); r++ {
}
out = append(out, s[l:r])
}
return out