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
# The best and greatest tmux.conf ever - improved! | |
# https://gist.github.com/rsp/f4770a1fe8ea7e2378ac3a16e01a2b53 | |
# Here are some customizations done by Rafał Pocztarski: | |
# use Ctrl+Backslash instead of Ctrl+A or Ctrl+B | |
# use Slash to split vertically | |
# use Backslash to split horizontally | |
unbind-key C-b | |
set -g prefix 'C-\' | |
bind-key 'C-\' send-prefix |
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 TCN library from https://github.com/locuslab/TCN | |
import torch | |
import torch.nn as nn | |
import torch.nn.functional as F | |
from torch.nn.utils import weight_norm | |
def conv1d_same_padding(input, weight, bias=None, stride=1, dilation=1, groups=1): | |
input_length = input.size(2) | |
filter_length = weight.size(2) |
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
using System; | |
using BenchmarkDotNet.Attributes; | |
using Newtonsoft.Json; | |
using NodaTime.Serialization.JsonNet; | |
namespace NodaTime.Serialization.Benchmarks.JsonNet | |
{ | |
[MemoryDiagnoser] | |
public class NodaContractResolverBenchmarks | |
{ |
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
[MemoryDiagnoser] | |
public class ConfigureForNodaTimeBenchmarks | |
{ | |
static readonly Instant _instant = Instant.FromUtc(2017, 6, 7, 0, 0); | |
static readonly DateTime _dateTime = new DateTime(2017, 6, 7); | |
static readonly JsonSerializerSettings _settings = new JsonSerializerSettings(); | |
static ConfigureForNodaTimeBenchmarks() | |
{ | |
_settings.ConfigureForNodaTime(DateTimeZoneProviders.Tzdb); |