Skip to content

Instantly share code, notes, and snippets.

View apple-phi's full-sized avatar
🍏
Making apple crumble

Lucas apple-phi

🍏
Making apple crumble
View GitHub Profile
@apple-phi
apple-phi / sp-dl.user.js
Last active June 21, 2024 10:09
Add download as zip to Sharepoint tables
// ==UserScript==
// @name SharePoint list download link
// @namespace http://tampermonkey.net/
// @version 0.1.3
// @description Add download link to SharePoint list items that contain links to files
// @author apple-phi
// @match *://*/*.aspx*
// @grant none
// @license MIT; https://opensource.org/licenses/MIT
// @run-at document-start
@apple-phi
apple-phi / data.toml
Created June 18, 2024 16:32
Part II module selection heuristic
[Area.Mechanical]
min = 4
required = [{core = 4}]
core = """4A2 Computational Fluid Dynamics
4A3 Turbomachinery I
4A7 Aircraft Aerodynamics and Design
4A9 Molecular Thermodynamics
4A10 Flow Instability
4A12 Turbulence and Vortex Dynamics
4A13 Combustion and Engines
@apple-phi
apple-phi / latex-suite.snippets.js
Last active June 18, 2024 16:34
My snippets for Obsidian Latex Suite
[
// New
{ trigger: "electron", replacement: "$\\mathrm{e}^{-}$ ", options: "tA" },
{ trigger: "ce", replacement: "\\ce{$0}$1 ", options: "mA" },
{ trigger: "choose", replacement: "{${0:n} \\choose ${1:m}}$2", options: "mA" },
{ trigger: "dsum", replacement: "\\sum\\limits_{${0:x}=${1:0}}^{${2:\\infty}}$3", options: "mA" },
{ trigger: "def", replacement: "\\triangleq", options: "mA" },
{ trigger: "(d+)C_{(d)}", replacement: "{[[0]]choose [[1]]}$0", options: "rm", priority: 2 },
{ trigger: "dot{([A-Za-z])},.", replacement: "dot{\\mathbf{[[0]]}}$0", options: "rmA" },
{ trigger: "dot{([A-Za-z])}.,", replacement: "dot{\\mathbf{[[0]]}}$0", options: "rmA" },
@apple-phi
apple-phi / JCE-Harvard.csl
Last active January 20, 2024 17:10
Zotero style for the John Carpenter Essay competition
<?xml version="1.0" encoding="utf-8"?>
<!-- Modified from http://www.zotero.org/styles/harvard-cite-them-right by Lucas Ng (2021) -->
<!-- This file attempts to follow the guidelines in the John Carpenter Essay Guidance for June 2021 -->
<style xmlns="http://purl.org/net/xbiblio/csl" class="in-text" version="1.0" demote-non-dropping-particle="sort-only" default-locale="en-GB">
<info>
<title>John Carpenter Essay Competition - Harvard</title>
<id>http://www.zotero.org/styles/harvard-cite-them-right-modified</id>
<link href="http://www.zotero.org/styles/harvard-cite-them-right" rel="self"/>
<link href="http://www.zotero.org/styles/harvard-university-of-greenwich" rel="template"/>
<link href="http://www.citethemrightonline.com/" rel="documentation"/>
@apple-phi
apple-phi / neutralino.py
Created August 17, 2021 15:47
Neutralinojs plugin for Eel
# MIT License
# Copyright (c) 2021 Lucas Ng
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions: