Skip to content

Instantly share code, notes, and snippets.

sethlopezme /
Last active Nov 5, 2017
These are my notes and tips on screencasting.


These are my notes and tips on screencasting.



#[derive(Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd)]
pub enum Scope {
// ...
impl fmt::Display for Scope {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
extern crate reqwest;
extern crate serde;
extern crate serde_derive;
extern crate serde_urlencoded;
use std::collections::HashSet;
use std::fmt;
use serde::Serializer;
sethlopezme /
Last active Dec 28, 2016
// use rocket::config;
use rocket::http::Method;
use rocket::testing::MockRequest;
extern crate config as lib;
sethlopezme / package.json
Last active Apr 12, 2018
Complete files for my article, Testing Hapi.js APIs.
View package.json
"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"

Keybase proof

I hereby claim:

  • I am sethlopezme on github.
  • I am sethlopez ( on keybase.
  • I have a public key ASARj60WtsGiHtRNL8Xw4gUxU9T1zqojCzDawBTRfG51PAo

To claim this, I am signing this object:

View package.json
"dependencies": {
"jshint": "latest",
"uglifyjs": "latest",
"watch": "latest"
"config": {
"github_url": "",
"maps_url": "",
sethlopezme / keymap.cson
Last active Oct 8, 2020
My Atom keymap for focusing and splitting panes, and moving pane items. Based on the shortcuts from the Origami ( package for Sublime Text.
View keymap.cson
# focus pane
'cmd-k left': 'window:focus-pane-on-left'
'cmd-k right': 'window:focus-pane-on-right'
'cmd-k up': 'window:focus-pane-above'
'cmd-k down': 'window:focus-pane-below'
# split pane
'cmd-k cmd-left': 'pane:split-left'
'cmd-k cmd-right': 'pane:split-right'
'cmd-k cmd-up': 'pane:split-up'
sethlopezme / full-match.js
Last active Jan 5, 2021
Regex for matching any hex, rgb(a), or hsl(a) value. Assumes that you've lowercased the string and removed spaces.
View full-match.js
sethlopezme /
Last active Aug 29, 2015 — forked from jxson/ template


At the top of the file there should be a short introduction and/ or overview that explains what the project is. This description should match descriptions added for package managers (Gemspec, package.json, etc.)

Code Example

Show what the library does as concisely as possible, developers should be able to figure out how your project solves their problem by looking at the code example. Make sure the API you are showing off is obvious, and that your code is short and concise.