I hereby claim:
- I am joshdover on github.
- I am joshdover (https://keybase.io/joshdover) on keybase.
- I have a public key ASAfX7rWttw5Abh7TK_kfxc421jTuwwL82kmpGLn_1W4Bwo
To claim this, I am signing this object:
describe('Controller: MyCtrl', function () { | |
beforeEach(module('MyApp')); | |
var scope; | |
// Initialize the controller and a mock scope | |
beforeEach(inject(function ($controller, $rootScope) { | |
scope = $rootScope.$new(); | |
startController = function() { | |
$controller('MyCtrl', { |
new MozActivity({ | |
name: 'send', | |
data: { | |
type: 'text/plain', | |
text: 'Hello Android, I am a web app!' | |
} | |
}); |
class Albedo.GaugeView extends Batman.View | |
@option 'title', 'max', 'min', 'value', 'better' | |
@::on 'appear', -> | |
@makeGauge() | |
makeGauge: -> | |
node = $(@get('node')) | |
node.attr 'id', @get('title') |
source "https://rubygems.org" | |
gem "rspec" | |
gem "capybara" | |
gem "headless" |
<!-- Include Mixpanel and init before this. --> | |
<!-- Place at the bottom of your layout (ex: app/views/layouts/application.html.erb) --> | |
<% if content_for :mixpanel %> | |
<%= javascript_tag(yield :mixpanel) %> | |
<% end %> |
# Helper for tracking mixpanel events, allows for declaritve events. Usage: | |
# <a href="http://google.com" data-mixpanel="name: 'clicked link'">Google</a> | |
# <a href="http://cows.com" data-mixpanel="name: 'clicked link', data: { animal: 'cow' }">Cow</a> | |
# <li data-mixpanel="'clicked list element'">I am not a link!</li> | |
$(document).on "click", "[data-mixpanel]", (event) -> | |
options = eval "({" + $(this).attr("data-mixpanel") + "})" | |
# If event is bound to a link, add delay to ensure event is tracked. | |
if event.currentTarget.href? | |
options.data = {} if !options.data? |
--- config.cc 2018-06-01 22:18:19.000000000 -0500 | |
+++ config1.cc 2018-06-01 22:18:02.000000000 -0500 | |
@@ -3258,7 +3258,7 @@ | |
fprintf(fp, ", biosdetect=%s", SIM->get_param_enum("biosdetect", base)->get_selected()); | |
- if (SIM->get_param_string("model", base)->getptr()>0) { | |
+ if (SIM->get_param_string("model", base)->getptr() != 0) { | |
fprintf(fp, ", model=\"%s\"", SIM->get_param_string("model", base)->getptr()); | |
} |
const Hapi = require('hapi'); | |
const Boom = require('boom'); | |
function installShim(server) { | |
/** | |
* Request wrapping factory that emulates Hapi v14 behavior. | |
*/ | |
function handlerWrapper(originalHandler, { isPreResponse = false } = {}) { | |
// Leave undefined, null, and string (registered server functions) values unchanged. |
I hereby claim:
To claim this, I am signing this object:
const TYPES_7_7_to_7_14 = [ | |
"action", | |
"action_task_params", | |
"alert", | |
"api_key_pending_invalidation", | |
"apm-indices", | |
"apm-server-schema", | |
"apm-services-telemetry", | |
"apm-telemetry", | |
"app_search_telemetry", |