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
$RecursionLimit = Infinity | |
collatz[1] = 1 | |
collatz[n_Integer /; And[n > 1, OddQ[n]]] := collatz[n] = 3 n + 1 | |
collatz[n_Integer /; And[n > 1, EvenQ[n]]] := collatz[n] = n/2 | |
collatzseq[1] = {1} | |
collatzseq[n_Integer /; n > 1] := | |
collatzseq[n] = {n, Splice@collatzseq@collatz@n} |
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
With[{items = EntityList@EntityClass["Financial", "SP500"]}, | |
finhash[str_] := finhash[str] = FinancialData[str, "Close", All]; | |
Monitor[ | |
Table[ | |
finhash[items[[n]]] | |
, {n, 1, Length@items} | |
] | |
, ProgressIndicator[n, {1, Length@items}] | |
] | |
] |
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
Block[{}, | |
items = EntityList[EntityClass["Financial", "SP500"]]; | |
finhash[str_] := finhash[str] = FinancialData[str, "Close", All]; | |
datePath[str_] := datePath[str] = finhash[str]["DatePath"]; | |
shared[a_, b_] := | |
shared[a, b] = Intersection[Map[First, a], Map[First, b]]; | |
assoc[data_] := | |
assoc[data] = Association@Map[First@# -> Last@# &, data]; | |
filterFrom[as_, sh_] := filterFrom[as, sh] = Map[as, sh]; |
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
Block[{tmp}, | |
items = EntityList@EntityClass["Financial", "SP500"]; | |
begin = DateObject[{2021, 1, 1}, "Day", "Gregorian", -7.`]; | |
end = DateObject[{2021, 3, 3}, "Day", "Gregorian", -7.`]; | |
fin[str_, beg_, en_] := | |
fin[str, beg, en] = FinancialData[str, "Close", {beg, en}]; | |
corr[stra_, strb_, beg_, en_] := | |
corr[stra, strb, beg, en] = | |
Correlation[fin[stra, beg, en], fin[strb, beg, en]]; | |
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
With[{e = ents, t = ts, n = nums, size = 20}, | |
With[{items = nums[[;; 20]]}, | |
With[{list = Subsets[n, {2}]}, | |
Grid[ | |
TakeSmallestBy[ | |
ParallelTable[ | |
With[{a = ents[[First@ii]], b = ents[[Last@ii]], | |
x = ts[[First@ii]], y = ts[[Last@ii]]}, { | |
a, | |
b, |
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
diff[ts_] := Transpose[{ | |
ts["Dates"][[;; -2]], | |
Differences@ts["Values"] | |
}]; | |
merge[list_] := GatherBy[ | |
Table[ | |
Splice@ | |
diff[l] | |
, {l, list}] | |
, First]; |
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
With[{list = {}}, | |
Table[ | |
{First@First@g, Total@Map[Last, g]}, | |
{g, GatherBy[ | |
Table[ | |
Splice@ | |
Transpose[{ | |
l["Dates"][[;; -2]], | |
Differences@ | |
l["Values"] |
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
With[{nlimit = 4, text = chs}, | |
Grid@ | |
TakeLargestBy[ | |
Table[ | |
{First@j, Last@j, Length@First@j * Last@j, | |
N@((Length@First@j * Last@j)/Length@text)}, {j, | |
Join @@ | |
Table[ | |
Tally@ | |
Partition[text, i, 1], {i, 1, nlimit, 1} |
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
Step 1 | |
=== | |
Download forge mod server plugin | |
https://files.minecraftforge.net/maven/net/minecraftforge/forge/1.12.2-14.23.5.2838/forge-1.12.2-14.23.5.2838-installer-win.exe | |
Step 2 | |
=== | |
Download rlcraft mod | |
https://www.curseforge.com/minecraft/modpacks/rlcraft/download/2935323 |
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
Topology | |
=== | |
Databases | |
====== | |
- Channel Serials | |
- Channel Metadata | |
- Channel Timeseries | |
Microservices |