Skip to content

Instantly share code, notes, and snippets.

View mcdlee's full-sized avatar

Sin-Di Lee mcdlee

View GitHub Profile
import os
import numpy as np
import nibabel as nib
import matplotlib.pyplot as plt
from matplotlib.colors import LinearSegmentedColormap
%matplotlib inline
path1 = os.path.join('folder', 'a.img') #path of file 1
img1 = nib.load(path1)
@mcdlee
mcdlee / TextMagic.py
Last active April 8, 2020 19:49 — forked from anonymous/TextMagic.py
Send SMS via TextMagic API and Python
# import modules
from textmagic.rest import TextmagicRestClient
def runAPI():
username = <username>
token = <token>
global client
client = TextmagicRestClient(username, token)
def messagetext(name, examDate, examTime):
#!/usr/bin/env python
#coding:UTF-8
import re
import json
import requests
import datetime
import pandas as pd
headers = {
"Accept":"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8",