This file contains 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
#!/bin/bash | |
echo '["REQ","345",{"authors":["'$mypub'"],"kinds":[3],"limit":1}]' |\ | |
websocat $prirelay | head -1 |\ | |
jq -rc '["REQ","345",{"authors":[.[2].tags[0:40][][1]],"kinds":[1],"limit":20}]' |\ | |
websocat $prirelay | jq -rc '{pubkey:.[2].pubkey|scan("^......"),time:(.[2].created_at|localtime|strflocaltime("%Y/%m/%d %H:%M:%S")),content:.[2].content}' |
This file contains 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
echo '["REQ","345",{"authors":["'$mypub'"],"kinds":[3],"limit":1}]' | websocat $prirelay |\ | |
head -1 | jq -r .[2].content | jq -r 'keys_unsorted[] as $k | [$k, .[$k]] | .[0]' |
This file contains 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
npub1f3w4x7dqvceeez8kuyq78md3lwhwfm0ra634llr0r3nykwjrs0hqvldhgk |
This file contains 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
REM Compute A matrix | |
A_{r,t}=1 | |
for x=r+1 to X-1 | |
if A_{P_t(x),t}=1 then A_{x,t}=1 endif | |
next x | |
for x=r to X-1 | |
if A_{x,t}=1 then | |
for y=1 to t |
This file contains 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
#include <stdio.h> | |
int main(void) { | |
printf("Hello World\n"); | |
return 0; | |
} |
This file contains 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
[ | |
{ | |
"name": "Helix pico for Lefthand only", | |
"author": "koteitan" | |
}, | |
[ | |
{ | |
"fa": [ | |
0, | |
0, |
This file contains 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 Matlab 2016b | |
depth=12; | |
close all; | |
fig=figure('Position',[0 -200 1024 1024]); | |
testsqr(0,1,0,1,depth); | |
% draw circle | |
hold on; |
This file contains 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
% try on https://dreampuf.github.io/GraphvizOnline/ | |
digraph G { | |
"log v(j+1)-v(j)=log k(j)\nt(j)=v(j+4)\nlogk(j+1)=k(j), k(j+1)=2^{k(j)}" | |
->"v(j)" | |
->"Ж(j)=v(0)v(1)...v(j)" | |
->"Ж(j)" | |
-> "Ж=lim[j→∞] Ж(j)\nЖ=lim[j→∞] Ж(j+4)" | |
-> Ж | |
->"Ч/γ=Ж/π"; | |
"T=(t_-)^−1◦(t_+)^-1"->T->"Ч=T(γ)"->Ч->"Ч/γ=Ж/π"; |
NewerOlder