Skip to content

Instantly share code, notes, and snippets.

import numpy as np
# Confined to square matrices
n = 5
width = n
height = n
dim = n*n - 1
# Lie Bracket
def Lie_Bracket(A,B):
@jcguu95
jcguu95 / README.md
Created May 26, 2019 15:51 — forked from hubgit/README.md
Remove metadata from a PDF file, using exiftool and qpdf. Note that embedded objects may still contain metadata.

Anonymising PDFs

PDF metadata

Metadata in PDF files can be stored in at least two places:

  • the Info Dictionary, a limited set of key/value pairs
  • XMP packets, which contain RDF statements expressed as XML

PDF files

@jcguu95
jcguu95 / remove-instagram-unfollowed-content.js
Last active September 3, 2024 18:06
Remove Instagram Unfollowed Content
// ==UserScript==
// @name Remove Instagram Unfollowed Content
// @version 2024-03-02
// @author Jin-Cheng Guu
// @match https://www.instagram.com/*
// @description Remove unfollowed content from the instagram main page.
// ==/UserScript==
(function() {
@jcguu95
jcguu95 / remove-facebook-unfollowed-content.js
Last active March 1, 2024 06:22
Remove Facebook Unfollowed Content
// ==UserScript==
// @name Remove Facebook Unfollowed Content
// @version 2024-03-02
// @author Jin-Cheng Guu
// @match https://www.facebook.com/*
// @description Remove unfollowed content from the Facebook main page.
// ==/UserScript==
(function() {
@jcguu95
jcguu95 / remove-facebook-feeds.js
Last active March 1, 2024 14:26
Remove Facebook Feeds
// ==UserScript==
// @name Remove Facebook Feeds
// @version 2024-03-02
// @author Jin-Cheng Guu
// @match https://www.facebook.com/*
// @description Remove feeds from the Facebook main page.
// ==/UserScript==
(function() {