Skip to content

Instantly share code, notes, and snippets.

View neonwatty's full-sized avatar

Jeremy Watt neonwatty

View GitHub Profile
@ronaldsuwandi
ronaldsuwandi / docker-compose.yml
Last active June 24, 2024 23:04
Docker Compose for Jupyter Lab/Notebook (no token/password required)
version: "3.9"
services:
jupyter:
image: quay.io/jupyter/scipy-notebook
ports:
- "8888:8888"
volumes:
- ./notebooks:/home/jovyan/
environment:
@anthonyk1225
anthonyk1225 / index.js
Last active October 19, 2023 14:11
Styling for react-paginate`'s first example in documentation
import React, { useState } from 'react';
import ReactPaginate from 'react-paginate';
import ArrowBackIosIcon from '@material-ui/icons/ArrowBackIos';
import ArrowForwardIosIcon from '@material-ui/icons/ArrowForwardIos';
import './pagination.css';
function App() {
const [pageCount, setPageCount] = useState(1);
const itemsLoaded = ({
limit,
@michaelosthege
michaelosthege / convert.py
Last active February 28, 2024 22:16
Convert MP4/AVI clips to GIF with a single Python function
import imageio
import os, sys
class TargetFormat(object):
GIF = ".gif"
MP4 = ".mp4"
AVI = ".avi"
def convertFile(inputpath, targetFormat):
"""Reference: http://imageio.readthedocs.io/en/latest/examples.html#convert-a-movie"""