Skip to content

Instantly share code, notes, and snippets.

View davidpett's full-sized avatar
👨‍🏫
full-time contract at Marriott

David Pett davidpett

👨‍🏫
full-time contract at Marriott
View GitHub Profile
@davidpett
davidpett / SassMeister-input.scss
Created June 3, 2014 21:10
Generated by SassMeister.com.
// ----
// Sass (v3.3.7)
// Compass (v1.0.0.alpha.18)
// ----
@import "compass/css3";
.something {
@include transform(translate3d(-50%));
}
@davidpett
davidpett / SassMeister-input.scss
Created August 14, 2014 15:20
Generated by SassMeister.com.
// ----
// Sass (v3.4.0.rc.3)
// Compass (v1.0.0.rc.1)
// ----
.btn {
background: #ff0000;
&--small {
font-size: 1em;
@davidpett
davidpett / SassMeister-input.scss
Created August 15, 2014 17:38
Generated by SassMeister.com.
// ----
// Sass (v3.4.0.rc.3)
// Compass (v1.0.0.rc.1)
// ----
%btn {
background: #ff0000;
}
.btn {
@davidpett
davidpett / button.hbs
Last active August 29, 2015 14:06
assemble.io component nesting
---
component: button
---
<a href="{{href}}">{{title}}</a>

Keybase proof

I hereby claim:

  • I am davidpett on github.
  • I am davidpett (https://keybase.io/davidpett) on keybase.
  • I have a public key whose fingerprint is 0BB2 E157 A90E AF28 BDAC 7B5A 4B62 03AC 7840 6BCB

To claim this, I am signing this object:

@davidpett
davidpett / _ease.scss
Created October 22, 2014 16:53
SCSS variables for the Penner Easing Equations
/*
* Easing Equations ported to CSS by @matthewlein - http://matthewlein.com/ceaser/
* Converted to SCSS vars by @pettpett
*
* sample usage:
* a {
* color: #ff0000;
* @include transition(color 0.5s $easeOutQuint);
* &:hover,
* &:focus {
'.source.scss':
'bp-load':
'prefix': 'bp'
'body': '@include bp(\'${1:base}\') {\n\t$2\n}'
/*
* Working authentication with
* Firebase 2.0.x + Ember.js 1.8.1 + Ember Data Canary + EmberFire 1.3.0 + Ember CLI
* works for me! [email protected]
*
* Note: this assumes you've set up login on your Firebase,
* only handles Google and Facebook for now,
*
* In your templates: <button {{action 'login' 'google'}}>Log in with Google</button>
*/
@davidpett
davidpett / init.coffee
Last active September 2, 2015 17:17
override tab longTitle in atom editor
path = require 'path'
{TextEditor} = require 'atom'
TextEditor::getLongTitle = ->
if sessionPath = @getPath()
fileName = path.basename(sessionPath)
directory = atom.project.relativize(path.dirname(sessionPath))
directory = if directory.length > 0 then directory.split('/').pop() else path.basename(path.dirname(sessionPath))
"#{directory}/#{fileName}"
else
'untitled'
import DS from 'ember-data';
export default DS.RESTSerializer.extend({
normalizePayload(payload) {
payload.rooms.forEach((item) => {
item.links = {
meetings: `/url-to-meetings/${item.id}}`
};
});
return payload;