This file contains hidden or 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
| #!/usr/bin/env bash | |
| # Bring up a Tailscale node on a sandbox-style Linux host (cloud sandbox, container, | |
| # VM) whose network is too unusual for a stock `tailscale up` to survive. | |
| # | |
| # It handles three things that otherwise fail silently on these hosts: | |
| # * link-local-only addressing, which makes Tailscale's network monitor think the | |
| # host is offline and hang login forever on "control: awaiting unpause" | |
| # * no usable kernel TUN, by falling back to userspace networking | |
| # * kernels without nf_nat masquerade or an ip6 filter table, which break | |
| # tailscaled's own netfilter setup, by installing an explicit IPv4 SNAT rule |
This file contains hidden or 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
| print("hello world") |
This file contains hidden or 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 torch.nn as nn | |
| class SRU(nn.Module): | |
| """ Simple Recurrent Unit https://arxiv.org/pdf/1709.02755.pdf """ | |
| def __init__(self, input_size, hidden_size, activation=F.tanh): | |
| super().__init__() | |
| self.input_size = input_size | |
| self.hidden_size = hidden_size | |
This file contains hidden or 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 gym | |
| import numpy as np | |
| from keras.models import Model | |
| from keras.layers import * | |
| from keras import backend as K | |
| from collections import deque | |
| def one_hot(index, categories): |
This file contains hidden or 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
| def propertyFile = file "src/main/resources/META-INF/some.properties" | |
| def props = new Properties() | |
| propertyFile.withReader { props.load(it) } | |
| props.setProperty("version", project.version) | |
| propertyFile.withWriter { props.store(it) } |
This file contains hidden or 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
| ### Keybase proof | |
| I hereby claim: | |
| * I am calclavia on github. | |
| * I am calclavia (https://keybase.io/calclavia) on keybase. | |
| * I have a public key whose fingerprint is 286A B9D4 640F 586E 1D45 55C9 4ED2 7348 F4C4 0B9C | |
| To claim this, I am signing this object: |
This file contains hidden or 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
| /** | |
| * Generates a TeamCity XML changelog via the REST API. | |
| */ | |
| task("createChangelog").doLast { | |
| def teamCityURL = "http://ci.calclavia.com/" | |
| /** | |
| * Create a new file | |
| */ |