Skip to content

Instantly share code, notes, and snippets.

note: erroneous constant used
--> /Users/mcrane/.cargo/registry/src/github.com-1ecc6299db9ec823/const_format-0.2.30/src/macros/fmt_macros.rs:101:48
|
56 | macro_rules! concatcp {
| --------------------- in this expansion of `::leptos::server_fn::const_format::concatcp!` (#2)
...
61 | / $crate::pmr::__concatcp_impl!{
62 | | $( ( $arg ), )*
63 | | }
| | -
@snapbug
snapbug / stable patch
Created December 24, 2022 20:23
Enabling stable
diff --git a/examples/counter-isomorphic/Cargo.toml b/examples/counter-isomorphic/Cargo.toml
index 8c1cd20..f8ea75a 100644
--- a/examples/counter-isomorphic/Cargo.toml
+++ b/examples/counter-isomorphic/Cargo.toml
@@ -18,10 +18,15 @@ cfg-if = "1"
lazy_static = "1"
leptos = { path = "../../leptos", default-features = false, features = [
"serde",
+ "stable",
] }

Keybase proof

I hereby claim:

  • I am snapbug on github.
  • I am snapbug (https://keybase.io/snapbug) on keybase.
  • I have a public key whose fingerprint is C7BE 2F95 E1D4 2DF1 9E2A 74D2 F497 4497 CB4B B9EB

To claim this, I am signing this object:

@snapbug
snapbug / # pypy3 - 2016-09-25_11-43-02.txt
Created September 25, 2016 15:43
pypy3 on macOS 10.12 - Homebrew build logs
Homebrew build logs for pypy3 on macOS 10.12
Build date: 2016-09-25 11:43:02
@snapbug
snapbug / mini_search.c
Created August 16, 2011 09:53
Miniature Search Engine
#include <string.h>
#include <sys/mman.h>
int main(void) {
for(char *x = (char *)mmap(0, 313805393, 2, 2, open("wsj.idx", 2), 0), i[sizeof(unsigned)], j[sizeof(unsigned)], q[256], *t, *r; t && r && *((unsigned *)&i) < *((unsigned *)r + 5) ?: (*((unsigned *)&i) = 0, t = strtok(gets(q), " '\n"), r = !t ?: (char *)bsearch(t, (unsigned *)x + 2 + 6 * *(unsigned *)x, *((unsigned *)x + 1), 6 * sizeof(unsigned), strcmp), t) ?: (*((unsigned *)&j) != *(unsigned *)x - 1 ?: qsort((unsigned *)x + 2, *(unsigned *)x, 6 * sizeof(unsigned), strcmp), *((unsigned*)x + 2 + 6 * *((unsigned *)&j)) && *((unsigned *)&j) < *(unsigned *)x); t ? ((r ? *((unsigned *)x + 2 + 6 * *((unsigned *)x + 2 + 6 * (*(unsigned *)x + *((unsigned *)x + 1)) + 2 * *((unsigned *)&i) + *((unsigned *)r + 4))) += *((unsigned *)x + 3 + 6 * (*(unsigned *)x + *((unsigned *)x + 1)) + 2 * *((unsigned *)&i) + *((unsigned *)r + 4)) : 0), *((unsigned *)&i) += 1, *((unsigned *)&j) = *(unsigned *)x - 1) : (printf("%s\n", (char *)((unsigned *)x + 4 + 6 * *((unsig
@snapbug
snapbug / search.cpp
Created August 10, 2011 10:41
43 Line C++ Index and Search
#include <algorithm>
#include <cmath>
#include <fstream>
#include <iostream>
#include <map>
#include <sstream>
#include <vector>
using namespace std;
int main(int argc, char **argv) {
@snapbug
snapbug / markov.py
Created July 29, 2011 05:16
Python Text Generator Using Markov Chain
#!/usr/bin/env python
from collections import defaultdict
from random import choice, randint
from re import findall
# Make sure that this will run in python 2 as well as 3
try:
input = raw_input
except NameError:
pass