Keybase proof
I hereby claim:
- I am sgharms on github.
- I am sgharms (https://keybase.io/sgharms) on keybase.
- I have a public key whose fingerprint is 3260 51D8 5BE7 BBD3 4663 932F 337A F45B E605 2DAF
To claim this, I am signing this object:
--- ----------------- ---- | |
Map Quick Explanation Link | |
--- ----------------- ---- | |
< <F1> Causes Netrw to issue help | |
<cr> Netrw will enter the directory or read the file |netrw-cr| | |
<del> Netrw will attempt to remove the file/directory |netrw-del| | |
<c-h> Edit file hiding list |netrw-ctrl-h| | |
<c-l> Causes Netrw to refresh the directory listing |netrw-ctrl-l| | |
<c-r> Browse using a gvim server |netrw-ctrl-r| | |
<c-tab> Shrink/expand a netrw/explore window |netrw-c-tab| |
{ "@context": { | |
"rdf": "http://www.w3.org/1999/02/22-rdf-syntax-ns#", | |
"rdfs": "http://www.w3.org/2000/01/rdf-schema#", | |
"owl": "http://www.w3.org/2002/07/owl#", | |
"express": "http://example.com/express#", | |
"defines": { | |
"@reverse": "rdfs:isDefinedBy" | |
}, | |
"propertyOf": { | |
"@id": "rdfs:domain", |
#!/usr/bin/env node | |
const fs = require('fs'); | |
const processFile = process.argv[2]; | |
const theStack = []; | |
let nestDepth = -1; | |
const applyMarks = textNode => { |
// This will open up a prompt for text to send to a console session on digital ocean | |
// Useful for long passwords | |
(function () { | |
var t = prompt("Enter text to be sent to console, (This wont send the enter keystroke)").split(""); | |
function f() { | |
var character = t.shift(); | |
var i=[]; | |
var code = character.charCodeAt(); | |
var needs_shift = "!@#$%^&*()_+{}:\"<>?~|".indexOf(character) !== -1 |
I hereby claim:
To claim this, I am signing this object:
The goal was to learn how to make a simple HTTP request in Swift using Swift 3 on Linux.
Obviously, this presents some logistical challenges but also is enlightening about the state of Swift as a language for general computing outside of the Apple tooling ecosystem. I got stumped and worked using only vim
and the available documentation.
layout | title | description | tags | ||
---|---|---|---|---|---|
default |
SQL Style Guide |
A guide to writing clean, clear, and consistent SQL. |
|
class User < ActiveRecord::Base | |
def key_is_valid? | |
... | |
end | |
end | |
# A "helper" | |
def user_key_is_valid?(user, params) | |
user.user_key == params[:user_key] |
add_pr_remotes () { | |
mv .git/config .git/config-orig | |
awk '/remote "origin"/ { | |
print $0 | |
getline; | |
print $0 | |
getline; | |
print $0 | |
print "\tfetch = +refs/pull/*/head:refs/remotes/origin/pr/*" | |
}1' .git/config-orig > .git/config |
At the end of the 10th year of the Trojan war, the Trojans found the beach bare of Greeks and only a towering Horse left behind. | |
The beseiged went to behold the effigy and showed it to their wary priest of Neptune, Laocoon, who said: | |
"I distrust Argives -- especially those bearing gifts." | |
But the horse was borne into the city's walls for it was believed to be safe. | |
But Ulysses Most clever of all the Argive JavaScript programmers knew how to abuse open prototypes. | |
He created a setTimeout() to be run after dark | |
The horse blesses the Trojans, the tamers of horses | |
The horse blesses the Trojans, the tamers of horses | |
The horse blesses the Trojans, the tamers of horses | |
The horse blesses the Trojans, the tamers of horses |