Skip to content

Instantly share code, notes, and snippets.

View OscarGodson's full-sized avatar
:shipit:
Workin'

Oscar Godson OscarGodson

:shipit:
Workin'
  • CTO
  • Portland, OR
  • 21:18 (UTC -07:00)
View GitHub Profile
Can you see mine?
// How I've always written code
foo {
}
// How I see most C++ code
foo
{
}
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE keyboard PUBLIC "" "file://localhost/System/Library/DTDs/KeyboardLayout.dtd">
<!--
An OS X US keyboard layout file with the following customizations:
* Option-. ONE DOT LEADER ( ․ )
* Option-h UPWARDS WHITE ARROW ( ⇧ )
* Option-j UP ARROWHEAD ( ⌃ ) * Option-k OPTION KEY ( ⌥ )
* Option-l PLACE OF INTEREST ( ⌘ ) * Option-[ LEFT SINGLE QUOTATION MARK ( ‘ )
* Option-] RIGHT SINGLE QUOTATION MARK ( ’ )
* Shift-option-[ LEFT DOUBLE QUOTATION MARK ( “ )
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE keyboard PUBLIC "" "file://localhost/System/Library/DTDs/KeyboardLayout.dtd">
<!--Last edited by Ukelele version 2.1.10 on 2012-07-12 at 12:43 (EDT)-->
<keyboard group="0" id="5593" name="U.S. Custom" maxout="1">
<layouts>
<layout first="0" last="17" modifiers="f4" mapSet="16c"/>
<layout first="18" last="18" modifiers="f4" mapSet="984"/>
<layout first="21" last="23" modifiers="f4" mapSet="984"/>
<layout first="30" last="30" modifiers="f4" mapSet="984"/>
<layout first="194" last="194" modifiers="f4" mapSet="984"/>
@OscarGodson
OscarGodson / gist:4513993
Last active December 11, 2015 00:08 — forked from onzze/gist:4513970
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Scroll vertically</title>
<script type="text/javascript" src="http://www.queness.com/resources/html/scroll/js/jquery-1.3.1.min.js"></script>
<script type="text/javascript" src="http://www.queness.com/resources/html/scroll/js/jquery.scrollTo.js"></script>
@OscarGodson
OscarGodson / bigger-tumblr-videos.js
Created January 11, 2013 20:46
vimeo and youtube videos at 100% and resize on browser window resize too on tumblr blogs. patch to: http://oscargodson.com/posts/making-vimeo-videos-bigger-than-500px-on-tumblr.html
// MAKE SURE TO CHANGE "container" to the name of the ID of the container that's
// 100% width you want the video to fit in
var resizeVideos = function () {
console.log('resized')
var iframes = document.body.getElementsByTagName('iframe')
, newVimeoWidth = document.getElementById('container').offsetWidth
, newVimeoHeight = 'auto';
console.log(newVimeoWidth)
for(x in iframes){
if(iframes[x].src && iframes[x].src.indexOf('player.vimeo.com') > -1 ||
@OscarGodson
OscarGodson / why.md
Created January 10, 2013 22:34
The reasons I can't use the web client on Twitter.com

I wish I could use the web client. I prefer web apps to desktop apps any day. I use a web email + calendar client. I use New Myspace and Spotify's web client. I use Yammer's web client and hell, if there was a web based Vim editor, I'd use that. Twitter's web app is just missing way too much right now:

  1. No multiple account support
  2. Can't drag and drop photos into your message
  3. No browser notifications (yes, I can use OS X's built in notification system, but clicking on a notification takes me to a new browser tab which isn't a good experience at all.)
  4. I can't leave my twitter timeline open to the left of my screen while working because the timeline isn't a responsive layout (http://twitpic.com/bu4e7y)
  5. DMs are hidden away and janky. It takes 2 clicks of full page loads (or feels that slow) just to see the list of them and then they show up. Sometimes I wont see my messages to people and vice versa.
  6. The tabs don't light up when I do get notifications
  7. The feed isn't realtime. Saying "you have
@OscarGodson
OscarGodson / wat.md
Created January 7, 2013 20:09
response from a w3c contributor (i think). This was a piece of a very long email I got back to my proposal. What have I gotten myself into... I just want to talk about making HTML better.

The remainder of this letter broaches a reaction to your claim that "the web is moving towards a giant app store and we need to embrace it" and presents an invitation to additionally participate in the Web Philosophy Community Group.

In the context of digital documents, books and textbooks, when I hear app store, I think about concerns; concerns that the public may have. Concerns about syndicates, quasi-government organizations, nationalist agendas, and conspiracies reaching into the highest levels of government.

Some Americans have concerns that all but political scientists are underinformed about what some bureaucrats' agendas might be with regard to the Web, behind a facade of some telepersonable Democrats in the White House. The current administration presides over an almost Ford-era executive branch which includes new organizations forged on an anvil of fascism with a hammer of terror.

In the current political climate, in the present day United States of America, some allege that there exist vario

"There is no sharp line between speculation, hypothesis, theory, principle, and fact, but only a difference along a sliding scale, in the degree of probability of the idea. When we say a thing is a fact, then, we only mean that its probability is an extremely high one: so high that we are not bothered by doubt about it and are ready to act accordingly. Now in this use of the term fact, the only proper one, evolution is a fact."

  • Muller, H. J.

I agree only a small percentage care about privacy settings. The majority probably just wants "private" or "public". I also agree it's fine to piss off a small percentage of users. This has absolutely nothing to do with that. My problem is, if only a small percentage of users care about privacy why dont they keep the controls simple like Twitter? Private or public. It keeps it simple and makes engineering FB even easier. "Is user set to private?" would be the only thing they need.

They do it so, for the people who want they're profile private (which a lot of users have at least part of their profiles private), they can circumvent it. For example:

  • Personal info privacy
  • Pictures Privacy
  • Timeline Privacy
  • Some other feature privacy

Now, for example, 2 months later they add some feature that automatically posts everything they read into people's ticker without notice. Most people for one wouldnt even know, but the issue is the people who set they're profile private now all of a sudden have data about th