Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am sethlopezme on github.
  • I am sethlopez (https://keybase.io/sethlopez) on keybase.
  • I have a public key ASARj60WtsGiHtRNL8Xw4gUxU9T1zqojCzDawBTRfG51PAo

To claim this, I am signing this object:

@sethlopezme
sethlopezme / package.json
Last active April 12, 2018 15:21
Complete files for my article, Testing Hapi.js APIs. https://sethlopez.me/article/testing-hapi-js-apis
{
"name": "testing-hapi-js-apis",
"version": "1.0.0",
"license": "MIT",
"scripts": {
"test": "ava --verbose test.js"
},
"dependencies": {
"ava": "^0.16.0",
"hapi": "^15.1.1"
@sethlopezme
sethlopezme / common_mod.rs
Last active December 28, 2016 02:44
config/tests/common/mod.rs
#![feature(plugin)]
#![plugin(rocket_codegen)]
// use rocket::config;
use rocket::http::Method;
use rocket::testing::MockRequest;
extern crate config as lib;
#[test]
extern crate reqwest;
extern crate serde;
#[macro_use]
extern crate serde_derive;
extern crate serde_urlencoded;
use std::collections::HashSet;
use std::fmt;
use serde::Serializer;
#[derive(Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd)]
pub enum Scope {
Any,
Account,
Edit,
// ...
}
impl fmt::Display for Scope {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
@sethlopezme
sethlopezme / screencasting.md
Last active November 5, 2017 03:31
These are my notes and tips on screencasting.

Screencasting

These are my notes and tips on screencasting.

Tools

Mac