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
{ | |
"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 %> | |
}, | |
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
var styleSheets = document.styleSheets | |
, len = styleSheets.length | |
, keyframeRules = []; | |
function extractKeyframes(styleSheet) { | |
var rules = styleSheet.rules; | |
rules.forEach = Array.prototype.forEach; |
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 (App) { | |
/** | |
* Do before each Ajax request | |
* --------------------------- | |
* | |
* 1. Disable ajax related DOM controls to prevent double submissions | |
* 2. Extend each XHR object with a couple of methods that let ajax calls skip global handlers on-demand. | |
* | |
*/ |