Skip to content

Instantly share code, notes, and snippets.

View marcodejongh's full-sized avatar

Marco de Jongh marcodejongh

  • Atlassian
  • Sydney
View GitHub Profile
{
"packages": {
"iron-router": {
"path": "pathtomycheckout"
},
}
}
var formCollection = new Meteor.Collection(null);
var itemId = 'SEDatkPtyfAKvGgpj';
Template.form.rendered = function () {
};
Template.form.changed = function () {
var form = formCollection.findOne(itemId);
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";
#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]'
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);
Vagrant.configure("2") do |config|
config.vm.box = "trusty"
config.vm.box_url = "https://cloud-images.ubuntu.com/vagrant/trusty/trusty-server-cloudimg-amd64-juju-vagrant-disk1.box"
# we’ll forward the port 8000 from the VM to the port 8000 on the host (OS X)
config.vm.network :forwarded_port, host: 8000, guest: 8000
#config.vm.synced_folder("vagrant-docker", "/vagrant")
config.vm.provider :virtualbox do |vb|
# vb.gui = true
#!/bin/sh
# Called by "git push" after it has checked the remote status,
# but before anything has been pushed.
#
# If this script exits with a non-zero status nothing will be pushed.
#
# Steps to install, from the root directory of your repo...
# 1. Copy the file into your repo at `.git/hooks/pre-push`
# 2. Set executable permissions, run `chmod +x .git/hooks/pre-push`
1. Everything is tamas' fault
2. If in doubt revert to rule 1
Context = {
name: 'pablo',
dogs: [
{
name: 'Fikkie'
},
{
name: 'Jantje'
}
],
class SomeClass {
constructor() {
this.x = 0;
}
getX() {
return this.x;
}
setX(val) {
this.x = val;
}