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
################################################ | |
# Compile with: | |
# sudo docker build -t microsoft/playwright:bionic -f Dockerfile.bionic . | |
# | |
# Run with: | |
# sudo docker run -d -p --rm --name playwright microsoft/playwright:bionic | |
# | |
################################################# | |
FROM ubuntu:bionic |
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
<!DOCTYPE html> | |
<meta charset="utf-8"> | |
<body> | |
<script src="//d3js.org/d3.v5.min.js"></script> | |
<script src="https://unpkg.com/@hpcc-js/wasm@0.3.6/dist/index.min.js"></script> | |
<script src="https://unpkg.com/d3-graphviz@3.0.0/build/d3-graphviz.js"></script> | |
<script type="text/javascript"> | |
dependencyData='digraph {a -> b}' //REPLACE ME WITH THE REAL DATA | |
</script> | |
<div id="graph" style="text-align: center;"></div> |
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
find_parent_upwards() { | |
local look=${PWD%/} | |
while [[ -n $look ]]; do | |
[[ -e $look/$1 ]] && { | |
printf '%s\n' "$look" | |
return | |
} | |
look=${look%/*} |
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
package com.djulia.session.domain; | |
import java.util.Objects; | |
public class Restaurant { | |
private final String name; | |
private final String ownerName; | |
private final String headChefName; | |
private final String cusineType; | |
private final String shortDescription; |
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 ubuntu:15.10 | |
RUN rm /bin/sh && ln -s /bin/bash /bin/sh; \ | |
apt-get update;\ | |
apt-get install -y openjdk-8-jdk curl; \ | |
gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3; \ | |
\curl -sSL https://get.rvm.io | bash -s stable; \ | |
rvm install 2.1.1 ; \ | |
gem install pact_broker; \ |
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
package com.djulia.dto; | |
import com.fasterxml.jackson.annotation.JsonProperty; | |
import com.fasterxml.jackson.annotation.JsonSubTypes; | |
import com.fasterxml.jackson.annotation.JsonTypeInfo; | |
import com.fasterxml.jackson.core.JsonGenerator; | |
import com.fasterxml.jackson.core.JsonParser; | |
import com.fasterxml.jackson.core.JsonProcessingException; | |
import com.fasterxml.jackson.databind.*; | |
import com.fasterxml.jackson.databind.annotation.JsonDeserialize; |
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
#NOTE: our ci machine currently has a weird pfctl rule that I put in place on friday, so port 5000 is not working. | |
#Remove that rule, and this should work. | |
docker-machine create --driver virtualbox --engine-insecure-registry ci:5000 default #Run on all agents/dev boxes | |
#THE BELOW LINES ONLY APPLY TO THE CI SERVER: | |
docker-machine stop default | |
vboxmanage modifyvm "default" --natpf1 "tcp-port5000,tcp,,5000,,5000"; | |
docker-machine start default | |
docker-machine ssh default "sudo -- sh -c 'echo 10.0.2.2 ci >> /etc/hosts'" |
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 bunch of spec_helper code.... | |
Rspec.configure do |config| | |
module UseRoutesForControllerTests | |
def self.included(base) | |
base.class_eval do | |
routes { MyEngine::Engine.routes } | |
end | |
end | |
end |
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
class ListingsController < ApplicationController | |
def index | |
movie_listing_service = ServiceLocator.get_service_instance(:MovieListing) | |
@available_movies = movie_listing_service.available_movies | |
render nothing: true #this is just an example don't get hung up on it :) | |
end |