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
data: | |
build: jenkins-data | |
master: | |
build: jenkins-master | |
volumes: | |
- .:/backup | |
volumes_from: | |
- data | |
ports: |
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
FROM nginx:1.10 | |
MAINTAINER Robert Watkins | |
RUN rm /etc/nginx/conf.d/default.conf | |
RUN rm /etc/nginx/nginx.conf | |
COPY conf/jenkins.conf /etc/nginx/conf.d/jenkins.conf | |
COPY conf/nginx.conf /etc/nginx/nginx.conf |
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
FROM jenkins:2.7.1 | |
MAINTAINER Robert Watkins | |
USER root | |
RUN mkdir /var/log/jenkins | |
RUN mkdir /var/cache/jenkins | |
RUN chown -R jenkins:jenkins /var/log/jenkins | |
RUN chown -R jenkins:jenkins /var/cache/jenkins | |
USER jenkins |
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
# Needs to match the linux version used in jenkins-master | |
FROM debian:jessie | |
MAINTAINER Robert Watkins | |
# user 1000 must match the user id for the jenkins user in jenkins-master | |
RUN useradd -d "/var/jenkins_home" -u 1000 -m -s /bin/bash jenkins | |
RUN mkdir -p /var/log/jenkins | |
RUN chown -R jenkins:jenkins /var/log/jenkins |
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
Before | |
it("test stuff", function() { | |
... | |
waitsFor(function() { | |
return flag | |
}, "should set tthe flag, meaning its entered the callback", 150) | |
runs(function() { | |
controller.removeEvent(evt.id) | |
}) |
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
ant.importBuild 'build.xml' | |
def packages_dir = file('../packages') | |
clean { | |
doLast { delete 'bootstrap.js', 'bootstrap.css', 'bootstrap.json' } | |
} | |
refresh { | |
inputs.dir 'app' |
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
// Based on http://pragmaticintegrator.wordpress.com/2013/08/16/writing-a-hadoop-mapreduce-task-in-java/ | |
package net.twasink.hadoop; | |
import java.io.File; | |
import java.net.URI; | |
import org.apache.commons.io.FileUtils; | |
import org.apache.hadoop.conf.Configuration; | |
import org.apache.hadoop.fs.Path; | |
import org.apache.hadoop.io.LongWritable; |
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
// Apply an override to the HasOne association, allowing a 'name' parameter to generate the getter, setter, associationKey, and associatedName | |
Ext.override(Ext.data.association.HasOne, { | |
constructor: function(config) { | |
if (config.name ) { | |
Ext.applyIf(config, { | |
getterName: 'get' + Ext.String.capitalize(config.name), | |
setterName: 'set' + Ext.String.capitalize(config.name), | |
associationKey: config.name, | |
associatedName: config.name | |
}) |
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
/** | |
* A variant of the JSON reader. Instead of reading arrays, where each record in the array field | |
* has an 'id' property, it reads objects - aka associative arrays. The key of the entry will be the | |
* array. | |
* | |
* So where the JSON reader would like data like this: | |
* [ { id: '1', property: 'foo' }, { id: '2', property: 'bar' } ] | |
* | |
* the associative reader likes data like this: | |
* { '1': { property: 'foo' }, '2': { property: 'bar' } } |
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('App.controller.SpikeController', { | |
extend: 'Ext.app.Controller', | |
refs: [ | |
{ ref: 'foobar', selector: '#foobar' }, | |
{ ref: 'bazbux', selector: '#bazbux' }, | |
{ ref: 'spikeView', selector: 'spike_view' } | |
], | |
init: function() { |