Skip to content

Instantly share code, notes, and snippets.

View Robert-Wett's full-sized avatar
🙌

Rob Wettlaufer Robert-Wett

🙌
  • Los Angeles, CA
  • 20:20 (UTC -08:00)
View GitHub Profile
@Robert-Wett
Robert-Wett / hi.js
Last active August 29, 2015 14:13
Object.defineProperty
function OnceNamedOne(first, last) {
var _firstName = first
, _lastName = last;
Object.defineProperty(this, "firstName", {
get: function() {
return _firstName;
},
set: function(value) {
_firstName = value;
@Robert-Wett
Robert-Wett / KServerCall.js
Last active August 29, 2015 14:11
LogWatcher
var mongoose = require('mongoose')
, kserverCallSchema
, KServerCall;
kserverCallSchema = new mongoose.Schema({
baseType: { type: String, required: true},
classLibrary: { type: String, required: true},
classObject: { type: String, required: true},
methodName: { type: String, required: true},
@Robert-Wett
Robert-Wett / Command_And_Output.md
Last active August 29, 2015 14:09
Beginning Test
casperjs test .\ACA-test.js --env=qa --user=siteadmin
PS G:\Casperjs> Test file: .\ACA-test.js
#
siteadmin should see specific links in the "Training" admin portlet
Logging in as user: siteadmin
    -----> Logged in, loaded Training Home
    -----> Loaded Administration Console
PASS User has link to manage external learning
PASS User has link to manage external learning types
@Robert-Wett
Robert-Wett / ExpressionParser.java
Last active August 29, 2015 14:09
BeginningJavaExpressionParser
import java.util.*;
public class ExpressionParser {
private final static List<String> numList = Arrays.asList("1", "2", "3", "4", "5", "6", "7", "8", "9", "0");
private final static List<String> opList = Arrays.asList("*", "/", "+", "-", "^");
public static void main(String[] args) {
evalExpression("((1024^2)*5)");
}
@Robert-Wett
Robert-Wett / README.md
Last active January 11, 2016 17:40
Band Name Generator

##Band Name Generator You need a unique, eye-catching band name to stand apart from the masses. We got that band name for you player - refresh until you find the perfect name that says "Yeah, whatever, we're a band".

##Why I read an AMA on reddit by pornhub recently where they linked live porn searches. A subsequent comment was how it would make good band names, and I thought it was funny.

##How Look at the code to see how simple it is (one liner) - makes a request to a live stream of porn searches and randomly picks between the seed of 200 entries returned

@Robert-Wett
Robert-Wett / keybase.md
Created September 22, 2014 16:23
keybase.md

Keybase proof

I hereby claim:

  • I am Robert-Wett on github.
  • I am robwett (https://keybase.io/robwett) on keybase.
  • I have a public key whose fingerprint is E61C 230E 91C6 8E65 A45F AEA3 FCCA 96D0 223B 08B0

To claim this, I am signing this object:

@Robert-Wett
Robert-Wett / ClickMe.html
Last active August 29, 2015 14:04
Click That Circle!
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<link href="http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css" rel="stylesheet">
<title></title>
<script src="http://d3js.org/d3.v3.min.js"></script>
<script src="http://cdnjs.cloudflare.com/ajax/libs/underscore.js/1.6.0/underscore-min.js"></script>
</head>
<body>
@Robert-Wett
Robert-Wett / terminalAceVim.js
Created June 12, 2014 20:10
Enable ACE/VIM for terminal.com
ace.require("ace/lib/net").loadScript("https://rawgithub.com/ajaxorg/ace-builds/master/src-min-noconflict/keybinding-vim.js",
function() {
e = document.querySelector(".ace_editor").env.editor;
e.setKeyboardHandler(ace.require("ace/keyboard/vim").handler);
})
@Robert-Wett
Robert-Wett / python_irc_fun.py
Last active August 29, 2015 14:02
rainbowzzzz!
# Print an IRC rainbow!
# http://i.imgur.com/GkKfH44.png
# Py 3
[print("\x03%d%s" % (x, y), end=" ") for x, y in list(zip(range(2, 2+len("rainbow")), "rainbow")]
# Py 2
for x, y in zip(range(2, 2+len("rainbowzzzz")), "rainbowzzzz"): print ("\x03%d%s" % (x, y)),
@Robert-Wett
Robert-Wett / README.md
Last active August 29, 2015 14:00
ng-subredditviewer formatted for bl.ocks.org

#Pulling From Reddit Just pulling the jsonp results from a specified subreddit and displaying the top level entries as links. You can add comments on each of the entries, but there's no backend persistence so they'll be wiped out on refresh.

###Example

example