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
| (function($) { | |
| $.fn.stickyHeaders = function({ | |
| headerHeight= 60 | |
| } = {}) { | |
| const $container = this; // i | |
| const $fakeHeader = $container.find('.fake-header'); | |
| $container.on("scroll touchstart touchmove", function() { | |
| const scrollTop = $container.scrollTop(); |
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
| export default function onRetina() { | |
| if (window.matchMedia) { | |
| var mq = window.matchMedia('only screen and (-webkit-min-device-pixel-ratio: 2),' + | |
| 'only screen and ( min--moz-device-pixel-ratio: 2),' + | |
| 'only screen and ( -o-min-device-pixel-ratio: 2/1),' + | |
| 'only screen and ( min-device-pixel-ratio: 2),' + | |
| 'only screen and ( min-resolution: 192dpi),' + | |
| 'only screen and ( min-resolution: 2dppx)'); | |
| return mq ? mq.matches : false | |
| } |
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 MovieRamaInSwiftTests: XCTestCase { | |
| let client = HttpClient.init() | |
| let applicationManager = ApplicationManager.init() | |
| func testExample() { | |
| let expectation = expectationWithDescription("AlamofireGetMovies") | |
| var searchResults : Array<MovieObj> = Array() | |
| client.getMovieListForSearchText("She", limit: 7, currentPage: 1) { responseObject, error in |
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
Show hidden characters
| { | |
| "ecmaFeatures": { | |
| "arrowFunctions": true, | |
| "binaryLiterals": false, | |
| "blockBindings": true, | |
| "classes": true, | |
| "defaultParams": true, | |
| "destructuring": true, | |
| "forOf": true, | |
| "generators": true, |
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
| [alias] | |
| co = checkout | |
| go = checkout -b | |
| st = status | |
| pr = pull --rebase | |
| br = branch | |
| filediff = diff --name-only | |
| last = log -1 HEAD | |
| fixup = commit --fixup | |
| rebase-auto = git rebase --interactive --autosquash |
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
| /* | |
| * object.watch polyfill | |
| * | |
| * 2012-04-03 | |
| * | |
| * By Eli Grey, http://eligrey.com | |
| * Public Domain. | |
| * NO WARRANTY EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK. | |
| */ |
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
| [alias] | |
| co = checkout | |
| go = checkout -b | |
| st = status | |
| pr = pull --rebase | |
| br = branch | |
| filediff = diff --name-only | |
| last = log -1 HEAD | |
| fixup = commit --fixup | |
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
| define(function (require) { | |
| var Page = require('./base/page') | |
| , _ = require('vendor/lodash/lodash.underscore'); | |
| function DashboardPage() { | |
| Page.apply(this, arguments); | |
| } | |
| DashboardPage.prototype = Object.create(Page.prototype); |
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
| # config/initializers/teaspoon.rb | |
| module Teaspoon | |
| module BootHelper | |
| def create_browserify_bundle(suite) | |
| bundle = File.join(Rails.root, 'tmp/javascripts', "suites/#{suite.name}.js") | |
| bundle_dir = File.dirname(bundle) | |
| FileUtils.mkdir_p(bundle_dir) unless File.directory?(bundle_dir) | |
| specs = suite.spec_assets(false).map { |asset| "#{asset.gsub(/\.js.*$/, '')}" } |
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
| // helper to create proper asset paths if an asset host is configured | |
| App.assets = { | |
| assets : { | |
| <% AssetsUtil.images.each do |img| %> | |
| "<%= img %>" : "<%= asset_path(img) %>", | |
| <% end %> | |
| }, | |