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
| { stdenv, lib, bash, callPackage, writeText, makeWrapper, writeScript, dotnet-sdk, | |
| patchelf, libunwind, coreclr, libuuid, curl, zlib, icu }: | |
| let | |
| config = "Staging"; | |
| project = "RazorCx.Api"; | |
| target = "linux-x64"; | |
| rpath = stdenv.lib.makeLibraryPath [ libunwind coreclr libuuid stdenv.cc.cc curl zlib icu ]; |
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
| use std::sync::mpsc::{self, Sender}; | |
| use tokio::sync::oneshot; | |
| use futures::Future; | |
| // We erase the job signature to: "no arguments, no return value" | |
| // Because the job itself is responsible for sending its typed result | |
| type ErasedJob = Box<dyn FnOnce() + Send + 'static>; | |
| struct JobPool { | |
| tx: Sender<ErasedJob>, |
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
| use std::sync::mpsc::{self, Sender}; | |
| use tokio::sync::oneshot; | |
| use futures::Future; | |
| // A trivial job type | |
| type Job = Box<dyn FnOnce() -> String + Send>; | |
| // A “synchronous” pool that receives jobs | |
| struct JobPool { | |
| tx: Sender<(Job, oneshot::Sender<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
| commit 6df138a2c634f5dbdb5a131add00bb1bb5118756 | |
| Author: William Casarin <jb55@jb55.com> | |
| Date: Mon Dec 9 16:39:37 2024 -0800 | |
| async: adding efficient, poll-based stream support | |
| This is a much more efficient, polling-based stream implementation that | |
| doesn't rely on horrible things like spawning threads just to do async. | |
| Changelog-Added: Add async stream support |
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
| commit 3552189390f2693fea6ed6acbcb08b1b17db0bd5 | |
| Author: Robert Bragg <robert@sixbynine.org> | |
| Date: Wed May 25 23:57:45 2022 +0100 | |
| glue: remove unused variable | |
| diff --git a/game-activity/prefab-src/modules/game-activity/src/game-activity/native_app_glue/android_native_app_glue.c b/game-activity/prefab-src/modules/game-activity/src/game-activity/native_app_glue/android_native_app_glue.c | |
| index ce6c7efdb8aa..626e7b82c10d 100644 | |
| --- a/game-activity/prefab-src/modules/game-activity/src/game-activity/native_app_glue/android_native_app_glue.c | |
| +++ b/game-activity/prefab-src/modules/game-activity/src/game-activity/native_app_glue/android_native_app_glue.c |
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
| commit d85c6043b700783d825f6e5971f976e198fde112 | |
| Author: William Casarin <jb55@jb55.com> | |
| Date: Fri Mar 7 16:01:55 2025 -0800 | |
| search: auto-focus search field on navigate | |
| I'm going to add a search changelog on this commit since I forgot | |
| to do so previously. | |
| Fixes: https://linear.app/damus/issue/DECK-538/auto-focus-search-field-on-search-view |
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
| #!/usr/bin/env bash | |
| PANDOC="pandoc --variable urlcolor=cyan" | |
| usage () { | |
| printf "usage: pdfnow file.md OR <file.md pdfnow markdown\n" >&2 | |
| exit 1 | |
| } | |
| [ $# -eq 0 ] && usage |
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
| " lambda λ | |
| imap <C-j> <C-k>l* | |
| " right arrow → | |
| imap <C-l> <C-k>-> | |
| " left arrow ← | |
| imap <C-h> <C-k><- | |
| " compose ∘ |
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
| var scrape = require('scrapeit') | |
| scrape("http://google.com", function(err, o, dom){ | |
| var links = o("a").map(function(a){ | |
| return a.attribs.href; | |
| }); | |
| console.log(links); | |
| }); |
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
| var uid = require('uid'); | |
| var data = require('data'); | |
| function hash(el) { | |
| var d = data(el); | |
| var hash = d.get('mylib:uid'); | |
| if (hash) return hash; | |
| var id = uid(); | |
| d.set('mylib:uid', id); | |
| return id; |
NewerOlder