| ⌘T | go to file |
| ⌘⌃P | go to project |
| ⌘R | go to methods |
| ⌃G | go to line |
| ⌘KB | toggle side bar |
| ⌘⇧P | command prompt |
This file contains hidden or 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
| @mixin background_size($option) { | |
| -webkit-background-size: $option; /* Chrome1.0+, Safari3.0+ */ | |
| -moz-background-size: $option; /* Firefox 3.6+ */ | |
| -o-background-size: $option; /* Opera 9.5+ */ | |
| background-size: $option; /* W3C */ | |
| } |
This file contains hidden or 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.changeBodyClass = () -> | |
| new_class = $("[data-body_class]").attr("data-body_class") | |
| $(this).removeClass() | |
| $(this).addClass(new_class) | |
| new_class | |
| jQuery -> | |
| $(document).pjax("a.pjax", "[data-pjax-container]").on "pjax:end", -> | |
| #sets body class |
This file contains hidden or 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
| //= require jquery | |
| //= require jquery_ujs | |
| // Make sure you download latest PJAX code from https://github.com/defunkt/jquery-pjax | |
| //= require jquery.pjax | |
This file contains hidden or 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.autoset_heights = (opt) -> | |
| h = opt.min || 0 | |
| $(this).find(opt.element).each (i) -> | |
| if h < $(this).height() | |
| h = $(this).outerHeight() | |
| # console.log h | |
| $(this).find(opt.element).each (i) -> | |
| if h > $(this).height() | |
| $(this).height(h) |
This file contains hidden or 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
| window.GmapsLoader = { | |
| Initialize: () -> | |
| #Triggers after Maps Load Dynamic | |
| # console.log markers | |
| loadGmaps.markers = markers if markers? | |
| loadGmaps.polylines = polylines if polylines? | |
| loadGmaps.Init() | |
| LoadScript: () -> | |
| #Loads API Dynamically |
This file contains hidden or 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
| class ReplaceImage | |
| constructor: () -> | |
| @container = "#container" | |
| @element = ".additional_assets li a" | |
| @main_img = "main_image" | |
| @jq_image = "#"+@main_img | |
| @fig = "figure" | |
| @img | |
| init: -> |
OlderNewer