Skip to content

Instantly share code, notes, and snippets.

View fredsterss's full-sized avatar
🤔

Fred Stevens-Smith fredsterss

🤔
View GitHub Profile
{
".doc": "http://someurl.com",
".pdf": "http://someurl.com",
".ppt": "http://someurl.com"
}
{
"color_scheme": "Packages/Color Scheme - Default/Solarized (Dark).tmTheme",
"draw_white_space": "all",
"font_face": "monaco",
"font_size": 12.0,
"highlight_line": true,
"ignored_packages":
[
"SublimeLinter",
"Vintage",
@fredsterss
fredsterss / list.md
Last active August 29, 2015 14:05
List of software to install on new boxes
  • Google chrome
  • Alfred
  • 1password (+ extension)
  • Menumeters
  • Dropbox
  • Slack
  • nvAlt
  • Sublime Text
@fredsterss
fredsterss / notes.md
Created August 6, 2014 21:19
YC scaling miniconf notes

f-10 10-25 (max flat size)

  • feels really good at this size 25-60
  • 50+ reduced individual load, carrying less on shoulders, need external motivation

hero mode:

  • if I'm going to ask everyone to work hard, I have to work hardest
  • should step away and hire people
  • leader always cranking isn't helpful - not solving future problems
@fredsterss
fredsterss / colorblind.scss
Last active August 29, 2015 14:03
The code used to make Rainforest red-green colorblind compatible.
/**
* Colorblind styles for Rainforest
*
* @author Fred Stevens-Smith
* @copyright Cldrdr Inc. d/b/a Rainforest, 2014
*/
.colorblind {
$greenReplacement: #7F00FF;
$redReplacement: $orange;

Noobs guide to components.

Bro. component.io

Using components within an existing project

All components compile to a global build.js and build.css from the command line, so the only restriction on the framework you are using is that you can include those from the main template.

1. Install component

With node previously installed:

<label>
<input type="radio">
Do this
</label>
<label>
<input type="radio">
Or do this!
</label>
@fredsterss
fredsterss / loading.coffee
Created June 4, 2013 00:10
Elegant loading
# handle ajax events (loading and auth errors)
$(document).ajaxStart ->
settings = lines: 12, length: 6, width: 4, radius: 8, trail: 75, color: '#fff'
$('.loading-main').html new r.ui.spinner( settings ).spin().el
$('[data-section=logo]').addClass('loading')
$(document).ajaxStop ->
$('[data-section=logo]').removeClass('loading')
$(document).ajaxComplete (e, xhr, options) ->
r.errorHandler.handle(xhr)
it "calls response when a button is clicked", ->
spyOn @view, 'clickAction'
@view.$el.find('button.yes').click()
expect(@view.clickAction).toHaveBeenCalled()
initialize: (models, @options) ->
@.on 'all', (ev, route) ->
if route is 'activity'
console.log ev, route
return