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
#!/bin/bash | |
# $screenActive=1 means the screen is active and O is inactive | |
# View the explanation of the CGSession dictionary at | |
# https://stackoverflow.com/questions/11505255/osx-check-if-the-screen-is-locked | |
function checkScreenActiveMac { | |
python -c 'import sys,Quartz;\ | |
d=Quartz.CGSessionCopyCurrentDictionary();\ | |
sys.exit(d and \ | |
d.get("CGSSessionScreenIsLocked", 0) == 0 and \ |
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
#!/bin/bash | |
function checkOS { | |
unameOut="$(uname -s)" | |
case "${unameOut}" in | |
Linux*) machine=Linux;; | |
Darwin*) machine=Mac;; | |
*) echo "Cannot run on unsupported machine ${unameOut}" && exit 1; | |
esac |
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
#!/bin/bash | |
function checkOS { | |
... | |
} | |
function addOneHourLinux { | |
date -d '+1 hour' | |
} |
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
# Authors: Mathieu Blondel, Vlad Niculae | |
# License: BSD 3 clause | |
import numpy as np | |
def _gen_pairs(gen, max_iter, max_inner, random_state, verbose): | |
rng = np.random.RandomState(random_state) | |
# if tuple, interpret as randn |
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 golang:1.12 as build | |
WORKDIR $GOPATH/src/github.com/Irio/wohnung | |
COPY scraper scraper | |
COPY main.go . | |
RUN go get -d -v ./... | |
RUN go install | |
FROM gcr.io/distroless/base |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
NewerOlder