Skip to content

Instantly share code, notes, and snippets.

View beefsack's full-sized avatar
🦀

Michael Alexander beefsack

🦀
View GitHub Profile
// The following does not work.
export const FETCH_ACTIVE_GAMES = "brdgme/game/FETCH_ACTIVE_GAMES";
export interface IFetchActiveGames {
type: FETCH_ACTIVE_GAMES;
}
export const fetchActiveGames = (): IFetchActiveGames => ({
type: FETCH_ACTIVE_GAMES,
Compiling brdgme-game v0.1.0 (file:///home/beefsack/Development/brdgme/game)
error[E0277]: the trait bound `command::parser::Many<std::string::String, command::parser::Token>: command::parser::Parser<std::string::String>` is not satisfied
--> src/command/parser.rs:561:22
|
561 | parsers.push(Box::new(Many::any(Token::new("fart"))));
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `command::parser::Parser<std::string::String>` is not implemented for `command::parser::Many<std::string::String, command::parser::Token>`
|
= help: the following implementations were found:
<command::parser::Many<T, TP> as command::parser::Parser<std::vec::Vec<T>>>
= note: required for the cast to the object type `command::parser::Parser<std::string::String>`
@beefsack
beefsack / games.csv
Created July 4, 2016 07:19
boardgamegeek.com 1200 most rated games (Jul 2016)
ID Type Name Year URL Thumbnail Image Min Players Max Players Playing Time Users Rated Average Bayes Average Std Dev Median Owned Trading Wanting Wishing Num Comments Num Weights Average Weight Rank Ratings 1 Ratings 2 Ratings 3 Ratings 4 Ratings 5 Ratings 6 Ratings 7 Ratings 8 Ratings 9 Ratings 10 Age Poll 2 Age Poll 3 Age Poll 4 Age Poll 5 Age Poll 6 Age Poll 8 Age Poll 10 Age Poll 12 Age Poll 14 Age Poll 16 Age Poll 18 Age Poll 21 and up Language Poll No necessary in-game text Language Poll Some necessary text - easily memorized or small crib sheet Language Poll Moderate in-game text - needs crib sheet or paste ups Language Poll Extensive use of text - massive conversion needed to be playable Language Poll Unplayable in another language Player Poll 1 Best Player Poll 1 Recommended Player Poll 1 Not Recommended Player Poll 2 Best Player Poll 2 Recommended Player Poll 2 Not Recommended Player Poll 3 Best Player Poll 3 Recommended Player Poll 3 Not Recommended Player Poll 4 Best Player Poll 4 Recommended Play
@beefsack
beefsack / Main.elm
Last active August 29, 2015 14:26
Signals confusion in Elm
import Html
import Router exposing (..)
import History
import StartApp
import View.Auth
import View.Home
import View.Games
main : Signal Html.Html
@beefsack
beefsack / test.go
Created April 16, 2015 10:23
omitempty not working for empty time.Time
package main
import (
"log"
"time"
r "github.com/dancannon/gorethink"
)
type Blah struct {
extern crate std;
const DEFAULT_BUF_SIZE: usize = 64 * 1024;
pub struct PeekReader<R> {
inner: R,
buf: Vec<u8>,
pos: usize,
cap: usize,
}
// Package bench is a package which contains
// programs of Go Benchmark Competition.
package bench
import (
"bufio"
"bytes"
"errors"
"io"
"os"
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣀⣀⣠⣤⣤⣤⣄⣀⣀⣀⣀⣀⣀⣠⣤⣤⣤⣤⣤⣄⣀⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⡠⠀⠀⢠⠶⢄⣤⣲⣿⣿⣿⣿⠿⠛⣻⣭⣭⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡟⠋⠉⠀⠀⠀⠀⠀⠀⠀⠀⠤⣤⣤⢴⡤⠄⠀⠀⠀⠀⠀⠒⠂⠐⠛⠐⠚⠂⠀⠀⠀⠀⠀⠀⠀⠀⠐⠒⠢⠄⡤⢀⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣠⣤⣤⣈⢛⢓⡚⠒⣀⡭⣛⡵⢃⣻⣒⣒⢒⠈⠀⠀⠀⠀⠁⠀⠙⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠛⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⠁⠀⠈⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣠⡶⠒⠒⠀⣀⡀⢀⠀⢀⣀⣰⣶⣿⣾⣿⣿⣿⣿⣟⣀⣀⣀⣀⣀⣀⣀⠀⠀⠐⠒⠒⣂⠒⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣀⣀⣤⣴⣶⣶⣶⣶⣤⣤⣄⣀⣀⣠⣤⣤⣤⣤⣉⣁⢿⣿⡿⠿⠿⠆⢠⠌⣶⣃⠀⣻⡟⠛⠛⢿⣷⣦⠀⠀⠀⠀⠀⠠⣫⣿⣿⣿⣿⣿⣿⣿⣿⠿⠯⠓⠀⠀⠀⠀⠀⠄⠀⠀⠀⠀⠀⠀⠀⠀⣀⣤⣴⣶⣶⣤⣄⣀⡀⠀⠀⡀⡀⢀⣙⢂⣤⣤⣀⡻⢿⣞⢾⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣶⣶⣶⣶⣿⣿⣿⣷⣶⣶⣶⣶⣤⣤⣤⣤⣀⣤⣤⣖⣀⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠠⡴⣤⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣯⣽⣿⣿⣿⣿⣷⣿⣿⣿⣿⣾⣿⣟⣿⣛⠋⢀⡤⢬⣾⣿⡛⠗⠀⠀⠀⠀⢻⣿⣿⣿⠿⠛⠛⠁⠀⠀⠀⠠⣦⣤⣤⠄⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣶⣿⣿⡟⢻⣿⣿⣿⣟⡛⣛⣤⣽⣶⣿⣿⣿⣿⣿⣿⣿⣿⣿⣴⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠗⠲⠶⡄⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⡀⣠⣶⣶⣿⣿⣿⡿⢿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣯⣿⣿⣿⣿⣿⣿⣿⣿⠿⠛⠁⠀⠀⠓⠨⣠⣦⣤⡈⠙⠊⠀⠀⠀⠀⠀⠀⠹⢿⡿⠋⠀⠀⠀⠀⠀⠀⠀⠀⠀⠁⠀⠀⠀⠀⠂⠀⡀⠀⠀⣴⣾⣿⣿⣿⠁⠰⣿⣿⣿⢿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿
@beefsack
beefsack / gist:e1f416d4c9bf248da6f2
Created January 25, 2015 21:45
Astrill AUR 2.9.3
# Contributor: piojo
pkgname=astrill
pkgver=2.9.3
pkgrel=0
pkgdesc="VPN configuration tool for Astrill's servers"
arch=('x86_64' 'i686')
url="http://astrill.com/"
license=('custom')
depends=()
We can make this file beautiful and searchable if this error is corrected: It looks like row 4 should actually have 33 columns, instead of 7. in line 3.
ID,Type,Name,Year,URL,Thumbnail,Image,Min Players,Max Players,Playing Time,Users Rated,Average,Bayes Average,Std Dev,Median,Owned,Trading,Wanting,Wishing,Num Comments,Num Weights,Average Weight,Rank,Ratings 1,Ratings 2,Ratings 3,Ratings 4,Ratings 5,Ratings 6,Ratings 7,Ratings 8,Ratings 9,Ratings 10
13,boardgame,The Settlers of Catan,1995,/boardgame/13/settlers-catan,//cf.geekdo-images.com/images/pic268839_t.jpg,//cf.geekdo-images.com/images/pic268839.jpg,3,4,90,48659,7.383180,7.250510,1.435530,0.000000,64976,1001,377,3006,11036,5634,2.378100,137,86,203,367,1047,2303,7629,12568,15382,5760,3429
822,boardgame,Carcassonne,2000,/boardgame/822/carcassonne,//cf.geekdo-images.com/images/pic166867_t.jpg,//cf.geekdo-images.com/images/pic166867.jpg,2,5,45,47735,7.443250,7.347770,1.303470,0.000000,61368,898,332,2718,11037,5617,1.958500,102,51,93,259,723,1758,6990,13088,16522,5565,2769
36218,boardgame,Dominion,2008,/boardgame/36218/dominion,//cf.geekdo-images.com/images/pic394356_t.jpg,//cf.geekdo-images.com/images/pic394