Skip to content

Instantly share code, notes, and snippets.

@smoh
smoh / README.md
Created October 13, 2016 17:59 — forked from weiglemc/.block
D3 Scatterplot Example
@smoh
smoh / grep_test_energy_jacobi
Created September 29, 2016 23:23
galpy issue test_orbit
>>> ----------------------------------------------------------
>>> potential = BurkertPotential
>>> integrator = dopr54_c ttol = -10.0
>>> _integrateFullOrbit method = dopr54_c
>>> _integrateFullOrbit method = dopr54_c
>>> ----------------------------------------------------------
>>> potential = CosmphiDiskPotential
>>> ----------------------------------------------------------
>>> potential = DehnenBarPotential
>>> ----------------------------------------------------------
yt : [INFO ] 2016-05-03 11:03:23,713 Allocating for 1.472e+03 particles
---------------------------------------------------------------------------
ZeroDivisionError Traceback (most recent call last)
<ipython-input-8-5aaf470c0415> in <module>()
----> 1 ds.field_list
/Users/semyeong/miniconda2/envs/yt/lib/python2.7/site-packages/yt/data_objects/static_output.pyc in field_list(self)
361 @property
362 def field_list(self):
--> 363 return self.index.field_list
@smoh
smoh / .bashrc
Last active August 30, 2015 23:32 — forked from mt3o/.bashrc
Bash prompt
Color_Off='\e[0m' # Text Reset
# Regular Colors
Black='\e[0;30m' # Black
Red='\e[0;31m' # Red
Green='\e[0;32m' # Green
Yellow='\e[0;33m' # Yellow
Blue='\e[0;34m' # Blue
Purple='\e[0;35m' # Purple
Cyan='\e[0;36m' # Cyan
../scons/bin/scons --no-gsl --no-nlopt \
--header-path=/usr/local/fftw/gcc/3.3.3/include:/usr/peyton/common/software/cfitsio/3.30/include \
--lib-path=/usr/local/fftw/gcc/3.3.3/lib64:/usr/peyton/common/software/cfitsio//3.30/lib imfit
scons: Reading SConscript files ...
extra header search paths: ['/usr/local/fftw/gcc/3.3.3/include', '/usr/peyton/common/software/cfitsio/3.30/include']
extra library search paths: ['/usr/local/fftw/gcc/3.3.3/lib64', '/usr/peyton/common/software/cfitsio//3.30/lib']
scons: done reading SConscript files.
scons: Building targets ...
#!/bin/sh
# This script will install a Git pre-push hook that prevents force pushing the master branch.
# Install in current Git repo:
# curl -fL https://gist.githubusercontent.com/smoh/53e32f3bcf8dc14f8696/raw/install-pre-push.sh | sh
# Uninstall:
# rm .git/hooks/pre-push
# in each repository that you've added this to.
GITROOT=`git rev-parse --show-toplevel 2> /dev/null`
500 9.62e+09 9.23e+10 0.559079 0.542508 0.520701 35.15 431 0.77652 0.02744 0.1967 0.17821 0.16751 0.14840 0.16231 0.14734 0.13515 0.11970
P000 yt : [DEBUG ] 2014-12-06 19:03:19,091 Appending object to redshift0029 (type: <class 'yt.data_objects.hierarchy.AMRSphere'>)
501 9.89e+09 1.02e+11 0.496570 0.610469 0.420047 36.39 446 0.79591 0.03190 0.2307 0.21303 0.17486 0.15611 0.20542 0.19120 0.14553 0.13041
P001 yt : [DEBUG ] 2014-12-06 19:03:19,102 Opening MPI Barrier on 1
P000 yt : [DEBUG ] 2014-12-06 19:03:19,144 Going to obtain []
P000 yt : [DEBUG ] 2014-12-06 19:03:19,148 Preloading ['Density', 'Density', 'Temperature', 'Temperature', 'Density', 'Density', 'Temperature', 'Temperature', 'Density', 'Density']
P000 yt : [DEBUG ] 2014-12-06 19:03:19,148 Preloading ['Density', 'Density', 'Temperature', 'Temperature', 'Density', 'Density', 'Temperature', 'Temperature', 'Density', 'Density'] from 81 grids
P000 yt : [DEBUG ] 2014-12-06 19:03:20,928 Appending o
{%- extends 'full.tpl' -%}
{% block input_group -%}
<div class="input_hidden">
{{ super() }}
</div>
{% endblock input_group %}
{%- block header -%}
{{ super() }}
%!TEX TS-program = xelatex
\documentclass[12pt]{scrartcl}
% The declaration of the document class:
% The second line here, i.e.
% \documentclass[12pt]{scrartcl}
% is a standard LaTeX document class declaration:
% we say what kind of document we are making in curly brackets,
% and specify any options in square brackets.
@smoh
smoh / _readme.md
Created September 29, 2013 03:24 — forked from shime/_readme.md

Having trouble installing the latest stable version of tmux?

Save yourself some time and run this little fellow!

Prerequisities

  • gcc
  • wget