Skip to content

Instantly share code, notes, and snippets.

View mhoffman's full-sized avatar

Max Hoffmann mhoffman

View GitHub Profile
@mhoffman
mhoffman / README
Last active March 16, 2016 16:47
Gazpacho Legacy
This is a really plain gist to keep the latest gazpacho version around.
# ~/.bashrc: executed by bash(1) for non-login shells.
# .see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
# If running non interactively, do nothing
########################################################
#|# Preamble #
########################################################
[ -z "$PS1" ] && return
set nocompatible " be iMproved
filetype off " required!
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
"" Plugin Manager
Plugin 'gmarik/Vundle.vim'
"" Meta/Navigation
set nocompatible " be iMproved
filetype off " required!
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
"" Plugin Manager
Plugin 'gmarik/Vundle.vim'
"" Meta/Navigation
set nocompatible " be iMproved
filetype off " required!
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
"" Plugin Manager
Plugin 'gmarik/Vundle.vim'
"" Meta/Navigation
VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Jul 13 2016 11:34:49)
MacOS X (unix) version
Included patches: 1-1129
Compiled by MacPorts
Huge version without GUI. Features included (+) or not (-):
+acl +farsi +mouse_netterm +syntax
+arabic +file_in_path +mouse_sgr +tag_binary
+autocmd +find_in_path -mouse_sysmouse +tag_old_static
-balloon_eval +float +mouse_urxvt -tag_any_white
-browse +folding +mouse_xterm -tcl
This file has been truncated, but you can view the full file.
@article{krug_boundary-induced_1991,
title = {Boundary-induced phase transitions in driven diffusive systems},
volume = {67},
url = {http://link.aps.org/doi/10.1103/PhysRevLett.67.1882},
doi = {10.1103/PhysRevLett.67.1882},
abstract = {Steady states of driven lattice gases with open boundaries are investigated. Particles are fed into the system at one edge, travel under the action of an external field, and leave the system at the opposite edge. Two types of phase transitions involving nonanalytic changes in the density profiles and the particle number fluctuation spectra are encountered upon varying the feeding rate and the particle interactions, and associated diverging length scales are identified. The principle governing the transitions is the tendency of the system to maximize the transported current.},
number = {14},
urldate = {2014-03-06},
#!/usr/bin/python
import os
import sys
import json
from collections import defaultdict
sys.path.append('/nfs/slac/g/suncatfs/data_catapp')
from tools import extract_atoms, check_reaction
#!/usr/bin/python
import os
import sys
import json
from collections import defaultdict
sys.path.append('/nfs/slac/g/suncatfs/data_catapp')
from tools import extract_atoms, check_reaction
#!/bin/bash
# Turn scientic notation of rational number
in="$(echo ${*} | sed -e 's/\([0-9.]\)[eE]\([0-9+-]\)/\1*10^\2/g' -e 's/--/+/g' )"
# calculate and turn back to scientific notation
printf "%.7f\n" $(echo "scale=63; ${in}" | bc ;exit)