Skip to content

Instantly share code, notes, and snippets.

View sbeckeriv's full-sized avatar
🐢
Horray another status box

becker sbeckeriv

🐢
Horray another status box
  • Death By Escalator
  • Seattle
  • 19:51 (UTC -07:00)
View GitHub Profile
@sbeckeriv
sbeckeriv / ex
Created September 19, 2016 16:04
example
I checked out your repo under examples folder in helix
$ ~/trash/helix/examples/case_transform[master]: pwd
/Users/becker/trash/helix/examples/case_transform
$ ~/trash/helix/examples/case_transform[master]: rustc --version
rustc 1.13.0-nightly (32571c05c 2016-09-17)
$ ~/trash/helix/examples/case_transform[master]: ruby --version
ruby 2.3.1p112 (2016-04-26 revision 54768) [x86_64-darwin15]
$ ~/trash/helix[master*]: cargo build --release
Compiling libc v0.2.11
@sbeckeriv
sbeckeriv / hell0.js
Created November 5, 2016 16:15
rust js
This file has been truncated, but you can view the full file.
// The Module object: Our interface to the outside world. We import
// and export values on it, and do the work to get that through
// closure compiler if necessary. There are various ways Module can be used:
// 1. Not defined. We create it here
// 2. A function parameter, function(Module) { ..generated code.. }
// 3. pre-run appended it, var Module = {}; ..generated code..
// 4. External script tag defines var Module.
// We need to do an eval in order to handle the closure compiler
// case, where this code here is minified but Module was defined
// elsewhere (e.g. case 4 above). We also need to check if Module
use diesel;
use diesel::prelude::*;
use diesel::pg::PgConnection;
use dotenv::dotenv;
use std::env;
use schema::inspections;
use schema::inspections::dsl::inspections as all_inspections;
use schema::places;
use schema::places::dsl::places as all_places;
#[derive(Serialize,Associations, Identifiable, Deserialize, Queryable, Debug, Clone)]
#[table_name = "places"]
#[has_many(inspections)]
pub struct Place {
pub id: i32,
pub name: String,
pub program_identifier: String,
pub description: Option<String>,
pub phone: Option<String>,
pub address: String,
macro_rules! externs {
( $( $x:ident ),* ) => {
$(
extern crate $x;
)*
};
}
externs![rocket, rocket_contrib, serde_json,
chrono, dotenv, postgres, r2d2,
@sbeckeriv
sbeckeriv / GIF-Screencast-OSX.md
Created October 26, 2017 16:22 — forked from dergachev/GIF-Screencast-OSX.md
OS X Screencast to animated GIF

OS X Screencast to animated GIF

This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.

Screencapture GIF

Instructions

To capture the video (filesize: 19MB), using the free "QuickTime Player" application:

becker@pop-os:~/trash/aha/aha-app$ cat ~/.config/kitty/kitty.conf
# vim:fileencoding=utf-8:ft=conf:foldmethod=marker
#: Fonts {{{
#: kitty has very powerful font management. You can configure
#: individual font faces and even specify special fonts for particular
#: characters.
# font_family monospace

Keybase proof

I hereby claim:

  • I am sbeckeriv on github.
  • I am sbeckeriv (https://keybase.io/sbeckeriv) on keybase.
  • I have a public key ASBmP80VqBAhitfvzJyE6V7dKVJDmDBuQcQPr4PYYTdy9Ao

To claim this, I am signing this object:

# vim:fileencoding=utf-8:ft=conf:foldmethod=marker
#: Fonts {{{
#: kitty has very powerful font management. You can configure
#: individual font faces and even specify special fonts for particular
#: characters.
font_family FiraCode-Regular
# bold_font auto
@sbeckeriv
sbeckeriv / tmux.md
Created May 30, 2019 17:27 — forked from andreyvit/tmux.md
tmux cheatsheet

tmux cheat sheet

(C-x means ctrl+x, M-x means alt+x)

Prefix key

The default prefix is C-b. If you (or your muscle memory) prefer C-a, you need to add this to ~/.tmux.conf:

remap prefix to Control + a