Skip to content

Instantly share code, notes, and snippets.

View berquist's full-sized avatar

Eric Berquist berquist

View GitHub Profile
@mattBrzezinski
mattBrzezinski / design-document-template.md
Last active January 26, 2024 23:41
Design Document Template

Contact Info

List of project members and their contact information.

Tenets

Tenets are a list of guiding principles for your project. Your tenets will keep you focused on your objective and keep you heading in the right direction.

Tenets are independent of each other, are clear and memorable. They are used to define what a team cares more about.

@hartzell
hartzell / simple-spack-install.sh
Created December 3, 2019 16:49
Simplified version of a script for providing a big bunch of things with Spack
#!/bin/sh
set -e
# having an app tree set up messes up the build. Clear the field.
if [[ $(type -t module) == "function" ]]; then
module purge
fi
cat << "EOYAML" > etc/spack/packages.yaml
packages:
@niw
niw / Vagrantfile
Last active February 22, 2024 10:21
A simple Vagrantfile to setup Ubuntu desktop environment with Google Chrome and Japanese input
Vagrant.configure("2") do |config|
config.vm.box = "ubuntu/bionic64"
config.vm.provider :virtualbox do |v|
v.gui = true
v.memory = 2048
end
# Currently "ubuntu/bionic64" on VirtualBox requires `type: "virtualbox"`
# to make synced folder works.
@laggardkernel
laggardkernel / startup-time-of-zsh.md
Last active April 12, 2024 13:24
Comparison of ZSH frameworks and plugin managers

Comparison of ZSH frameworks and plugin managers

Changelog

  • update 1: add a FAQ section
  • update 2: benchmark chart and feature comparison table
  • update 3:
    • improve the table with missing features for antigen
    • new zplg times result

TLDR

@hartzell
hartzell / app-init.sh
Created January 16, 2019 23:42
A script to initialize a user's environment to use a tree of Spack packages
# -*- mode: sh -*-
# vim: set ft=sh
#
# The typical user's .bash_profile would include:
#
# APPS_MODULES="emacs git htop the-silver-searcher" # and etc....
# source /moose/apps/init.sh
#
# Even setting APPS_MODULES is optional if user is ok with default list...
#
@GaurangTandon
GaurangTandon / Citation Helper for StackExchange.user.js
Created June 9, 2018 12:15
beta version of Citation Helper for StackExchange userscript
// ==UserScript==
// @name Citation Helper for StackExchange
// @description Helps insert citations easily on StackExchange
// @author Gaurang Tandon
// @match *://*.askubuntu.com/*
// @match *://*.mathoverflow.net/*
// @match *://*.serverfault.com/*
// @match *://*.stackapps.com/*
// @match *://*.stackexchange.com/*
// @match *://*.stackoverflow.com/*
@CMCDragonkai
CMCDragonkai / nix_fetching_functions.md
Last active February 24, 2023 09:34
Nix Fetching Functions #nix

Found all these from nix-repl. Use builtins.fetchTarball for nixpkgs pinning!

builtins.fetchurl
builtins.fetchTarball
pkgs.fetchFromBitbucket
pkgs.fetchFromGitHub
pkgs.fetchFromGitLab
pkgs.fetchFromRepoOrCz
pkgs.fetchFromSavannah
@bayesball
bayesball / HOF_trajectories.R
Created December 12, 2016 12:44
Plots career trajectories for several pitchers nominated for the Hall of Fame in 2017
get_data <- function(pitcher){
require(Lahman)
require(dplyr)
get.birthyear <- function(player.id){
playerline <- filter(Master, playerID == player.id)
birthyear <- playerline$birthYear
birthmonth <- playerline$birthMonth
ifelse(birthmonth >= 7, birthyear + 1, birthyear)
}
names <- unlist(strsplit(pitcher, " "))
@gabrieleangeletti
gabrieleangeletti / autoencoder.py
Last active October 15, 2019 15:16
Denoising Autoencoder implementation using TensorFlow.
import tensorflow as tf
import numpy as np
import os
import zconfig
import utils
class DenoisingAutoencoder(object):
""" Implementation of Denoising Autoencoders using TensorFlow.
@mrphilroth
mrphilroth / scipy2015.md
Last active June 6, 2018 07:55
SciPy 2015 Talk Bibliography