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
package com.foo.RecyclerViewMatcher; | |
import android.content.res.Resources; | |
import android.support.v7.widget.RecyclerView; | |
import android.view.View; | |
import org.hamcrest.Description; | |
import org.hamcrest.Matcher; | |
import org.hamcrest.TypeSafeMatcher; |
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
require 'erb' | |
class Context | |
attr_reader :properties, | |
:class_name, | |
:headers_str, | |
:enums_str | |
def initialize | |
@properties = [] |
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
Ext.define('MyApp.widget.MyWidget', { | |
extend: 'Ext.Component', | |
autoEl: { | |
html: "<span class='display'></span>" | |
}, | |
afterRender: function () { | |
this.getEl().down(".display").dom.innerText = this.value; | |
} | |
}); |
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
Ext.require("MyApp.widget.MyWidget"); | |
describe("MyApp.widget.MyWidget", function() { | |
var widget; | |
beforeEach(function() { | |
widget = Ext.create("MyApp.widget.MyWidget", { | |
renderTo: "test", | |
value: "Some Initial Value", | |
}); |
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
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" | |
"http://www.w3.org/TR/html4/loose.dtd"> | |
<html> | |
<head> | |
<title>Jasmine Spec Runner</title> | |
<link rel="shortcut icon" type="image/png" href="lib/jasmine-1.2.0/jasmine_favicon.png"> | |
<link rel="stylesheet" type="text/css" href="lib/jasmine-1.2.0/jasmine.css"> | |
<script type="text/javascript" src="../js/ext-4.1.2a/ext-all-dev.js"></script> |
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
shell_exec("DYLD_LIBRARY_PATH='' && rvm 1.8.7 exec bundle exec ruby script.rb"); |
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
shell_exec("DYLD_LIBRARY_PATH='' && rvm 1.8.7 exec bundle exec ruby script.rb"); |
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
on appIsRunning(appName) | |
tell application "System Events" to (name of processes) contains appName | |
end appIsRunning | |
on execInItermTab(_terminal, _session, _command) | |
tell application "iTerm" | |
activate | |
set current terminal to _terminal | |
tell _session | |
select _session |
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
// Makes sequential getJSON requests, passing the processed results from the | |
// previous request to the next request. seedData is optional. | |
var chainedGetJSON = function(requests, seedData) { | |
var seed = $.Deferred(), | |
finalPromise; | |
finalPromise = requests.reduce(function(promise, request) { | |
return promise.pipe(function(input) { | |
return $.getJSON(request.url(input)).pipe(function(json) { | |
return request.process(json, input); |
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
var addToTheList = function($elem, value) { | |
var itemHtml = '<li>' + value + '</li>', | |
selector = ".list"; | |
$elem.find(selector).andSelf().filter(selector).append(itemHtml); | |
}; |
NewerOlder