Skip to content

Instantly share code, notes, and snippets.

View deathbearbrown's full-sized avatar

Sue Lockwood deathbearbrown

  • Seattle, WA
View GitHub Profile

Command Line Basics

Rando Stuff

Find the full path of the folder you're in

pwd

Find your username on your machine

Greetings couchdb pals,
__
.'` `'.
/ \ _
; __.'` `'.
| .'` `'. \
; /Fauxton \ ;
\; UI ; |
| Redesign | ; _
; is live ;-./-_-` '-.
var five = require("johnny-five");
var Spark = require("spark-io");
var board = new five.Board({
io: new Spark({
token: "a81cf99a8c1fe45b74d749d521a32671eb443d5e",
deviceId: "53ff6f065067544840551187"
})
});
@deathbearbrown
deathbearbrown / ala.md
Last active February 10, 2016 15:54
ALA image specs
  • Official specs are 1920x880
  • Illustrations should generally complement our preference for wider as opposed to taller — approximately a 2:1 ratio — but don't let this strictly constrain you. Please refer to the images in our article archives for reference.
  • In terms of deliverables, we prefer SVG, but we can use raster files (tiff or jpg) if that is in keeping with your preferred workflow.

They also have color constraints, but we like things very colorful.

---
rules:
# Possible Errors
no-cond-assign:
- 2
- except-parens
no-console: 0
no-constant-condition: 1
@deathbearbrown
deathbearbrown / stuff.js
Last active March 1, 2016 18:29
What are the benefits of one of these over the other?
// Is there a benefit to one of these
Foobar.prototype = {};
Foobar.prototype.constructor = Foobar;
function Foobar() {};
Foobar.prototype.baz = function(){};
// over the other?
function Foobar() {};
var prototype = (Foobar.prototype = {}); //Base is an object that can be {}
prototype.constructor = Foobar;
var five = require("johnny-five");
var Tessel = require("tessel-io");
var board = new five.Board({
io: new Tessel()
});
board.on("ready", function() {
var button = new five.Button({
pin: "a0",
invert: true
});

Some docs I made for contributing documentation:

Using JS Doc

Any comments written with a comment block /** comment block **/ will get picked up by jsdoc. If you have comments you would like to make that don't show up in the documentation, use // comment.

Namespace docs are created by putting /** @namespace */ before the variable. Each key can be documented with a comment block that is broken down like this:

/**
@deathbearbrown
deathbearbrown / index.html
Created February 17, 2017 20:12
Test for visibility
<!DOCTYPE html>
<html>
<head>
<title>Bocoup: Screen Reading Visibility</title>
<style>
.hidden {
display: none;
}
.invisible {
visibility: hidden;
@deathbearbrown
deathbearbrown / accessibility.md
Last active April 27, 2017 20:33
Please be accessible, my dudes.

If you have images and you are showing them on the web using an <img> tag, you must ALWAYS include alt text.

If you are writing markdown, you have no excuse not to add alt text.

![Alt text right here buddy](src)

Doing this is lazy. You're better than that.

![](src)