Skip to content

Instantly share code, notes, and snippets.

Steven Guh stevenguh

  • Seattle
Block or report user

Report or block stevenguh

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
stevenguh / .zshrc
Last active Feb 20, 2020
My zsh settings
View .zshrc
# Enable Powerlevel10k instant prompt. Should stay close to the top of ${HOME}/.zshrc.
# Initialization code that may require console input (password prompts, [y/n]
# confirmations, etc.) must go above this block, everything else may go below.
if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
# Install `zinit` if not installed
if [ ! -d "${HOME}/.zinit" ]; then
sh -c "$(curl -fsSL"
stevenguh /
Created Feb 7, 2019
Temporal Conv Net with Non-Causal Conv in PyTorch
# Import TCN library from
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)
View NodaContractResolverBenchmarks.cs
using System;
using BenchmarkDotNet.Attributes;
using Newtonsoft.Json;
using NodaTime.Serialization.JsonNet;
namespace NodaTime.Serialization.Benchmarks.JsonNet
public class NodaContractResolverBenchmarks
stevenguh / ConfigureForNodaTimeBenchmarks.cs
Created Aug 24, 2017
Benchmarks for nodatime.serialization #12 (TypeDescriptor vs ConfigureForNodaTime)
View ConfigureForNodaTimeBenchmarks.cs
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()
You can’t perform that action at this time.