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
.setColumnWidths(@maxcolumns, @num_cols, @min_resolution){ | |
@media screen and(min-width: @min_resolution) { | |
.row { | |
.onecol { | |
width: percentage(~`Math.min(1, (1 / @{num_cols}*Math.ceil(@{num_cols}*1/@{maxcolumns})))`); | |
} | |
.twocol { | |
width: percentage(~`Math.min(1, (1 / @{num_cols}*Math.ceil(@{num_cols}*2/@{maxcolumns}))) `); | |
} | |
.threecol { |
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
// https://gist.github.com/854622 | |
(function(window,undefined){ | |
// Prepare our Variables | |
var | |
History = window.History, | |
$ = window.jQuery, | |
document = window.document; | |
// Check to see if History.js is enabled for our Browser |
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
CheckboxableArrayMixin = Ember.Mixin.create | |
allSelected: false | |
selectedItems: Ember.computed.filterBy("", "selected", true) | |
selectedItemsCount: Ember.computed.alias("selectedItems.length") | |
isEmpty: Ember.computed.not(@get("model")) |
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
### | |
Failure of mankind | |
girlfriend.coffee | |
@author Sean | |
@note Created on 2014-11-22 by Sean Goresht | |
@note uses Codoc | |
@see https://github.com/coffeedoc/codo |
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 Ember from "ember"` | |
DashboardRoute = Ember.Route.extend( | |
beforeModel: (transition) -> | |
loginController = @controllerFor("login") | |
unless loginController.get("isLoggedIn") | |
loginController.setProperties({ | |
loginFailed: true | |
attemptedTransition: transition | |
}) |
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 Ember from "ember"` | |
FormActionsComponent = Ember.Component.extend( | |
save: null | |
classNames: "form-actions", | |
model: null | |
redirectRoute: "admin" | |
icon: "save" | |
iconClassName: (-> | |
"icon-#{@get("icon")}" |
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
use("camelize.js") | |
directions = top left bottom right | |
properties = margin padding | |
proportions = mini small normal medium large | |
positions = fixed absolute static relative |
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
displays = block inline-block inline table | |
derps = me myMom myDad smurffy | |
generatePlaceholder(display, displays) | |
generatePlaceholder(derp, derps) | |
body | |
@extend $block | |
@extend $smurffy |
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
properties = margin padding | |
proportions = mini small normal medium large | |
directions = top left bottom right | |
$smallmargintop = 1.3em | |
for property in properties | |
for proportion, i in proportions |