Skip to content

Instantly share code, notes, and snippets.

View jacobic's full-sized avatar
🌴
On vacation

jacobic jacobic

🌴
On vacation
View GitHub Profile
@jacobic
jacobic / Isotropic_particle_decay_with_Gaussian_smearing.c
Last active May 22, 2016 10:43
Isotropic particle decay with Gaussian smearing
#include <stdio.h>
#include <gsl/gsl_rng.h>
#include <gsl/gsl_randist.h>
#include <time.h> //useful when seeding random number with time and measuring the time it takes to perform computations
#include <math.h>
double smearing (double a, double a_res, gsl_rng *rand_num);
void process_data (FILE *file, int n, int n_pixels, double x_range, double y_range, int ***count);
void plot_results(int graph_type, int n, double x_range, double y_range);
int main (void)
{
@jacobic
jacobic / .bash_profile
Created August 25, 2016 21:06 — forked from natelandau/.bash_profile
Mac OSX Bash Profile
# ---------------------------------------------------------------------------
#
# Description: This file holds all my BASH configurations and aliases
#
# Sections:
# 1. Environment Configuration
# 2. Make Terminal Better (remapping defaults and adding functionality)
# 3. File and Folder Management
# 4. Searching
# 5. Process Management
@jacobic
jacobic / README.md
Created September 5, 2016 18:43 — forked from jxson/README.md
README.md template

Synopsis

At the top of the file there should be a short introduction and/ or overview that explains what the project is. This description should match descriptions added for package managers (Gemspec, package.json, etc.)

Code Example

Show what the library does as concisely as possible, developers should be able to figure out how your project solves their problem by looking at the code example. Make sure the API you are showing off is obvious, and that your code is short and concise.

Motivation