This file contains hidden or 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
| alias git-wip='function _git-wip() { | |
| branchName="WIP/$(date -Idate | cut -c1-4)/$(date -Idate | cut -c6-7)/$(date -Idate | cut -c9-10)" | |
| # git checkout -b "$branchName" || git checkout "$branchName" | |
| # Check if the branch already exists | |
| if git rev-parse --verify "$branchName" >/dev/null 2>&1; then | |
| # Check out the existing branch | |
| git checkout "$branchName" | |
| else | |
| # Create a new branch and check it out | |
| git checkout -b "$branchName" |
This file contains hidden or 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
| # Hololens update blocker file | |
| 0.0.0.0 microsoft.com | |
| 0.0.0.0 www.microsoft.com |
This file contains hidden or 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
| # print working dir | |
| # cd $(dirname "${BASH_SOURCE[0]}") | |
| pwd |
This file contains hidden or 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
| $recorder = 1; | |
| $pdf_mode = 1; | |
| $bibtex_use = 2; | |
| $pdflatex = "pdflatex --shell-escape %O %S"; | |
| $pdf_previewer = "start open -a preview %O %S"; | |
| add_cus_dep('glo', 'gls', 0, 'run_makeglossaries'); | |
| add_cus_dep('acn', 'acr', 0, 'run_makeglossaries'); | |
| sub run_makeglossaries { |
This file contains hidden or 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
| javascript: (function () { | |
| function fetchBibTeX(url) { | |
| fetch(url) | |
| .then((response) => response.json()) | |
| .then((data) => { | |
| const authors = data.authorships | |
| .map((author) => author.raw_author_name) | |
| .join(" and "); | |
| const title = data.title; | |
| const journal = data.primary_location.source.display_name; |
This file contains hidden or 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 claude from "@anthropic-ai/tokenizer/claude.json"; | |
| import { Tiktoken, TiktokenBPE } from "js-tiktoken"; | |
| export function countTokens(text: string): number { | |
| const tokenizer = getTokenizer(); | |
| const encoded = tokenizer.encode(text.normalize("NFKC")); | |
| return encoded.length; | |
| } |
This file contains hidden or 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
| { | |
| "openapi": "3.1.0", | |
| "info": { | |
| "title": "Chrome Platform Status", | |
| "version": "0.0.0", | |
| "description": "https://chromestatus.com/", | |
| "contact": {} | |
| }, | |
| "servers": [ | |
| { |
If you have any issues with macOS, or need anything related to it check this documentation
Install Xcode Command Line tools :
This file contains hidden or 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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title>Page Loading...</title> | |
| <script> | |
| function fetchAndReplaceContent(basePath, additionalSegments) { | |
| if (additionalSegments.length === 0) { | |
| document.body.innerHTML = '<h1>Page not found.</h1>'; |