Skip to content

Instantly share code, notes, and snippets.

View steveklabnik's full-sized avatar
🦀
Rustacean

Steve Klabnik steveklabnik

🦀
Rustacean
View GitHub Profile

So I was playing Leela yesterday vs NEH, and I'm trying out Muertos Gang Member. It has nice synergy with her ability, because derezzed cards are bounce-able, but rezzed cards aren't. It's also nice to get one run in, so with a field of unrezzed ICE, you make a run, they flip the ice, you play MGM, and now they're back to 100% derezzed.

In addition, they stack up. And the rezzing ability isn't even that bad. Case in point: my opponent and I were both at game point. I had three gang members in play. They IAA something in a two-ice deep remote. I had two out of my three breakers. I trashed all three members, and they rezzed both their ICE. The draws drew me into a Special Order, and I was able to see exactly what ICE were there, so I fetched my third breaker (which I needed, as it turns out) and managed to get in. Without the draw + knowledge, it wouldn't have happened.

It's possible I just hit a number of upsides with little downsides in these first few games, but it felt good.

extern crate serial;
use std::path::Path;
use std::path::PathBuf;
use serial::prelude::*;
use serial::posix::TTYPort;
struct FirmataBoard {
port: TTYPort,

Dear Steve,

I'm currently preparing a follow-up to my last piece on the strangeloop controversy, and I was wondering if you could answer a couple of questions.

Firstly, what specifically do you object to in Curtis Yarvin aka Mencius Moldbug's writings?

Secondly, you are on record as being "100% okay" with violence towards "fascists in tech", including Yarvin, Andrew Auernheimer aka Weev and GamerGate supporters. Do you stand by those comments, and if so can you elaborate on why?

Kind regards,

data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAQAAABpN6lAAAAWRUlEQVR42t1dC5RUxZm+ojxEJzEgznTdqrq3b/dMA7oSkyxGNtloIr6CDxiIgyiE7PpYBdGNmBP1xHgSH5i4msX1sSau0ZDkqKD4IIlHJcZsFBQWUBlNhI3CgAGUrAii4PRW1V+v++rppu/0TKz/9ONW31u3vq/++uuvx612+jKUppT+ymSy83EPpZNLL5SeLgWR2OGlspRhkV+C0lJ2xcnOxyOUBpc+EDA3l5pD8Ys0AQtD8c2lLh7LrhrkfBxCaYoGur6tScW2ntBWbiu3cuGf41V8santf9vk+X+DlaP0+VJ7LO5XpbICW1xeGAKxha5COSgXmAT8c6OMHVJcXiwzAWKWRNNqay8d7fTf0AZlvap0lIkrotbuIsCE99/xWP+GfFmJD5838Pj8sxAXwPndhZxF5FEsZZ7+RKe/htJSqbp72+aouMLlAQcEUEGW+4/AN08KHLHYF8SRiuHXzNVEXtK6l+kRT/1Jp7+GUifLHsukUOJF+eGiTF/hwA1cyl7qG1XfIuIZeYWn4R2aXwQaVOQVY63TP0Nbc9suDr0gFdh/07/Ev8+CyEsWfrNrPxd9xMhi5xEuior7vEu8DZ7SCH7FzmKL0x9DcWwRQJgSl2D8CFCr/ivRNd+Q4bErMXtprTBnjnX6PpQml24pTbFjgmkaEkBn73mutgAJYhOFSMEAmF+nqGDfqE0DEDEtpHlfYzlpdxobSseBuWt7qTi78AmIy1+lwTPxdUn6SXUbjv+Lfo3OoivCtZ9qKgwRPjuySLgS7uh/IphdeKkIpvFYp5GhNFfAhxq/Ofiu1+RTb40ybAHEs28i2wa0LbupzjK9NUEvNBFU0hBwXYBfVlNKm7xr/M3SKnDTeJnTyFCaLcHLmuxt9Xd5styLCroBniTftNOja3R8XIAGoFWRupNu1RUCSJjlNDK0ziga8FyEqSsK8BRKHV5psp
diff --git a/src/lib.rs b/src/lib.rs
index 4caaa9d..853035b 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -28,19 +28,21 @@ pub extern fn couchquickview() {
let (tx, rx) = mpsc::channel();
- for l in 0..lines.len() {
+ let len = lines.len();

Keybase proof

I hereby claim:

  • I am steveklabnik on github.
  • I am steveklabnik (https://keybase.io/steveklabnik) on keybase.
  • I have a public key whose fingerprint is 0D99 E203 DFFE 1D2F 7D0B 48D0 DAE7 17EF E942 4541

To claim this, I am signing this object:

@steveklabnik
steveklabnik / rustc_output.md
Last active August 29, 2015 14:20
Some output from rustc
$ uname -a
Linux warmachine 3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt7-1 (2015-03-01) x86_64 GNU/Linux
$ cat > hello.rs
fn main() {
    println!("Hello, world");
}
$ rustc hello.rs 
$ ls -alh
total 580K
fn remove_first<T:Eq + Clone>(i: T, v: Vec<T>) -> Vec<T> {
let index = v.iter().position(|x| *x == i);
let mut result = vec![];
if index != None {
if index.unwrap() > 0 {
result.extend(v[0 .. index.unwrap()].to_vec());
}
@steveklabnik
steveklabnik / new_toc.md
Created April 7, 2015 23:57
new trpl toc propsal

here's the rendered SUMMARY.md: https://github.com/steveklabnik/rust/blob/new_toc/src/doc/trpl/SUMMARY.md

Basically, the overall structure is this:

  • Getting Started - getting an environment up and running
  • Learn Rust - project-based learning the basics
  • Effective Rust - higher level concepts that lead to writing good rust
  • Syntax and Semantics - chunks of exactly what it sounds like
  • Nightly Rust - unstable stuff, a staging area for documenting features
  • Glossary - self-explanatory
@steveklabnik
steveklabnik / wc.rs
Created March 23, 2015 21:50
a little wc-like in rust
#![feature(collections)]
use std::io::prelude::*;
use std::fs::File;
use std::io::BufReader;
fn main() {
let args: Vec<String> = std::env::args().collect();
let filename = args[1].clone();