Skip to content

Instantly share code, notes, and snippets.

duggi / 0_reuse_code.js
Last active Sep 9, 2015
Here are some things you can do with Gists in GistBox.
View 0_reuse_code.js
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console

Trello CSS Guide

“I perfectly understand our CSS. I never have any issues with cascading rules. I never have to use !important or inline styles. Even though somebody else wrote this bit of CSS, I know exactly how it works and how to extend it. Fixes are easy! I have a hard time breaking our CSS. I know exactly where to put new CSS. We use all of our CSS and it’s pretty small overall. When I delete a template, I know the exact corresponding CSS file and I can delete it all at once. Nothing gets left behind.”

You often hear updog saying stuff like this. Who’s updog? Not much, who is up with you?

This is where any fun you might have been having ends. Now it’s time to get serious and talk about rules.

Writing CSS is hard. Even if you know all the intricacies of position and float and overflow and z-index, it’s easy to end up with spaghetti code where you need inline styles, !important rules, unused cruft, and general confusion. This guide provides some architecture for writing CSS so it stays clean and ma

duggi / Spot the Hijack
Last active Feb 15, 2018 — forked from tiffanygwilson/Spot the Hijack
Spot the Hijack
View Spot the Hijack
(* Script to record and tag spotify tracks, by Lloyd Moore *)
(* Modified by Tiffany G. Wilson to resolve audio splitting issues, automate starting/stopping, and add recording customization *)
(* Modified by on 7/18/2014 -- replace slash with dashin new filename to prevent directory write errors *)
(* Snippets for controlling Spotify are from Johnny B on tumblr ( *)
(* The idea of using delayed tagging/filename updating is from a guest user on pastebin ( *)
(* The only thing to change in the script is the output format; you must change the file extension and the recording format to match *)
(* Run this script once a song you want to record is queued (stopped at beginning) or playing *)
(* Running the script will initiate hijacking, recording and audio playback *)
(* To stop script, pause Spotify or wait for album/playlist to end*)
(* To set id3 tags, use application Kid3 (
  • acorn
  • keel
  • timbers
  • roux
  • veloute
  • shred


duggi /
Last active Dec 19, 2015
Big Bad Goose LLC Public Ideas and Inventions



  1. markdown rich text widget

    • create a textarea that accepts markdown, with preview
    • that markdown will be converted to html
    • implement by including a single javascript and instrumenting html elements
  2. landing page generator

duggi / ascii-art
Last active Feb 20, 2018
ascii art
View ascii-art
________| |_______
\ | Big Bad Goose | /
\ | | /
/ |______________________________________| \
/________\| |/_______\
________| |_______
|\ | Big Bad Goose | /|

the basic steps to running a rails app

  1. git clone rails app
  2. rvm it to correct ruby/rails
  3. setup config/database.yml
  4. bundle install
  5. rake db:create
  6. rake db:migrate
View gist:936070

lets go ahead and use markdown in github wiki pages for now

the only elements we should need are:

  • h1, h2, h3
  • blockquote
  • p
  • pre
  • code
  • ul/ol
View Groupit Programming Test
-- Groupit Programming Test --
Given the data structure below, run through it and print
the name property of each member as a tree. Paste the code
at the bottom of this test, in the “Solution” section.
Note this data is presented as a javascript hash; feel free
to use the language of your liking, porting the data structure
as necessary. Spend up to an hour on the problem.
View CSS Utility Classes
# CSS Utility Classes
* used as 'base' classes to graft on some basic behaviour that we want
* normally the first value of the class attribute on an html element
* i use these the most, as other util classes have fallen away as mere html emulation classes