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
# huge inspiration from https://scriptingosx.com/2019/07/moving-to-zsh-06-customizing-the-zsh-prompt/ | |
export PROMPT='%(?.%F{green}√.%F{red}?%?)%f %B%F{blue}%1~%f%b %(!.#.❯) ' |
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
function gch { | |
BRANCH=$(git branch | fzf --cycle | tr -d '[:space:]') | |
if [[ $BRANCH =~ '^\*' ]] then | |
echo "current branch selected, nothing to do" | |
return 0 | |
fi | |
if [[ -n $BRANCH ]] then | |
git checkout $BRANCH |
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
// Shamelessly stolen from https://github.com/vercel/storage/blob/6104c9fa9731b9610d9e4e8b68652b27d355b0ba/packages/postgres/src/index.ts | |
import type { QueryResult, QueryResultRow } from '@neondatabase/serverless'; | |
import { type VercelPool, createPool } from './create-pool'; | |
import type { Primitive } from './sql-template'; | |
export * from './create-client'; | |
export * from './create-pool'; | |
export * from './types'; | |
export { postgresConnectionString } from './postgres-connection-string'; |
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
const IS_DRY_RUN = false | |
const FONTS_TO_REPLACE = ['Arial', 'Times New Roman'] | |
const REPLACING_FONT = 'Helvetica Neue' | |
function convertFonts() { | |
const doc = DocumentApp.getActiveDocument(); | |
const body = doc.getBody(); | |
const paragraphs = body.getParagraphs(); |
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
ls *.md | each { |it| $it.name | parse '{file_name}.{extension}' | get file_name } | flatten | each { |it| to-odt $it } |
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
git log --format="%Cgreen%h %Creset| %Cblue%cs %Creset| %s" |
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
// Resets the Collection | |
Clear(colTableList);; | |
If( | |
DataSourceInfo( | |
'Table To Check'; | |
DataSourceInfo.ReadPermission | |
); | |
Collect( | |
colTableList; | |
{ |
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
// Note: GruppidiOffice365 will vary according to your PowerApps UI language. Yes, it's ugly | |
Set( | |
varIsInGroup; | |
User().Email in GruppidiOffice365.ListGroupMembers("GROUP_ID").value.userPrincipalName || | |
User().Email in GruppidiOffice365.ListGroupMembers("GROUP_ID").value.mail | |
);; |
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
const accordionsMachine = Machine({ | |
id: "list-element-accordions", | |
initial: "closed", | |
states: { | |
closed: { | |
on: { | |
OPEN_LIST_ELEMENT: { | |
target: "path-accordions", | |
}, | |
}, |