Skip to content

Instantly share code, notes, and snippets.

@mortdeus
mortdeus / Powered_By_Gophers_License
Created March 6, 2014 19:34
License for the "Powered By Gophers" buttons
The "Powered By Gophers" buttons were created by mortdeus and smw from the golang community.
These artworks are licensed under the Creative Commons Attribution 3.0 Unported License.
These designs were inspired by the golang gopher mascot created by Renee French.
Droid Font Family License:
Copyright (C) 2008 The Android Open Source Project
Licensed under the Apache License, Version 2.0 (the “License”);
@mortdeus
mortdeus / walker.go
Created March 7, 2014 12:40
code that walks a file system directory hierarchy renaming a bunch of ugly ogg files I pulled from a server with wget.
package main
import (
"fmt"
"os"
"path/filepath"
)
func main() {
err := filepath.Walk(os.Getenv("PWD"), walk)
package main
import (
"bytes"
"encoding/xml"
"fmt"
"io"
"log"
"os"
"os/exec"
@mortdeus
mortdeus / resume
Last active August 29, 2015 14:02
my resume
Experience: 5 years
Languages: Go, C, objC, C++, C#, D, Python, Java, Bash, Javascript, Dart
Skills: - expertise working with unix-like systems (linux, android, *bsd);
- concurrent and distributed system design
- experience working on low level code like kernels and compilers
- algorithm design and optimization
- ability to identify and debug complex, obscure bugs.
- writing elegant, simple & legible code; with plenty of comments
@mortdeus
mortdeus / interface_ptr.go
Last active August 29, 2015 14:19
go interface hackery
package main
import "fmt"
func main() {
s1, asc1 := FindAsc(1)
s2, asc2 := FindAsc(2)
s3, asc3 := FindAsc(3)
s4, asc4 := FindAsc(4)
/**
* SyntaxHighlighter
* http://alexgorbatchev.com/SyntaxHighlighter
*
* SyntaxHighlighter is donationware. If you are using it, please donate.
* http://alexgorbatchev.com/SyntaxHighlighter/donate.html
*
* @version
* 3.0.83 (July 02 2010)
*
Bit versus qubit
A bit is the basic unit of computer information. Regardless of its physical realization, a bit is always understood to be either a 0 or a 1. An analogy to this is a light switch— with the off position representing 0 and the on position representing 1.
A qubit has some similarities to a classical bit, but is overall very different. Like a bit, a qubit can have two possible values—normally a 0 or a 1. The difference is that whereas a bit must be either 0 or 1, a qubit can be 0, 1, or a superposition of both.
//
// HelloWorldScene.cpp
// Pong
//
// Created by Clawoo on 9/18/11.
// Copyright __MyCompanyName__ 2011. All rights reserved.
//
#include "HelloWorldScene.h"
#
# cocos2d
# http://cocos2d.org
#
# This code is so you can run the samples without installing the package
import sys
import os
sys.path.insert(0, os.path.join(os.path.dirname(__file__), '..'))
#
[core]
#modules=desktop-shell.so,xwayland.so
[shell]
background-image=/usr/share/backgrounds/arch.png
background-color=0xff002244
panel-color=0x90ff0000
locking=true
animation=zoom
#binding-modifier=ctrl