Skip to content

Instantly share code, notes, and snippets.

View ChaeOkay's full-sized avatar

Chae O'Keefe ChaeOkay

View GitHub Profile
class Vehicle
def initialize(args)
@color = args[:color]
@wheels = args[:wheels] || 4
@radio = args[:on]
end
def drive
@status = :driving
end
class Vehicle
def initialize(args)
@color = args[:color]
@wheels = args[:wheels] || 4
@radio = args[:on]
end
def drive
@status = :driving
end
@ChaeOkay
ChaeOkay / form-validator.js
Last active December 21, 2015 03:29 — forked from ksolo/form-validator.js
Form Validation
function Validator(){
this.errors = [];
this.valid = true
};
Validator.prototype.eval_input = function(input, format, message){
if (input.match(format) == null ){
this.errors.push(message);
this.valid = false;
}
@ChaeOkay
ChaeOkay / index.html
Last active December 22, 2015 02:18 — forked from dbc-challenges/index.html
DBC Phase 2 Practice Assessment Part 3
<!doctype html>
<html>
<head>
<link rel="stylesheet" href="http://cdn.jsdelivr.net/normalize/2.1.0/normalize.css">
<link rel="stylesheet" href="main.css">
<link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700,800">
<link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Lato:100,900">
<link rel="stylesheet" href="http://cdnjs.cloudflare.com/ajax/libs/font-awesome/3.0.2/css/font-awesome.min.css">
</head>
@ChaeOkay
ChaeOkay / app.js
Created August 13, 2015 20:44
compute and insert image
$('#editor').on('keydown', e => {
if(!(e.which === 13 && e.metaKey)){ return }
let{ start, end} = editor.getSelection()
let expr = editor.getText(start, end)
docChan.push("compute_img", {expr, start, end})
console.log("cmd-enter")
})
@ChaeOkay
ChaeOkay / 1_ssh_to_vm.md
Last active June 8, 2016 13:15
Notes learning how to ssh into a remote vm using command line

Goal: using the command line, ssh into a remote vm that is running a linux os.

How can I try ssh-ing into a remote vm using linux distro?

Can I use Herkou? - not easily.

Can I use another web server hosting site? yes - Digital Ocean, I think droplet

Is it free? no - asked Stafford about discount code, but I haven’t done the the math and it could be inconsequential

@ChaeOkay
ChaeOkay / Koamojis.txt
Last active June 14, 2022 12:43
Favorite Japanese emoticons
ʕ ཀ ᴥ ཀ ʔ
༼ ༎ຶ ෴ ༎ຶ༽
ヾ(-_- )ゞ
(༎ຶ⌑༎ຶ)
(⊙_⊙)
\(^∀^)メ(^∀^)ノ
(っ˘ڡ˘ς)
/ᐠ.ꞈ.ᐟ\
▼・ᴥ・▼
。・:*:・゚★,。・:*:・゚☆ 
# @return [Array<String>]
def gem_paths
Gem.path.flat_map { |path| Dir.glob("#{path}/gems/*") }
end
# @param [String] gem_name
# @return [Boolean]
# @raise [LoadError]
def require_gem(gem_name)
if defined?(::Bundler)