Skip to content

Instantly share code, notes, and snippets.

View leostratus's full-sized avatar
⌨️
computering

Leo Stratus leostratus

⌨️
computering
View GitHub Profile
@leostratus
leostratus / gist:9905175
Last active August 29, 2015 13:57 — forked from cube-drone/gist:9903789
Angelina's edit of Curtis' script on basic usability for apps
5 Crucial Usability Tips for App Designers and Developers
----------------------------------
Hey, everyone. I'm Curtis Lassa, and I'm here to share some very simple
usability guidelines with you for application development.
By the end of this video, you should have a better understanding of how to design a UI that is intuitive and easy for your users to make sense of.
Let's begin by examining one of the fundamental pieces of applications on the web: hyperlinks. On a dekstop, it's much easier to be precise about where you want to click because your mouse cursor is small. You know what's not small? Our fingers. Relative to the pointer, of course. So, this means that when you're considering your application for touch-screen devices, you need to adapt accordingly.

Hi friends!

I am speaking at JSFest Oakland in December. They are paying their speakers. I am already paid by Mozilla to go speak, and we're also sponsoring, so it really doesn't make a lot of sense for me to accept this stipend. I think it would be inappropriate if I did.

I am turning my speaker fee into a sponsorship sum. If you or someone you know can't attend the event for financial reasons, I may be able to help.

Here is what you need to do:

  1. Draft an email to angelina@mozilla.com with [JSFest Help] in the subject. I get a lot of mail at that address, so this part if very important so I don't miss it.
JPM info console.log: fxdevtools_adapters: <<<<<< Sent to device
{"id":4,"method":"CSS.enable","params":{}}
JPM info console.log: fxdevtools_adapters: >>>>>> Received from device
{"error":{"code":-32000,"message":"DOM agent needs to be enabled first."},"id":4}
console.error:
Object
- code = -32000
- message = DOM agent needs to be enabled first.
JPM info Handler function DebuggerClient.requester request callback threw an exception: Error: 'getAll' request packet has no destination.
Stack: DebuggerClient.prototype.request@resource://gre/modules/devtools/dbg-client.jsm:667:1
AppActorFront.prototype.watchApps@resource://gre/modules/commonjs/toolkit/loader.js -> resource://gre/modules/devtools/app-actor-front.js:570:35
exports.AppManager.onConnectionChanged/<@resource://gre/modules/commonjs/toolkit/loader.js -> resource:///modules/devtools/webide/app-manager.js:112:9
DebuggerClient.requester/</<@resource://gre/modules/devtools/dbg-client.jsm:348:9
makeInfallible/<@resource://gre/modules/commonjs/toolkit/loader.js -> resource://gre/modules/devtools/DevToolsUtils.js:83:14
emit@resource://gre/modules/commonjs/toolkit/loader.js -> resource://gre/modules/commonjs/sdk/event/core.js:96:9
Request.prototype.emit@resource://gre/modules/devtools/dbg-client.jsm:1092:29
DebuggerClient.prototype.onPacket/<@resource://gre/modules/devtools/dbg-client.jsm:931:9
@leostratus
leostratus / gist:98086d6f1f0f23c6b39c
Last active August 29, 2015 14:13
Untitled BBS Collab Fiction
@leostratus
leostratus / gist:8e6eea4a3d5a84a99540
Created April 7, 2015 04:39
my-roommate-high-on-mushrooms
9:30:43 AM ROOMMATE: shrooms are fun
9:30:49 AM BEST FRIEND: yes, yes they are
9:30:55 AM ROOMMATE: http://www.livejournal.com/users/[redacted]
9:30:56 AM ROOMMATE: read
9:30:57 AM ROOMMATE: now
9:31:01 AM BEST FRIEND: k
9:31:04 AM ROOMMATE: tell me if that makes sense to you at all
9:32:41 AM BEST FRIEND: i totally understand.
9:32:44 AM BEST FRIEND: 110%
9:32:53 AM BEST FRIEND: sounds like you had a good time
@leostratus
leostratus / high-ppi-media-queries.css
Created August 27, 2012 20:48
Media Query w/all vendor prefixes required for high PPI devices (eg. Retina display iPhone 4)
@media only screen and (-webkit-min-device-pixel-ratio: 1.5),
only screen and (min--moz-device-pixel-ratio: 1.5),
only screen and (-o-device-pixel-ratio: 3/2),
only screen and (min-device-pixel-ratio: 1.5) {
/* High-res version of image assets go here */
}
@leostratus
leostratus / curl-tidy-xml
Created September 18, 2012 17:24
curl - command to retrieve tidy XML from an API endpoint in your terminal
curl -v -X GET "https://someAPIendpoint.com/?getStuff" | tidy -xml -utf8 -i
@leostratus
leostratus / html-entities.md
Created September 21, 2012 18:37
HTML Entities/HTML Escape Characters

Because somehow I always end up trolling the interwebs looking for a reference for these.

Symbol Code Entity Name
@leostratus
leostratus / fix-lion-postgres.sh
Created April 23, 2013 21:32
Moves your OS X default postgres binaries into an archive folder and symlinks the homebrew versions in place of them. Originally from http://nextmarvel.net/blog/2011/09/brew-install-postgresql-on-os-x-lion/
BREW_POSTGRES_DIR=`brew info postgres | awk '{print $1"/bin"}' | grep "/postgresql/"`
LION_POSTGRES_DIR=`which postgres | xargs dirname`
LION_PSQL_DIR=`which psql | xargs dirname`
sudo mkdir -p $LION_POSTGRES_DIR/archive
sudo mkdir -p $LION_PSQL_DIR/archive
for i in `ls $BREW_POSTGRES_DIR`
do
if [ -f $LION_POSTGRES_DIR/$i ]