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/sh | |
# | |
# An hook script to check for the presence of capitalised [TAG] | |
# at the beginning of commit log message. | |
# | |
# To enable this hook localy in your repo, copy this code to | |
# "[...]/.git/hooks/commit-msg", remove "commit-msg.sample" if present | |
# and give "commit-msg" execute persmission. Enjoy! | |
# Regex to validate presence of [TAG] at the beginning of commit msg |
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
"""The MIT License | |
Copyright 2018 Piotr Januszewski, Mateusz Jabłoński | |
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: | |
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. | |
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONN |
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
#!/usr/bin/env python | |
from __future__ import with_statement, print_function | |
import os | |
import re | |
import shutil | |
import subprocess | |
import sys | |
import tempfile | |
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 matplotlib.pyplot as plt | |
import numpy as np | |
import tensorflow as tf | |
import tensorflow_probability as tfp | |
from tf_utils import AttrDict, lazy_property_with_scope | |
tfd = tfp.distributions | |
tfl = tf.layers |
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
alias p='python' | |
alias p3='python3' | |
alias ga='git add' | |
alias gci='git commit -m' | |
alias gcia='git commit -am' | |
alias gco='git checkout' | |
alias gh="git log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(bold yellow)%d%C(reset)'" | |
alias gs='git status' |
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
[alias] | |
unstage = reset HEAD -- | |
info = show --name-only | |
detail = show --decorate=full | |
contains = log --source --all -G | |
co = checkout | |
ci = commit | |
st = status | |
br = branch | |
hist = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(bold yellow)%d%C(reset)' |
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
[01:31:35] [main/INFO]: Environment: authHost='https://authserver.mojang.com', accountsHost='https://api.mojang.com', sessionHost='https://sessionserver.mojang.com', name='PROD' | |
[01:31:36] [main/INFO]: Reloading ResourceManager: Default, bukkit | |
[01:31:38] [Worker-Main-2/INFO]: Loaded 7 recipes | |
[01:31:43] [Server thread/INFO]: Starting minecraft server version 1.16.3 | |
[01:31:43] [Server thread/INFO]: Loading properties | |
[01:31:44] [Server thread/INFO]: This server is running CraftBukkit version git-Spigot-2740d5a-890130b (MC: 1.16.3) (Implementing API version 1.16.3-R0.1-SNAPSHOT) | |
[01:31:44] [Server thread/INFO]: Server Ping Player Sample Count: 12 | |
[01:31:44] [Server thread/INFO]: Using 4 threads for Netty based IO | |
[01:31:44] [Server thread/INFO]: Debug logging is disabled | |
[01:31:44] [Server thread/INFO]: Default game type: SURVIVAL |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
{ | |
"workbench.colorTheme": "doom-one", | |
"terminal.integrated.inheritEnv": false, | |
"editor.fontFamily": "'Fira Code', Menlo, Monaco, 'Courier New', monospace", | |
"editor.fontWeight": 500, | |
"debug.console.fontSize": 14, | |
"terminal.integrated.fontSize": 14, | |
"scm.inputFontSize": 14, | |
"editor.minimap.enabled": false, | |
"atomKeymap.promptV3Features": true, |
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 functools | |
from typing import Any, Sequence, Tuple, Union | |
import torch as th | |
HANDLED_FUNCTIONS = {} | |
# TODO: Properly type annotate. | |
def implements(torch_function: Any) -> Any: |
OlderNewer