This file contains hidden or 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 'rubygems' | |
require 'spec' | |
require 'funfx/browser/firewatir' | |
BROWSER = FireWatir::Firefox.new | |
DEMO_APP = "location_of_application.html" | |
Before do | |
BROWSER.goto(DEMO_APP) |
This file contains hidden or 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
_git_branches() | |
{ | |
local cur | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
CURRENT=`git branch | grep '^*' | awk '{print $2}'` | |
local versions=$(git branch | grep -v $CURRENT) | |
COMPREPLY=($(compgen -W "${versions}" $cur)) | |
} | |
complete -F _git_branches ship |
This file contains hidden or 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
@Test | |
public void skal_hente_alle_tenant_profiler() { | |
Gitt.at_tenant_profile_eksisterer(new TenantProfile(1, "Single")) | |
Gitt.at_tenant_profile_eksisterer([id:2, description:"Dubletter"]) | |
Gitt.at_tenant_profile_eksisterer(new TenantProfile(id:3, description:"Tribletter")) | |
Naar.jeg_henter_informasjon_om_soknadslista() | |
Saa.skal_antallet_tenant_profiler_vaere(3) | |
} | |
This file contains hidden or 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
#!/bin/bash | |
if [ -z "$1" ] | |
then | |
echo "usage: smoketest.sh <url>" | |
exit 1 | |
fi | |
status=`curl --silent --head $1 | head -1 | cut -f 2 -d' '` |
This file contains hidden or 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
@Service | |
@RemotingDestination | |
public class RemoteObjectLogger { | |
private static final String PRE_FLEX = "[FLEX] "; | |
protected final Log logger = LogFactory.getLog(getClass()); | |
@RemotingInclude | |
public void log(String level, String message) { | |
if ("INFO".equals(level)) logger.info(PRE_FLEX + message); | |
else if ("DEBUG".equals(level)) logger.debug(PRE_FLEX + message); |
This file contains hidden or 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
sudo apt-get install -y python-dev python-pip python-gevent libevent-dev libzmq-dev | |
sudo pip install pyzmq gevent-zeromq locustio |
This file contains hidden or 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
# .bashrc | |
# Source global definitions | |
if [ -f /etc/bashrc ]; then | |
. /etc/bashrc | |
fi | |
# User specific aliases and functions | |
export LANG="no_NO.UTF-8" | |
export LC_CTYPE="no_NO.UTF-8" |
This file contains hidden or 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
class GitContext { | |
@Lazy String branchName = { | |
def proc = 'git rev-parse --abbrev-ref HEAD'.execute() | |
proc.waitFor() | |
assert proc.exitValue() == 0, proc.err.text | |
return proc.in.text.trim() | |
}() | |
def boolean isMasterBranch() { |
This file contains hidden or 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
#!/bin/sh | |
# | |
# SUSE system statup script for Jenkins | |
# Copyright (C) 2007 Pascal Bleser | |
# | |
# This library is free software; you can redistribute it and/or modify it | |
# under the terms of the GNU Lesser General Public License as published by | |
# the Free Software Foundation; either version 2.1 of the License, or (at | |
# your option) any later version. | |
# |
This file contains hidden or 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 SensorTag = require('sensortag'); | |
connect_and_enable_humidity = function(sensorTag){ | |
console.log('discovered %s', sensorTag); | |
sensorTag.connect(function() { | |
console.log('connected'); | |
sensorTag.discoverServicesAndCharacteristics(function() { | |
console.log('Discovering services') | |
sensorTag.enableIrTemperature(function(){ | |
sensorTag.on('irTemperatureChange', function(objectTemperature, ambientTemperature){ |
OlderNewer