Skip to content

Instantly share code, notes, and snippets.

View marcodejongh's full-sized avatar

Marco de Jongh marcodejongh

  • Atlassian
  • Sydney
View GitHub Profile
var oldDestroy = Blaze.DOMRange._destroy;
var counter, domTimeout, startTime, endTime;
Blaze.DOMRange._destroy = function () {
//I love monkey-patching
if(monitorBlaze) {
endTime = new Date().getTime();
if(domTimeout) {
Meteor.clearTimeout(domTimeout);
#Log hours
jira --action addWork --issue BADDR-66 --timeSpent 8h --date '9/5/2014 4:00'
#Add comment to a issue
jira --action addComment --issue BADDR-66 --comment 'Just testing out the CLI [~desoes]'
http {
server {
listen 80;
server_name nvqhq.com;
location / {
proxy_pass http://localhost:3000/marketing;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
http {
proxy_cache_path /tmp/nginx/cache
levels=1:2
keys_zone=main:10m
max_size=1g inactive=1d;
proxy_temp_path /tmp/nginx/tmp;
server {
listen 80;
server_name app.example.com;
var formCollection = new Meteor.Collection(null);
var itemId = 'SEDatkPtyfAKvGgpj';
Template.form.rendered = function () {
};
Template.form.changed = function () {
var form = formCollection.findOne(itemId);
{
"packages": {
"iron-router": {
"path": "pathtomycheckout"
},
}
}
@marcodejongh
marcodejongh / MyView.java
Created November 26, 2013 10:38
Example for using senbot pagerepresentation classes
package com.gfk.echo.senbot.cucumber.views;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;
import org.openqa.selenium.support.How;
public class MyView {
@FindBy(how = How.ID, using = "WhateverID")
public WebElement someElement;
}