This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// http://csswizardry.com/2012/06/single-direction-margin-declarations/ | |
=font-size($sizeValue: 1) | |
font-size: ($sizeValue * 16) + px | |
font-size: $sizeValue + rem | |
=margin-top-rem($margin: 1.6) | |
margin-top: ($margin * 16) + px | |
margin-top: $margin + rem | |
=margin-right-rem($margin: 1.6) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Love rems | |
=font-size($sizeValue: 1) | |
font-size: ($sizeValue * 16) + px | |
font-size: $sizeValue + rem | |
// http://csswizardry.com/2012/06/single-direction-margin-declarations/ | |
// Could probably rewrite this into one mixin | |
=margin-right-rem($margin: 1.6) | |
margin-right: ($margin * 16) + px | |
margin-right: $margin + rem |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
framework 'AppKit' | |
module AppDelegate | |
extend self | |
def applicationDidFinishLaunching(notification) | |
voice_type = "com.apple.speech.synthesis.voice.GoodNews" | |
@voice = NSSpeechSynthesizer.alloc.initWithVoice(voice_type) | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Fairly safe way to visually hide content, but make it accessible to screen readers | |
.visually-hidden { | |
position: absolute; | |
left: -9999px; | |
height: 1px; | |
} | |
.mobile-offscreen { | |
@media screen and (max-width: 700px) { | |
@extend .visually-hidden; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// JGHypnosisView.m | |
// Hypnosister | |
// | |
// Created by Jon Gold on 25/11/2012. | |
// Copyright (c) 2012 Jon Gold. All rights reserved. | |
// | |
#import "JGHypnosisView.h" | |
#import <CoreMotion/CoreMotion.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Todo | |
alias todo='$EDITOR ~/.todo' | |
# Unix | |
alias tlf="tail -f" | |
alias ln='ln -v' | |
alias mkdir='mkdir -p' | |
alias ...='../..' | |
alias l='ls' | |
alias ll='ls -al' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// =funcs | |
// == clear (overrides clear to give clear fix) | |
clear(arg) | |
if arg is "fix" | |
&:before | |
&:after | |
content: " " | |
display: table | |
&:after | |
clear: both |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function handleScroll() { | |
$(window).scroll(_.throttle( | |
function(){ | |
radFunction(); | |
// needed to wrap this function call in an anonymous function | |
// to get things working. *shrug* | |
}, 300) | |
); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
^(\/\* line\s(\d+)|@media -stylus-debug)(.+)$\n |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# config/initializers/ | |
Mongoid::Document.send(:include, ActiveModel::SerializerSupport) | |
Mongoid::Criteria.delegate(:active_model_serializer, to: :to_a) |