I hereby claim:
- I am iamjohnlong on github.
- I am rangafangs (https://keybase.io/rangafangs) on keybase.
- I have a public key whose fingerprint is 5E27 DDCA 7D75 C0AE 9F42 0572 683F 4192 3282 C09C
To claim this, I am signing this object:
| bootstrap-tooltip.js | |
| bootstrap-popover.js | |
| bootstrap-alert.js | |
| bootstrap-button.js | |
| bootstrap-carousel.js | |
| bootstrap-collapse.js | |
| bootstrap-dropdown.js | |
| bootstrap-modal.js | |
| bootstrap-scrollspy.js | |
| bootstrap-tab.js |
| .img-grad( | |
| @color: "#fff", | |
| @bgimg: "..", | |
| @pos: 50% 50%, | |
| @repeat: repeat, | |
| @begin: #fff, | |
| @end: #000, | |
| ) { | |
| /* browsers without support for multiple bgs */ | |
| background: @color @bgimg @pos @repeat; |
| $list: add edit remove details | |
| =action-list | |
| @each $action in $list | |
| .#{$action}-icon | |
| background: url('#{$action}-info.png') no-repeat | |
| +action-list |
| ##Userable | |
| module Userable | |
| def self.included(base) | |
| base.has_one :user, :as => :userable, :dependent => :destroy, :autosave => true | |
| base.validate :user_must_be_valid | |
| base.alias_method_chain :user, :autobuild | |
| base.extend ClassMethods | |
| base.define_user_accessors | |
| end | |
| /* http://meyerweb.com/eric/tools/css/reset/ | |
| v2.0 | 20110126 | |
| License: none (public domain) */ | |
| html, body, div, span, applet, object, iframe, | |
| h1, h2, h3, h4, h5, h6, p, blockquote, pre, | |
| a, abbr, acronym, address, big, cite, code, | |
| del, dfn, em, img, ins, kbd, q, s, samp, | |
| small, strike, strong, sub, sup, tt, var, | |
| b, u, i, center, |
| $turquoise: #1ABC9C | |
| $green-sea: #16A085 | |
| $emerland: #2ECC71 | |
| $nephritis: #27AE60 | |
| $peter-river: #3498DB |
| # I have a hash `dates` that I get from "DateTime.now - 7, DateTime.now" in my database. | |
| # I need to turn it into a full week where if the date doesn't exist put a 0 in as the value of the date key. | |
| dates = {"2014-01-15"=>1, "2014-01-17"=>1, "2014-01-18"=>1, "2014-01-19"=>17} | |
| week_hash = { | |
| "2014-01-13"=>0, | |
| "2014-01-14"=>0, | |
| "2014-01-15"=>1, | |
| "2014-01-16"=>0, |
| // articles per page | |
| var limit = 10; | |
| // pagination middleware function sets some | |
| // local view variables that any view can use | |
| function pagination(req, res, next) { | |
| var page = parseInt(req.params.page) || 1, | |
| num = page * limit; | |
| db.articles.count(function(err, total) { | |
| res.local("total", total); |
I hereby claim:
To claim this, I am signing this object:
| module.directive "someDirectiveDispatcher", (Messenger)-> | |
| return{ | |
| restrict: "E" | |
| template: "<h1>Test</h1>" | |
| controller: ($scope)-> | |
| $scope.elementClickEvent = ()-> | |
| Messenger.call Messenger.REFRESH_SOMETHING | |
| } |