Skip to content

Instantly share code, notes, and snippets.

View albatrocity's full-sized avatar

Ross Brown albatrocity

  • Kansas City, KS
  • 18:25 (UTC -05:00)
View GitHub Profile
@albatrocity
albatrocity / example-usage.liquid
Created August 4, 2020 19:40
Liquid snippet for assigning a secure Imgix URL given an existing image URL. For use with Imgix Web Proxy sources.
{%- assign shopify_image_url = product.images.first | product_img_url: '1200x' -%}
{%- include 'imgix-img' img_url: shopify_image_url, params: "h=630&w=1200&fit=fill&fill-color=white", is_secure: true -%}
<meta property="og:image" content="{{ imgixImagePath }}">
<img src="{{ imgixImagePath }}" />

Introduction

What is sound?

  • Vibrations at audible frequencies
  • Push and pull of air: oscillations
  • Hz is measurement of cycles (oscillations) per second
  • Sound waves have physical size: speed of sound = 1125.328 feet per second. 100hZ = 11 ft long

Keybase proof

I hereby claim:

  • I am albatrocity on github.
  • I am rosscbrown (https://keybase.io/rosscbrown) on keybase.
  • I have a public key ASBsRagW9rnmrB0dGcIa3-ZO1J2jjSgQaMyNgHS4xKJpYQo

To claim this, I am signing this object:

@albatrocity
albatrocity / chromatic_scale.coffee
Last active December 24, 2015 10:19
A simple sequencer for the HTML5 Audio API. Notes, rests, and durations only with configurable tempo.
# Full chromatic scale with frequencies
chromatic_scale =
"C0" : 16.35
"C#0": 17.32
"Db0": 17.32
"D0" : 18.35
"D#0": 19.45
"Eb0": 19.45
"E0" : 20.60
@albatrocity
albatrocity / contingent_fieldset.coffee
Created November 5, 2012 19:53
Misc. form UI utilities in coffeescript
# Toggles element visibility and nested values based on another elements state
class ContingetFieldset
constructor: (options) ->
@container = $("#{options.container}")
@changer = $("#{options.changer}")
@trigger = $("#{options.trigger}")
@must_be = options.must_be
@event = options.event || 'change'
@albatrocity
albatrocity / button.css.scss
Created March 13, 2012 16:09
Mixin for Embossed button using shadows
@mixin shadow-button($background-color, $text-color) {
background: $background-color;
@include box-shadow(transparentize(darken($background-color, 40%), .8) 0 -20px 15px inset, transparentize(#fff, .9) 0 2px 1px inset, transparentize(#000, .8) 0 0 1px);
@include border-radius(4px);
@include inline-block;
border: 1px solid darken($background-color, 20%);
@include text-shadow(transparentize(darken($background-color, 30%), .3) 0 1px 1px );
color: $text-color;
@include transition-property("box-shadow, background, color");
@include transition-duration(.1s);
@albatrocity
albatrocity / git-version-control.markdown
Created September 7, 2011 17:28
Some basic Git instructions for Github for Mac and the command line

Using Git version control for code projects

Creating a new code repo from a local working copy

  1. From the repositories view in the app, drag the project folder to the bottom of the left sidebar.
  2. Hit "Yes" when it asks if you want to create a local git repository
  3. Go to "Changes" view (⌘2)
  4. Select the files that you want to commit their current state to the repository. You can view the changes of the file by clicking on the double up arrow on the file name bar.