Skip to content

Instantly share code, notes, and snippets.

View virtual's full-sized avatar
🐈‍⬛
Watching cat videos

Jeanine Schoessler virtual

🐈‍⬛
Watching cat videos
View GitHub Profile
@virtual
virtual / lcm.s
Last active April 11, 2022 00:56
little man computer assembly programs
inp ;sum 5 inputs
sta sum
inp
add sum
sta sum
inp
add sum
sta sum
inp
add sum
@virtual
virtual / .gitconfig
Created April 6, 2022 16:09
gitconfig for alias settings
# ~/.gitconfig
[init]
templatedir = ~/.git_template
[user]
email = me@example.com
name = js
# git ac "my commit message"
[alias]
rom = rebase origin/master
@virtual
virtual / excel-formatting.txt
Last active January 18, 2021 15:20
Excel Custom Number Formatting
# Output as 6.56 MB, 19.65 MB
[<1000000]0.00," KB";[<1000000000]0.00,," MB";0.00,,," GB"
@virtual
virtual / common.xsl
Created September 23, 2020 21:04
OU Campus Canonical common.xsl
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE xsl:stylesheet [
<!ENTITY nbsp "&#160;">
<!ENTITY lsaquo "&#8249;">
<!ENTITY rsaquo "&#8250;">
<!ENTITY laquo "&#171;">
<!ENTITY raquo "&#187;">
<!ENTITY copy "&#169;">
<!ENTITY apos "&#39;">
<!ENTITY quot "&#34;">
@virtual
virtual / common.xsl
Created August 25, 2020 14:18
OU Campus Output
<!-- Used for outputting an include without a doctype, shows MultiEdit button -->
<xsl:output method="html" version="4.0" indent="yes" encoding="UTF-8" include-content-type="no" omit-xml-declaration="yes"/>
<!-- Used for outputting an include without a doctype, doesn't show MultiEdit button -->
<xsl:output method="xml" version="1.0" indent="yes" encoding="UTF-8" include-content-type="no" omit-xml-declaration="yes"/>
@virtual
virtual / umich-find-replace.txt
Last active August 24, 2020 20:23
Suggested Find/Replace for updating templates
# Can't match on full string, some have site tag, some don't
F:
"/_resources/xsl/interior.xsl"
R:
"/_resources/update20/xsl/interior.xsl"
# Not all pages have all old layout options, delete all options first, then delete the parameter
{
"lineTemplate": "<span class=\"{value}}\"></span> {{text}}",
"options": [
":Default background:{{text}}",
"bg-white:White",
"bg-primary:Yellow (Primary)",
"bg-spring-wood:Light Grey",
"bg-light-blue:Light Blue",
"bg-azure:Blue",
"bg-secondary:Dark Blue"
@virtual
virtual / move.bash
Last active June 12, 2020 15:25
Move all sidenavs
## Changes side nav structure from ./includes/_sidenav.inc to ./_nav.inc for all subfolders
# example, move all _sidenav.inc files up a level (outside includes folder)
find . -mindepth 3 -name "*.inc" -type f -execdir mv "{}" $(dirname "{}")/.. \;
# remove all folders named includes
find . -name includes -type d -exec rm -rf {} \;
# rename all _sidenav.inc to _nav.inc
find . -name "_sidenav.inc" -type f -execdir mv "{}" _nav.inc \;
@virtual
virtual / temp.css
Last active May 11, 2020 16:29
Google search results list domain
.s, h3, cite span, .action-menu, g-section-with-header {
display: none !important;
}
@virtual
virtual / check.js
Created February 12, 2020 22:38
If Function Exists JS
if (typeof me.onChange === "function") {
// safe to use the function
}