Skip to content

Instantly share code, notes, and snippets.

View geluso's full-sized avatar
🌒

Steve Geluso geluso

🌒
View GitHub Profile
@geluso
geluso / 05-cipher-grading-a.md
Last active July 18, 2018 19:48
05-cipher-grading A

Total: 3 points. None of the ciphers are implemented, class properties and methods placed inside classes incorrectly and non-functionally, no tests.

InaccessibleObjectException

Hm, I've never seen InaccessibleObjectException before. Where did you get the idea to use this? Also, I don't see anything inside the try block that would possible cause an exception. Checking an int with == and printing things are basically impossible to fail.

I looked it up and it looks like a Java 9 thing. You'll have to show me how it

version: "2"
services:
web:
build: .
volumes:
- .:/code
volumes:
- .:/app
ports:
- "3000:3000"

Configure Wineskin for Starcraft Broodwar OSX 10.12

I had trouble running Starcraft Broodwar on OSX 10.12 Sierra. My games were extremely choppy, even in offline single player mode. I found these steps to configure the registry editor for the game and everything works much better!

Everything was derived from steps found here. I'm creating this Gist for my own posterity:

@geluso
geluso / url-encode.js
Created September 5, 2016 16:58
URL Encode
// Write a function called urlEncode that accepts two parameters:
// 1. a string representing a URL
// 2. an optional object containing key value pairs
// The function should return a URL with a well-formatted query string.
// If `params` is undefiend simply return the url.
// The url and the beginning of the parameters should be separated with a questions mark `?`
// Every parameter after the first should be separated with an ampersand `&`
function urlEncode(url, params) {
// TODO: implement this function
}
@geluso
geluso / search-results.js
Created September 5, 2016 02:33
reddit image search results
var results = {"kind": "Listing", "data": {"facets": {}, "modhash": "", "children": [{"kind": "t3", "data": {"domain": "self.IAmA", "banned_by": null, "media_embed": {}, "subreddit": "IAmA", "selftext_html": "<!-- SC_OFF --><div class=\"md\"><p>Hi reddit. A little bit about each of us:</p>\n\n<ul>\n<li><p>Matthew: I'm the creator of The Oatmeal. </p></li>\n<li><p>Elan: I am Elan Lee, as of 30 days ago I make card games for a living.</p></li>\n<li><p>Shane: I was denied from being an 'In living color' Fly dancer because they said, and I quote, 'I Could pop but not lock'</p></li>\n</ul>\n\n<p>And we're the creators of "Exploding Kittens," the card game for people who are into kittens and explosions and laser beams and sometimes goats.</p>\n\n<p>There\u2019s about an hour left to get it here:<a href=\"https://www.kicks