Add the following gems to your Gemfile:
gem 'activeresource'
gem 'newrelic_api'
Update your bundle:
| yonedaLemma = Iso (flip fmap) ($ id) |
I recently had the following problem:
We didn't want to open the MySQL port to the network, but it's possible to SSH from the Jenkins machine to the MySQL machine. So, basically you would do something like
ssh -L 3306:localhost:3306 remotehost
| # Kool console | |
| # ============ | |
| # | |
| # A snippet for running CoffeeScript snippets in browser, with a cool | |
| # centered text input. | |
| # | |
| # Press <meta> + K to open the console. | |
| # Styles for the text field. | |
| CSS = """ |
This song is Copyrighted in U.S., under Seal of Copyright # 154085, for a period of 28 years, and anybody caught singin it without our permission, will be mighty good friends of ourn, cause we don’t give a dern. Publish it. Write it. Sing it. Swing to it. Yodel it. We wrote it, that’s all we wanted to do.
| def f(x = []): | |
| x.append(1) | |
| return x | |
| print f() # [1] | |
| print f() # [1, 1] | |
| print f() # [1, 1, 1] | |
| print f() # [1, 1, 1, 1] |
| require 'bundler/setup' | |
| require 'active_record' | |
| include ActiveRecord::Tasks | |
| db_dir = File.expand_path('../db', __FILE__) | |
| config_dir = File.expand_path('../config', __FILE__) | |
| DatabaseTasks.env = ENV['ENV'] || 'development' |
| {-# LANGUAGE OverloadedStrings #-} | |
| import qualified Network.HTTP.Conduit as H | |
| import Control.Exception | |
| import Web.Scotty | |
| import System.Environment | |
| import System.IO | |
| import System.Directory | |
| import Control.Monad | |
| import Control.Monad.IO.Class | |
| import qualified Data.ByteString.Lazy.Char8 as BS |
| require "rexml/document" | |
| SCHEDULER.every '1m', :first_in => 0 do |job| | |
| stop_no = 1819 | |
| url = URI.parse('http://ws.tramtracker.com.au/pidsservice/pids.asmx') | |
| request =Net::HTTP::Post.new(url.path) | |
| request.body = %Q{<?xml version="1.0" encoding="utf-8"?> | |
| <soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope"> | |
| <soap12:Header> | |
| <PidsClientHeader xmlns="http://www.yarratrams.com.au/pidsservice/"> |