Skip to content

Instantly share code, notes, and snippets.

View glasgowm148's full-sized avatar
🎯
Focusing

Mark Glasgow glasgowm148

🎯
Focusing
View GitHub Profile
@CermakM
CermakM / datatables-csv-button.py
Created July 1, 2019 19:20
DataTables pandas integration with CSV export button
# ---
# jupyter:
# jupytext:
# text_representation:
# extension: .py
# format_name: light
# format_version: '1.4'
# jupytext_version: 1.1.1
# kernelspec:
# display_name: jupyter-datatables
@pnathan
pnathan / pnathan.lisp
Created April 9, 2017 06:32
pnathan.com
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;; pnathan.com
;;;;
(ql:quickload '(:cl-who
:alexandria
:cl-fad
:cl-ppcre
:cl-markdown
@ahwagner
ahwagner / pubmed_date.py
Last active September 1, 2019 22:31
A Python method for extracting the date from a PubMed article into a Pandas datetime object
import requests
import datetime
import pandas as pd
from bs4 import BeautifulSoup
__author__ = "Alex H. Wagner"
def pandas_datetime_from_pmid(pmid):
"""Returns a pandas datetime object corresponding to the NCBI reported publication date for a PubMed ID (pmid)"""
@cortesben
cortesben / Angular-cli.md
Last active July 31, 2024 18:45
Bash commands and Angular CLI commands

#Angular-cli oh shit!

https://cli.angular.io/reference.pdf

Commands Description
ng help returns all commands with flags they can take as a param
ng new [project-name] create a brand new angular project with live server BANG!
ng init grabs name from folder that already exist
@soheilhy
soheilhy / nginxproxy.md
Last active September 19, 2024 06:16
How to proxy web apps using nginx?

Virtual Hosts on nginx (CSC309)

When hosting our web applications, we often have one public IP address (i.e., an IP address visible to the outside world) using which we want to host multiple web apps. For example, one may wants to host three different web apps respectively for example1.com, example2.com, and example1.com/images on the same machine using a single IP address.

How can we do that? Well, the good news is Internet browsers

@ChewingPencils
ChewingPencils / checkvist.py
Last active February 14, 2019 21:11
Python Wrapper for Checkvist. Used for a Drafts app action #python #pythonista #url_scheme
#!/usr/bin/env python
# Title: Checkvist API Wrapper
# Author: Sean Korzdorfer
# Date: Tue Nov 20 2012
#
# All documentation found here involves this wrapper. For complete API docs, please see
# https://checkvist.com/auth/api
#
# This wrapper was designed to be simple enough for use with the Pythonista app:
# https://itunes.apple.com/us/app/pythonista/id528579881?mt=8
@philippbayer
philippbayer / allParser.py
Created January 17, 2012 13:34
openSNP-parser for all files in Python 3
#!/usr/bin/python3
# This Script parses a couple of genotyping-files downloaded from openSNP.
# It supports deCODEme, FamilyTreeDNA and 23andme-files.
# If you don't like the Object Oriented Magic just comment out the lines with allSnps.append
# and do your own magic.
# Example-Useage is name of the script followed by as many filenames as you like.
# ./megaparser.py 200.23andme.12 92.decodeme.1 [...]
# or: