Skip to content

Instantly share code, notes, and snippets.

View lamyj's full-sized avatar

Julien Lamy lamyj

  • Université de Strasbourg
View GitHub Profile
@lamyj
lamyj / rare_bloch_epg.py
Created August 14, 2020 08:35
Simulation of a RARE sequence with Sycomore, using Bloch and EPG models
import sys
import matplotlib.pyplot
import numpy
import sycomore
from sycomore.units import *
def main():
species = sycomore.Species(1000*ms, 100*ms, delta_omega=2*Hz)
@lamyj
lamyj / wp
Last active February 20, 2024 22:35
Convert between Windows path and Linux path in WSL
#!/usr/bin/env python
from __future__ import print_function
import argparse
import json
import re
import subprocess
import sys
@lamyj
lamyj / start_gpg_agent
Created January 7, 2017 09:07
Start gpg-agent on macOS
#!/usr/bin/env python
import os
import re
import subprocess
import sys
def main():
# If necessary, run gpg-agent
if not is_running():
@lamyj
lamyj / backport_centos6.py
Last active November 12, 2015 17:28
Backport packages required for the compilation of Dopamine
import glob
import logging
import os
import re
import shutil
import subprocess
import sys
import tempfile
import urllib
import urlparse