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
This is the empty file you have to create in traefik/certificates.json, as mentioned in Traefik's docker-compose.yml file | |
This file will contain your private keys, so remember to perform a 'chmod 600' on it or else Traefik won't store anything in it |
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 main is a sample macOS-app-bundling program to demonstrate how to | |
// automate the process described in this tutorial: | |
// | |
// https://medium.com/@mattholt/packaging-a-go-application-for-macos-f7084b00f6b5 | |
// | |
// Bundling the .app is the first thing it does, and creating the DMG is the | |
// second. Making the DMG is optional, and is only done if you provide | |
// the template DMG file, which you have to create beforehand. | |
// | |
// Example use: |
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 | |
SCALE=100 | |
LOOPS=3 | |
DURATION=7200 | |
PGBENCH_SEED=2018 | |
for loop in $(seq 1 ${LOOPS}) ; do | |
echo "doing loop $loop ..." |
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
library(processx) | |
library(RPostgres) | |
library(httr) | |
library(dbplyr) | |
library(tidyverse) | |
# this example assumes you've created a heroku postgresql | |
# instance and have the app name (in this example, "rpgtestcon"). | |
# use the heroku command-line app |
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
tweet_shot("947082036019388416") | |
# or tweet_shot("https://twitter.com/jhollist/status/947082036019388416") |
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
library(tidyverse) | |
library(lubridate) | |
url1 <- "https://cran.rstudio.com/src/contrib/Meta/archive.rds" | |
url2 <- "https://cran.rstudio.com/src/contrib/Meta/current.rds" | |
if (!file.exists(basename(url1))) download.file(url1, basename(url1), quiet = TRUE) | |
if (!file.exists(basename(url2))) download.file(url2, basename(url2), quiet = TRUE) | |
archive <- readRDS("archive.rds") |
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 main | |
import ( | |
"context" | |
"fmt" | |
"log" | |
"os" | |
"os/signal" | |
"syscall" | |
"time" |
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
import React from 'react' | |
import { BrowserRouter as Router, Route, Link, Redirect, matchPath } from 'react-router-dom' | |
import { Motion } from 'data-driven-motion' // https://github.com/tkh44/data-driven-motion | |
const WOBBLY_SPRING = { stiffness: 200, damping: 15, precision: 0.1 } | |
const AnimationExample = () => ( | |
<Router> | |
<div> | |
<ul> |
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
N = 10 | |
λ=-0.1; tEnd=1000. | |
tThreshold = 0.1 | |
u0 = zeros(4 * N) | |
for i in 1 : N | |
u0[2*i - 1] = -5. + 10.*rand() | |
u0[2*i] = -5. + 10.*rand() | |
u0[2*N + 2*i - 1] = 0. | |
u0[2*N + 2*i] = 1. | |
end |