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
{ | |
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json", | |
"final_space": true, | |
"console_title": true, | |
"console_title_style": "template", | |
"console_title_template": "{{.Folder}}{{if .Root}} :: root{{end}} :: {{.Shell}}", | |
"blocks": [ | |
{ | |
"type": "prompt", | |
"alignment": "left", |
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
{ | |
"$schema": "https://aka.ms/terminal-profiles-schema", | |
"actions": | |
[ | |
{ | |
"command": | |
{ | |
"action": "copy", | |
"singleLine": false | |
}, |
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
# ~/.bashrc: executed by bash(1) for non-login shells. | |
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc) | |
# for examples | |
# If not running interactively, don't do anything | |
case $- in | |
*i*) ;; | |
*) return;; | |
esac |
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
{ | |
"theme":"chaos_theory", | |
"themeLight":"serika", | |
"themeDark":"serika_dark", | |
"autoSwitchTheme":false, | |
"customTheme":false, | |
"customThemeColors":[ | |
"#323437", | |
"#e2b714", | |
"#e2b714", |
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
// Example: | |
// await magic("2021-01-01T00:00:00.000Z", "2022-12-29T00:00:00.000Z", 100); | |
function nextTweet(current) { | |
return current.parentElement.parentElement.parentElement.nextElementSibling?.querySelector('[data-testid="tweet"]'); | |
} | |
function getUnlikeButton(tweetElement) { | |
return tweetElement.querySelector('[data-testid="unlike"]'); | |
} |
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
import fs from 'fs'; | |
const content = fs.readFileSync("./uplay_traffic_data.csv").toString(); | |
const lines = content.split("\n").slice(1); | |
const playTimes = {} | |
for (const line of lines) { | |
const [ | |
_accountId, |