Skip to content

Instantly share code, notes, and snippets.

View 1egoman's full-sized avatar

Ryan Gaus 1egoman

View GitHub Profile
@1egoman
1egoman / README.md
Last active November 20, 2019 03:30
Vi Getting Started

Modes

Vi is a modal editor. When using the editor, the mode that you are in determines what the keys do. The three modes that are most important right away are "NORMAL" mode, "INSERT" mode, and "COMMAND" mode. NORMAL mode is the mode that you start in, and the mode that you will likely spend the majority of your time in. When in INSERT mode, text you type is inserted into the text document wherever your cursor is. When in COMMAND mode, your cursor is at the bottom of the screen at a prompt beginning with a colon (:) and you can execute commands that apply to the currently visible text document.

In NORMAL mode, press i to go into insert mode and : to go into command mode. In either INSERT

@1egoman
1egoman / example.json
Last active July 12, 2016 11:33
Biome Format Example
{
"VARIABLE_NAME": "default",
"ANOTHER": "multi word",
"LASTLY": ""
}
@1egoman
1egoman / README.md
Last active January 24, 2016 21:09
Timeclock Default Templates

Timeclock Default Templates (for timeclock report)

To install, put any of these inside of ~/.timeclock/templates/, and update .timecard.json to show reportFormat equal to the file name without an extension (for example, default).

@1egoman
1egoman / mongo_fragments.ex
Created December 30, 2015 00:39
Elixir MongoDB easy fragment bindings for Ecto
# Hey! Take note that the below is untested. This should be enough to steer one in the right direction, though.
defmodule MongoFragments do
import Ecto.Query
@doc """
Apply the custom query to the passed collection and return the query created.
This acts just like an `Ecto.Query.where` call (because it is internally).
"""
def where_custom(query, list) when is_list(list) do
@1egoman
1egoman / ideas.md
Last active November 29, 2015 19:34
Echoparser ideas

Moved to and

server {
listen 80 default_server;
listen [::]:80 default_server ipv6only=on;
index index.html index.htm;
# Make site accessible from http://localhost/
server_name localhost;
location ~ ^/ {
@1egoman
1egoman / keybase.md
Created June 18, 2015 12:32
keybase.md

Keybase proof

I hereby claim:

  • I am 1egoman on github.
  • I am rgausnet (https://keybase.io/rgausnet) on keybase.
  • I have a public key whose fingerprint is 9BCA 974E 112B 4CC7 43C1 578A A255 C2D6 FA67 4A6F

To claim this, I am signing this object:

@1egoman
1egoman / ch7.md
Last active August 29, 2015 14:19
Opportunity Assistance

Chapter 7 Opportunity

By Ryan

(I added a few comments to your code to make it a little more readable, btw)

// Kevin Atkinson
// Chapter 7 Opportunity

// include headers
@1egoman
1egoman / bryan.coffee
Created April 11, 2015 01:19
bryan nlp stuff
# variables to "replace"
vars =
value: 1
# split text and respond with arrays of
split = (raw, callback) ->
sync = []
async = []