This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
%a Locale’s abbreviated weekday name. | |
%A Locale’s full weekday name. | |
%b Locale’s abbreviated month name. | |
%B Locale’s full month name. | |
%c Locale’s appropriate date and time representation. | |
%d Day of the month as a decimal number [01,31]. | |
%H Hour (24-hour clock) as a decimal number [00,23]. | |
%I Hour (12-hour clock) as a decimal number [01,12]. | |
%j Day of the year as a decimal number [001,366]. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## based on https://wakari.io/nb/url///wakari.io/static/notebooks/Lecture_4_Matplotlib.ipynb | |
## create double pendulum animation frames using matplotlib | |
from matplotlib import animation | |
from scipy.integrate import odeint | |
# solve the double pendulum motion | |
g = 9.82; L = 0.5; m = 0.1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# http://matplotlib.org/examples/pylab_examples/multipage_pdf.html | |
# This is a demo of creating a pdf file with several pages. | |
import datetime | |
import numpy as np | |
from matplotlib.backends.backend_pdf import PdfPages | |
import matplotlib.pyplot as plt | |
# Create the PdfPages object to which we will save the pages: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Bash Settings | |
# BASH COLORS | |
# Reset | |
Color_Off='\e[0m' # Text Reset | |
# Regular Colors | |
Black='\e[0;30m' # Black | |
Red='\e[0;31m' # Red | |
Green='\e[0;32m' # Green |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pandas as pd | |
import geopandas as gpd | |
import numpy as np | |
from geopandas.tools import sjoin | |
import folium | |
from folium.plugins import MarkerCluster | |
from folium import IFrame | |
import shapely | |
from shapely.geometry import Point | |
import unicodedata |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
######################################### | |
# using cell magic | |
######################################### | |
%%HTML | |
<div align="middle"> | |
<video width="80%" controls> | |
<source src="path/to/my.mp4" type="video/mp4"> | |
</video></div> | |
######################################### |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!osascript | |
# %%script osascript # use this if in an ipython shell | |
tell application "Papers" | |
set outFile to "OUTPUT:DIR:FILE.bib" | |
export ((every publication item whose manual collection names contains "COLLECTION_NAME") as list) to outFile | |
end tell |