Mix.install([
{:kino_promptbuddy, github: "fredguth/kino_promptbuddy"},
{:kino, "~>0.17.0"},
])
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
| gh auth login | |
| gh api -X PUT /notifications -H "X-GitHub-Api-Version: 2022-11-28" |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
| # Author: Pedro Borges | |
| import heapq | |
| import sys | |
| def knapsack(val, wt, total_w): | |
| elements = transform_to_list_dict(val, wt) | |
| open_list = [] | |
| closed_list = [] | |
| # set to mark the nodes already seen | |
| generated_nodes = set() |
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
| for file in *.pdf; do sips -s format png "$file" --out "${file%.pdf}.png"; done ▼ at 10:43:40 |
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
| gh issue transfer <issue ID> <destination repo> | |
| So a few shell pipes later and we have this: | |
| gh issue list -s all -L 500 --json number | \ | |
| jq -r '.[] | .number' | \ | |
| xargs -I% gh issue transfer % https://github.com/<destination repo> |
NewerOlder