Skip to content

Instantly share code, notes, and snippets.

View sqiouyilu's full-sized avatar

S. Qiouyi Lu sqiouyilu

View GitHub Profile
@unkwn1-repo
unkwn1-repo / tweet-archive-converter.py
Last active August 3, 2023 18:19
Simple JSON to CSV Method for Twitter Archive Data
#!/usr/bin/env python3
'''
IMPORTANT: Please delete the following from the tweet.js file before using this:
---> window.YTD.tweet.part0 = <----
Whilst that remains you cant parse it easily with json.load
'''
import pandas as pd
import json
from pandas.io.json import json_normalize
@CoolOppo
CoolOppo / optimal-video-to-gif-imagemagick.md
Last active June 29, 2024 10:33
Converting videos to GIFs optimally using ImageMagick

ImageMagick Video to GIF Optimization Summary

A software developer who uses IM to create Movie GIFs, Benoit Rouleau, in discussion with me, gave me a AVI video of a plane flying over, to help us mutually explore IM video conversion techniques.

However while the AVI itself is quite small, the uncompressed video is a

@octocat
octocat / .gitignore
Created February 27, 2014 19:38
Some common .gitignore configurations
# Compiled source #
###################
*.com
*.class
*.dll
*.exe
*.o
*.so
# Packages #