Skip to content

Instantly share code, notes, and snippets.

View Galadirith's full-sized avatar

Edward Fauchon-Jones Galadirith

View GitHub Profile
/^[ \t]*(?:\${2}|\\\[)[ \t]*((?:(?!\n[ \t]*\n)[\s\S])+?)[^\\](?:\${2}|\\\])\s*/gm
$$
R_{\mu \nu} - {1 \over 2}g_{\mu \nu}\,R + g_{\mu \nu} \Lambda =
{8 \pi G \over c^4} T_{\mu \nu}
$$
$$
f(x) = \int_{-\infty}^\infty
@Galadirith
Galadirith / test-file-mpp.md
Created December 17, 2014 22:16
Test file for markdown-preview-plus

Testing

$a_e s_s$ We got no food we got no money and our pets heads are falling off! haaaaaaarry. excuse me, i'd like to ass you a few questions. we're going for a ride on the information super highway. look ma i'm road kill here she comes to wreck the day. alrighty then excuse me, i'd like to ass you a few questions. your entrance was good, his was better. your entrance was good, his was better. we're $a_e$ going for a ride on the information super highway. it's because i'm green isn't it! here she comes to wrecks the day. $a_e$

@Galadirith
Galadirith / #71-1.md
Last active August 29, 2015 14:27
#71-1

hello, world

  • Unordered 1
  • Unordered 2
  • Unordered 3
  1. Ordered 1
  2. Ordered 2
  3. Ordered 4
@Galadirith
Galadirith / markdown-preview-plus#69-1
Created August 14, 2015 12:08
markdown-preview-plus#69-1
> pathwatcher-without-runas@4.5.0 install C:\Users\Galadirith\My Projects\markdown-preview-plus\node_modules\pathwatcher-without-runas
> node-gyp rebuild
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
main.cc
common.cc
handle_map.cc
pathwatcher_win.cc
Creating library C:\Users\Galadirith\My Projects\markdown-preview-plus\node_modules\pathwatcher-without-runas\build\Release\pathwatc
her.lib and object C:\Users\Galadirith\My Projects\markdown-preview-plus\node_modules\pathwatcher-without-runas\build\Release\pathwatcher
@Galadirith
Galadirith / ipython_notebook_in_git.md
Created February 24, 2016 21:36 — forked from pbugnion/ ipython_notebook_in_git.md
Keeping IPython notebooks under Git version control

This gist lets you keep IPython notebooks in git repositories. It tells git to ignore prompt numbers and program outputs when checking that a file has changed.

To use the script, follow the instructions given in the script's docstring.

For further details, read this blogpost.

The procedure outlined here is inspired by this answer on Stack Overflow.

@Galadirith
Galadirith / Remove all git tags
Created March 25, 2016 18:42 — forked from okunishinishi/Remove all git tags
Delete all git remote tags
#Delete local tags.
git tag -l | xargs git tag -d
#Fetch remote tags.
git fetch
#Delete remote tags.
git tag -l | xargs -n 1 git push --delete origin
#Delete local tasg.
git tag -l | xargs git tag -d
@Galadirith
Galadirith / check_and_change_dns
Created September 20, 2016 14:27 — forked from NickLaMuro/check_and_change_dns
Dealing with Dynamic IP's with a home server and DNSimple
#!/bin/bash
EMAIL="your_email@example.com"
API_TOKEN="API_TOKEN"
DOMAIN_ID="your_domain.com"
RECORDS=(123456 234567 345678) # Replace with the Record ID
IP="`curl -s -S http://v4.ident.me`"
STORED_IP_ADDRESS_FILENAME="$HOME/.current_external_ip_address"
# Loop through each record id in the array
@Galadirith
Galadirith / brenomd.js
Created January 1, 2017 20:16
PhenomD in the browser
(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.phenomd=f()}})(function(){var define,module,exports;return function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s}({1:[function(require,module,exports){var _,fft,math,nd,phenom;fft=require("ndarray-fft");nd=require("ndarray");_=require("underscore");math=require("mathjs");phenom=require("./phenomd.coffee");module.exports=function(m
@Galadirith
Galadirith / bundle.js
Created January 1, 2017 20:28
Raw PhenomD in the browser
(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.phenomd=f()}})(function(){var define,module,exports;return function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s}({1:[function(require,module,exports){var Constants,FinalSpin0815,FinalSpinIMRPhenomD_all_in_plane_spin_on_larger_BH,M_eta_m1_m2,PhenomD,PhenomDInternalsAmplitude,PhenomDInternalsPhase,UsefulPowers,_,absolute,amp0Func,a
# Setup Python test environment
FROM debian:jessie
# Trust maintainer of lscsoft-archive-keyring package
RUN gpg --keyserver keys.gnupg.net --recv-keys CE050D236DB6FA3F \
&& gpg -a --export CE050D236DB6FA3F | apt-key add -
# TDD LSCSoft Debian Jessie archive and install Python packages
RUN echo deb http://software.ligo.org/lscsoft/debian jessie contrib >> /etc/apt/sources.list \
&& apt-get -yqq update \