Install FFmpeg with homebrew. You'll need to install it with a couple flags for webm and the AAC audio codec.
brew install ffmpeg --with-libvpx --with-libvorbis --with-fdk-aac --with-opus| export GITHUB_USER=magickatt | |
| export GITHUB_TOKEN=secret | |
| export GITHUB_REPOSITORY=magickatt/ContainerisingLegacyApplicationsTalk | |
| git clone https://${GITHUB_USER}:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY} |
| \documentclass{article} | |
| \usepackage{array} | |
| \newcolumntype{L}[1]{>{\raggedright\let\newline\\\arraybackslash\hspace{0pt}}m{#1}} | |
| \newcolumntype{C}[1]{>{\centering\let\newline\\\arraybackslash\hspace{0pt}}m{#1}} | |
| \newcolumntype{R}[1]{>{\raggedleft\let\newline\\\arraybackslash\hspace{0pt}}m{#1}} | |
| \begin{document} |
| """ Trains an agent with (stochastic) Policy Gradients on Pong. Uses OpenAI Gym. """ | |
| import numpy as np | |
| import cPickle as pickle | |
| import gym | |
| # hyperparameters | |
| H = 200 # number of hidden layer neurons | |
| batch_size = 10 # every how many episodes to do a param update? | |
| learning_rate = 1e-4 | |
| gamma = 0.99 # discount factor for reward |
| # The entries in this file are checked regularly for validity via the Github Action | |
| # sited at github.com/bskinn/intersphinx-gist. | |
| # Please feel free to post an issue at that repo if any of these mappings don't work for you, | |
| # or if you're having trouble constructing a mapping for a project not listed here. | |
| Python 3 [latest]: ('https://docs.python.org/3/', None) | |
| Python 3 [3.x]: ('https://docs.python.org/3.9/', None) | |
| attrs [stable]: ('https://www.attrs.org/en/stable/', None) | |
| Django [dev]: ('https://docs.djangoproject.com/en/dev/', 'https://docs.djangoproject.com/en/dev/_objects/') | |
| Flask [2.2.x]: ('https://flask.palletsprojects.com/en/2.2.x/', None) |
| #!/bin/bash | |
| ### Google Domains provides an API to update a DNS "Syntheitc record". This script | |
| ### updates a record with the script-runner's public IP, as resolved using a DNS | |
| ### lookup. | |
| ### | |
| ### Google Dynamic DNS: https://support.google.com/domains/answer/6147083 | |
| ### Synthetic Records: https://support.google.com/domains/answer/6069273 | |
| USERNAME="" |
| type Queen = (Int,Int) | |
| solveNot6kplus2 :: Int -> [Queen] | |
| solveNot6kplus2 n = firstHalf ++ secondHalf | |
| where | |
| firstHalf = [(j, 2 * j) | j <- range] | |
| secondHalf = [(n `div` 2 + j, 2 * j - 1) | j <- range] | |
| range = [1 .. n `div` 2] | |
| solveNot6k :: Int -> [Queen] |