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
alias be='bundle exec' | |
alias bi='bundle install' | |
alias esl='ember serve --environment=local' | |
alias gb='git branch' | |
alias gc='git checkout' | |
alias gcm='git checkout master' | |
alias gcp='git cherry-pick' | |
alias gp='git pull' |
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
import React, { Component } from 'react' | |
import ReactCSSTransition from 'react-addons-css-transition-group' | |
import cn from 'classnames' | |
import style from './style.css' | |
import buttons from '../App/buttons.css' | |
export default class HypnoView extends Component { | |
constructor () { | |
super() |
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
// convert all files from scss to sass syntax | |
sass-convert -R . -F scss -T sass | |
// delete all unnecessary *.scss files | |
find . -name "*.scss" -type f -delete |
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
$header-padding: 5px | |
.section-header | |
background: whitesmoke | |
border-bottom: solid 1px $gray-border | |
padding: 15px 0 | |
h1, h2, h3, h4 | |
display: inline-block | |
font-family: museo-slab, serif |
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
$.fn.extend renameAttr: (name, newName, removeData) -> | |
val = undefined | |
@each -> | |
val = $.attr(this, name) | |
$.attr this, newName, val | |
$.removeAttr this, name | |
# remove original data | |
if removeData isnt false | |
$.removeData this, name.replace("data-", "") |
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
$body = $("body") | |
$body.attr "data-#{winH}", $body.attr("data-intro") | |
$body.removeAttr "data-intro" | |
for i in [1..8] | |
$body.attr "data-#{win2 * i}", $body.attr("data-section-#{i}") | |
$body.removeAttr "data-section-#{i}" |
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
/** | |
* The first commented line is your dabblet’s title | |
*/ | |
body { | |
color: #111; | |
padding: 24px 0; | |
} |
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
/** | |
* The first commented line is your dabblet’s title | |
*/ | |
body { | |
background: #2c2c2c url(http://daviddiamante.com.s90854.gridserver.com/wp-content/uploads/2011/12/grey_texture_1.jpg) repeat; | |
color: #111; | |
padding: 24px 0; | |
} |