This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Fictional accounting example #1 - "Shared Mutability" | |
package main | |
import ( | |
"fmt" | |
"sync" | |
) | |
type Account struct { | |
id string |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Copyright (C) 2011 by Christoph Hack. All rights reserved. | |
// Use of this source code is governed by the New BSD License. | |
/* | |
This program contains a simple micro-benchmark for a Disruptor [1] like | |
event buffer (or at least what I think that Disruptor might be). There | |
isn't any kind of API yet and this test is currently limited to a | |
single producer - single consumer architecture, but generally the | |
architecture of Disruptor is also well suited for multiple producers and | |
consumers. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
"os" | |
"unsafe" | |
) | |
type ʘᴗʘ int32 | |
type Θ_Θ struct{} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCxXRA2PXooQhMcqVJYBe4pjeGJyFdDLmV5LcxF8C/iSDAFhIEOxz8o/g6L7kuMPMd+UPiJwZNkUECsgrHJM0RUMa8rcePM5/nN9RxLfQWmI45RAf2pxTqyndeOGmWr2xkHvd3KQqskC9wyQSjDvajG+V28fvmG/AewtZNt0C+n+6KumqtAqCUw/c3Sol7IthVtngsLkyEbEYDmGBqATWclX4J6nfyFHIC2qL42HX4SU2rDXMloMEkneZA75rsSI57KpvzmQNl0RCb7YOrbwxMMRShWdXlmG53z1xMBVPCSuLl6q/bTataJxt2Z91ERyqqmx7Y2+0b0n0NYsZsmf+X/ christoph@tuxmobil |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 ♜ ♞ ♝ ♛ ♚ ♝ ♞ ♜ | |
7 ♟ ♟ ♟ ♟ ♟ ♟ ♟ ♟ | |
6 · · · · · · · · | |
5 · · · · · · · · | |
4 · · · · · · · · | |
3 ♙ · · · · · · · | |
2 · ♙ ♙ ♙ ♙ ♙ ♙ ♙ | |
1 ♖ ♘ ♗ ♕ ♔ ♗ ♘ ♖ | |
a b c d e f g h |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"database/sql" | |
"fmt" | |
_ "github.com/bmizerany/pq" | |
"log" | |
) | |
func QueryMap(db *sql.DB, query string) (map[string]interface{}, error) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <typeinfo> | |
struct Game; | |
struct Command | |
{ | |
void execute(Game& game); | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
a b c d e f g h | |
8 . . r . . . . . 8 | |
7 . . . . . . . . 7 | |
6 . . . . . . . . 6 | |
5 . . . k . . . . 5 | |
4 . . . . . . . . 4 | |
3 . . . . . N . r 3 | |
2 . K . . . P . . 2 | |
1 . . . . . . . q 1 | |
a b c d e f g h |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DROP KEYSPACE gocql_wiki; | |
CREATE KEYSPACE gocql_wiki | |
WITH strategy_class = 'SimpleStrategy' | |
AND strategy_options:replication_factor = 1; | |
USE gocql_wiki; | |
CREATE TABLE page ( | |
title varchar, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
irc "github.com/fluffle/goirc/client" | |
"html/template" | |
"io/ioutil" | |
"log" | |
"net/http" | |
"net/url" |
OlderNewer