Skip to content

Instantly share code, notes, and snippets.

@gidden
gidden / hw.cc
Created June 3, 2015 22:15
hw.cc
#include <iostream>
int main() {
std::cout << "hello world!\n";
return 0;
};
@gidden
gidden / gist:9d6e9f7a562c59c7e301
Created May 25, 2015 18:21
cyclist build error
Buildfile: /home/gidden/work/cyclus/cyclist/build.xml
setup-staging-area:
[mkdir] Created dir: /home/gidden/work/cyclus/cyclist/deploy
[mkdir] Created dir: /home/gidden/work/cyclus/cyclist/deploy/externalLibs
[copy] Copying 1 file to /home/gidden/work/cyclus/cyclist/deploy/externalLibs
[copy] Copying 1 file to /home/gidden/work/cyclus/cyclist/deploy/externalLibs
[copy] Copying 1 file to /home/gidden/work/cyclus/cyclist/deploy/externalLibs
[copy] Copying 1 file to /home/gidden/work/cyclus/cyclist/deploy/externalLibs
[copy] Copying 1 file to /home/gidden/work/cyclus/cyclist/deploy/externalLibs
@gidden
gidden / gist:5ec5d3680d464e438cd6
Created May 12, 2015 21:36
cymetric test errors
/home/gidden/.local/lib/python2.7/site-packages/cymetric/metrics.py:10: QAWarning: pyne.data is not yet QA compliant.
from pyne import data
/home/gidden/.local/lib/python2.7/site-packages/cymetric/metrics.py:11: QAWarning: pyne.material is not yet QA compliant.
import pyne.enrichment as enr
/home/gidden/.local/lib/python2.7/site-packages/cymetric/metrics.py:11: QAWarning: pyne.enrichment is not yet QA compliant.
import pyne.enrichment as enr
:
.CL:CC CC _Q _Q _Q_Q _Q _Q _Q
CC;CCCCCCCC:C; /_\) /_\)/_/\\) /_\) /_\) /_\)
CCCCCCCCCCCCCl __O|/O___O|/O_OO|/O__O|/O__O|/O____________O|/O__
@gidden
gidden / 2_Sources_3_Reactors.xml
Last active August 29, 2015 14:19
lifetimes breaks deployinst
<!-- 2 Sources 3 Reactors -->
<simulation>
<control>
<duration>5</duration>
<startmonth>1</startmonth>
<startyear>2000</startyear>
</control>
<archetypes>
@gidden
gidden / gist:1d92e894c6a49c43538f
Created April 6, 2015 20:13
hanging in infiletodb
#line 1 "/home/gidden/work/cyclus/cycamore/src/tariff_region.h"
#ifndef CYCLUS_AGENTS_TARIFF_REGION_H_
#define CYCLUS_AGENTS_TARIFF_REGION_H_
#include <string>
#include "cyclus.h"
namespace cyclus {
@gidden
gidden / xsplt.py
Last active August 29, 2015 14:16
Trying to make Kaeri-like plots
from pyne.endf import Library
from pyne import nucname as nn
import matplotlib.pyplot as plt
import os
from urllib import urlretrieve
nucs = ['U235']
nmt = 18 # for (z, fission)
for nuc in nucs:
@gidden
gidden / pres.org
Created March 8, 2015 01:42
Org-mode Beamer Hello World

A Presentation

File Edit Options Buffers Tools Org Tbl Help

\cite{behnel2010cython}
======================================================================
FAIL: test_abi.test_abi_stability
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/home/gidden/work/cyclus/cyclus/tests/test_abi.py", line 32, in test_abi_stability
assert_true(obs)
AssertionError: False is not true
-------------------- >> begin captured stdout << ---------------------
@gidden
gidden / README.rst
Last active August 29, 2015 14:13
SWC Collaboration

This gist provides a minimal setup and example of the git collaborate exercise for SWC (e.g., here). Use setup.sh to get a minimal working repository example. A repos represent the master upstream version, B and C repos represent forks. *-remote directories represent Github repos (and forks), while ~*-local` directories correspond to local copies. exercise.sh goes through what students will see for both the PR execise and "experiencing a conflict".