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
<!doctype html> | |
<title>File Uploader</title> | |
<style> | |
body, | |
.center { | |
margin: auto; | |
width: 50%; | |
border: 3px solid green; | |
padding: 10px; | |
} |
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 logging | |
''' | |
Set up logger | |
''' | |
log = logging.getLogger(__file__.rsplit('/',1)[1]) ## if running interactively with ipython, replace this with a descriptive string | |
log.propagate = False | |
log.setLevel(logging.DEBUG) | |
logfile = 'test.log' |
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
wdiff -n -w $'~~' -x $'~~' -y $'\\textcolor{blue}{' -z '}' base.md new.md | pandoc -o diff.pdf |
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
<machine MACH="arc4"> | |
<DESC> | |
A port of CEM to the leeds ARC4 machine. CEMAC. | |
</DESC> | |
<NODENAME_REGEX>.*.arc*</NODENAME_REGEX> | |
<OS>LINUX</OS> | |
<COMPILERS>intel</COMPILERS> | |
<MPILIBS>mpich</MPILIBS> | |
<PROJECT>None</PROJECT> | |
<SAVE_TIMING_DIR></SAVE_TIMING_DIR> |
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
<compiler MACH="arc4"> | |
<SLIBS> | |
<append> -I$ENV{ILIBS}/include -I$ENV{ILIBS}/lib -Wl,-rpath -Wl,%{ILIBS}/lib -Wl,--enable-new-dtags -L$ENV{ILIBS}/lib -lmpi_usempif08 -lmpi_usempi_ignore_tkr -lmpi_mpifh -lmpi -L$ENV{ILIBS}/lib -lnetcdff -lnetcdf</append> | |
</SLIBS> | |
<ESMF_LIBDIR>/home/home01/earfw/esmf_arc4/lib/libO/Linux.intel.64.openmpi.default/</ESMF_LIBDIR> | |
</compiler> |
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
/*************************************************************************** | |
This is a library for the CCS811 air | |
This sketch reads the sensor | |
Designed specifically to work with the Adafruit CCS811 breakout | |
----> http://www.adafruit.com/products/3566 | |
These sensors use I2C to communicate. The device's I2C address is 0x5A |
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 collection of Tile tools in python. | |
Author: Daniel Ellis 2022 | |
Contact: daniel.ellis.research (a-t) gmail (dot) com | |
Article: https://medium.com/p/e54de570d0bd | |
''' | |
import mpmath as mp |
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 script to generate a synthetic dataset replacing the original one. | |
Author: danielellisresearch.com | |
''' | |
# !pip install synthia pandas | |
import pandas as pd |
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
# headless browser | |
from selenium import webdriver | |
from webdriver_manager.chrome import ChromeDriverManager | |
from selenium.webdriver.chrome.options import Options | |
import re | |
url = 'myurl.com' | |
querySelect = 'section' |
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
<script> | |
import {onMount} from 'svelte'; | |
export let title = ''; | |
export let description = ''; | |
export let url = ''; | |
export let image = ''; | |
export let type = 'article'; | |
export let print = false; |