This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const enum TAB { | |
inactive = "link_1uvuyao-o_O-tabTrigger_pbokdw-o_O-inactiveTab_1t8hj6j", | |
active = "link_1uvuyao-o_O-tabTrigger_pbokdw-o_O-activeTab_t62l0x" | |
} | |
const sectionLink = document.createElement("a"); | |
sectionLink.className = TAB.inactive; | |
sectionLink.setAttribute("role", "tab"); | |
sectionLink.setAttribute("aria-selected", "false"); | |
sectionLink.href = "javascript:void(0)"; | |
sectionLink.textContent = "Statistics"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.link_1uvuyao-o_O-computing_77ub1h { | |
color: #1865f2 !important; | |
border-color: #1865f2 !important; | |
} | |
.link_1uvuyao-o_O-computing_77ub1h:hover { | |
color: #0f52cf !important; | |
border-color: #0f52cf !important; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tabs.childNodes[0].addEventListener("click", () => { | |
if (!document.querySelector(".about_544kid")) { | |
this.onProgramAboutPage(programData); | |
} | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
upstream rigby { | |
server 127.0.0.1:4433; | |
} | |
server { | |
listen 443 ssl; | |
listen [::]:443 ssl; | |
server_name rigby.space; | |
access_log /var/log/nginx/rigby.space.log; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server { | |
listen 443 ssl; | |
listen [::]:443 ssl; | |
server_name krikorian.dev; | |
access_log /var/log/nginx/krikorian.dev.log; | |
ssl_certificate /etc/letsencrypt/live/krikorian.dev/fullchain.pem; | |
ssl_certificate_key /etc/letsencrypt/live/krikorian.dev/privkey.pem; | |
root /root/static/krikorian.dev; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"bytes" | |
"fmt" | |
"math/big" | |
"sort" | |
crypto "crypto/rand" | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PATH="$PATH:/usr/texbin:/Library/TeX/texbin:/Library/TeX/Distributions/Programs/texbin" | |
name=`echo "$CR_FILENAME" | sed 's/\(.*\)\..*/\1/'` | |
# latexcalc | |
if [[ $name == *"Test"* || $name == *"Lesson"* ]]; then | |
latexcalc -o "temp.tex" "$CR_FILENAME" | |
else | |
cp "$CR_FILENAME" "temp.tex" | |
echo "Doesn't appear to be have math" | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
struct Messages: View { | |
@EnvironmentObject var account: Account | |
@ObservedObject var group: Group | |
var body: some View { | |
RefreshableScrollView(perform: group.loadOlderMessages) { | |
ScrollViewReader { scrollView in | |
LazyVStack { | |
ForEach(group.messages, id: \.id) { message in | |
if let user = group.users.first(where: { message.userID == $0.id }) { | |
MessageView(message, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# requires GNU `rename` | |
rename 's/(.x264|.BluRay|.720p|.1080p|.2160p|.YIFY|.AAC^5|.AAC5\.1|.BrRip|.WEBRip|.VPPV|.BOKUTOX|\-\[YTS..{2}\])//g' *.mp4 | |
rename 's/\.([^mp4])/ $1/g' *.mp4 | |
if [ "$1" == "--remove-years" ]; then | |
rename 's/ \d{4}(\.mp4)/$1/' *.mp4 | |
fi | |
echo "Done!" | |
# Example: PVT.CHAT.2020.1080p.BluRay.x264.AAC5.1-[YTS.MX]. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
syntax on | |
filetype plugin indent on | |
set autowrite | |
set encoding=utf-8 | |
set cmdheight=2 | |
" For standard vim, ctrl-v for paste, and ctrl-z to undo | |
:inoremap <C-v> <C-o>"*p | |
:imap <C-z> <C-o>u | |
" Command-r to run Go |
OlderNewer