Run the container, with the gem files living on the host filesystem
docker run -it --rm \
--volume "$PWD":/app \
--workdir /app \
--env "BUNDLE_PATH=.gems" \
--link "earnings-calls-database" \
soodesune/ruby-rails:2.3.1-alpine sh
# Starts a BLE service, that allows central devices to register for notifications. | |
# When a button attached to GPIO-32 is pressed, the counter is incremented, and | |
# registerd central devices are notified. | |
#include <BLEDevice.h> | |
#include <BLEServer.h> | |
#include <BLEUtils.h> | |
#include <BLE2902.h> | |
#include "driver/rtc_io.h" |
Run the container, with the gem files living on the host filesystem
docker run -it --rm \
--volume "$PWD":/app \
--workdir /app \
--env "BUNDLE_PATH=.gems" \
--link "earnings-calls-database" \
soodesune/ruby-rails:2.3.1-alpine sh
#! /usr/bin/env bash | |
JENKINS_URL="localhost:8080" | |
JOB_NAME="YourJobName | |
USER_NAME="api" | |
USER_TOKEN="f6706YOURUSERTOKENd2c51" | |
QUEUE_URL=$(curl --silent "http://${JENKINS_URL}/job/${JOB_NAME}/build" \ | |
--user "${USER_NAME}:${USER_TOKEN}" \ | |
--data "token=${JOB_TOKEN}" -XPOST \ |
#! /usr/bin/env bash | |
# Create the container with a long running process. If PID1 exists before | |
# we send the exec commands, they will fail because the container is not running | |
# | |
CONTAINER_NAME="TEST-`uuidgen`" | |
curl --silent --unix-socket /var/run/docker.sock "http:/containers/create?name=${CONTAINER_NAME}" -XPOST \ | |
-H "Content-Type: application/json" \ | |
-d '{ | |
"Image": "ruby:latest", |
SHOW |
while true; do for i in 30 31 32 33 34 35 36; do echo -en '\033[1;'$i"m" "Hi Charlotte & Blaise"; sleep 0.1; done; echo -en '\033[1;0m'; done |
module Enumerable | |
def first_and_only! | |
fail(FirstAndOnly::LengthNotOne, count) if first(2).count != 1 | |
first | |
end | |
module FirstAndOnly | |
LengthNotOne = Class.new(StandardError) | |
end | |
end |
Subject: Ruby for Highschoolers? | |
From: Nicholas Evans <OwlManAtt OwlManAtt.com> | |
Date: Mon, 12 Jun 2006 01:55:39 +0900 | |
Howdy list, | |
I'm a highschool student with a very high chance of ending up | |
student-teaching the Programming I course during the 07-08 schoolyear. | |
This year was the first year for the course, and Scheme was used. | |
However, I've been talking to the teacher about Ruby, suggesting that |