Skip to content

Instantly share code, notes, and snippets.

View Technius's full-sized avatar

Bryan Tan Technius

  • Veridise, Inc.
  • United States
View GitHub Profile
@nix { "action": "setPhase", "phase": "unpackPhase" }
unpacking sources
unpacking source archive /nix/store/zjdbxzj9sm5a22jb50hj3c07nlsc70mv-source
source root is source
@nix { "action": "setPhase", "phase": "patchPhase" }
patching sources
@nix { "action": "setPhase", "phase": "configurePhase" }
configuring
renamed '/build/tmp.z3IxkHVn9X/f/.packages' -> './.packages'
renamed '/build/tmp.z3IxkHVn9X/f/.flutter-plugins' -> './.flutter-plugins'
@Technius
Technius / main.rs
Created April 22, 2019 23:57
Asynchronous process I/O in Rust using tokio
// This code sample needs the dependencies:
// tokio = "0.1"
// tokio-process = "0.2"
use tokio::prelude::*;
use std::process::{Command, Stdio};
use tokio_process::CommandExt;
use std::time::Duration;
fn main() {
@Technius
Technius / main.rs
Created April 2, 2017 22:11
iron-sessionstorage sub path cookie bug
extern crate iron;
extern crate mount;
extern crate router;
extern crate iron_sessionstorage;
use iron::prelude::*;
use iron_sessionstorage::SessionRequestExt;
use iron_sessionstorage::SessionStorage;
use iron_sessionstorage::backends::SignedCookieBackend;
@Technius
Technius / ApiResult.scala
Last active March 23, 2017 06:35
Note Service in Akka-HTTP
package example
sealed trait ApiResult
object ApiResult {
/* Returns all notes */
case class ListNotes(notes: Seq[Note]) extends ApiResult
/* Returns a specific note found */
case class FoundNote(note: Note) extends ApiResult