time.google.com
time1.google.com
time2.google.com
time3.google.com
// -*- compile-command: "nvcc -D THRUST_SORT_TYPE=uint32_t -arch sm_50 -o sort sort_32.cu"; -*- | |
#include <thrust/host_vector.h> | |
#include <thrust/device_vector.h> | |
#include <thrust/generate.h> | |
#include <thrust/sort.h> | |
#include <thrust/copy.h> | |
#include <algorithm> | |
#include <cstdlib> |
# Modified from https://github.com/alyssais configuration. | |
# | |
# The following configuration heavily leverages modal keymaps to minimize the | |
# pollution of global keybindings. In addition, the modal keymaps facilitate | |
# the consistent use of the same keybindings across different modes. For | |
# example, this configuration uses 'h', 'l', 'j', and 'k' to represent west, | |
# east, south, and north when: changing focus, warping windows, resizing | |
# windows, swapping windows, and moving floating windows. Those four keys are | |
# mapped differently depending on the current mode to provide a consistent user | |
# experience. |
var all_contents = document.querySelectorAll('div#contents > ytd-item-section-renderer:nth-of-type(3) > div#contents > ytd-shelf-renderer > div#dismissible > div#contents > ytd-grid-renderer > div#items > ytd-grid-playlist-renderer > div#details > yt-formatted-string > a') | |
async function getFullTitle(item) { | |
var double_parent_node = item.parentNode.parentNode | |
var channel_name_container = double_parent_node.querySelector('ytd-video-meta-block > div#metadata > div#byline-container > ytd-channel-name > div#container > div#text-container > yt-formatted-string') | |
var playlist_title = double_parent_node.querySelector('h3 > a') | |
var _a = channel_name_container.querySelector('a') | |
if (_a) { | |
return playlist_title.title + ' | -> ' + _a.text + ' | -> ' + _a.href + '\n' | |
} else { |
A Synthesis of Platonic Dialogues, Daoist Insights, Vedic Revelation, Biblical Teachings, Buddhist Doctrine, and Nietzschean Vision
// parses a v3 PSG file | |
object PassiveTreeParser { | |
fun readData(inputStream: InputStream): SkillTreeGraph { | |
val data = DataTypeReader(inputStream, order = ByteOrder.LITTLE_ENDIAN).readPassiveTreeData() | |
val remainingBytes = inputStream.readAllBytes() | |
require(remainingBytes.isEmpty()) { "$remainingBytes bytes were not processed" } | |
return data | |
} |
\documentclass{article} | |
\usepackage{siunitx} | |
\usepackage{booktabs} | |
\usepackage[table]{xcolor} | |
\usepackage{etoolbox} | |
% Individual \itshape or \bfseries work without this. | |
% Combinations of both need the robustified version |
Sequential prompt chaining in one method with context and output back-referencing.
main.py
- start here - full example using MinimalChainable
from chain.py
to build a sequential prompt chainchain.py
- contains zero library minimal prompt chain classchain_test.py
- tests for chain.py
, you can ignore thisrequirements.py
- python requirements