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
commit d15c08793a46e2776b4fbc0d01545a1035d024b2 | |
Author: idc <idc> | |
Date: Tue May 28 14:11:48 2024 -0700 | |
Add associated type for pinnedresult | |
diff --git a/rust/kernel/init.rs b/rust/kernel/init.rs | |
index 424257284..9eb78b7f3 100644 | |
--- a/rust/kernel/init.rs | |
+++ b/rust/kernel/init.rs |
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
-----BEGIN PGP PUBLIC KEY BLOCK----- | |
mQINBGX0IM8BEADe/giD+GL5QGEmICFmyd4vs81TDKijSuI11G1RCWq8MmkJ/yUc | |
KOzA+Im4G8QcIWXI8VS5d6wRu/R3o//lnfEFboWgOTsIopVnsEYC8UzTQJdviKwn | |
VoeHCw6gEXUBbp3s0wz5OmV82ZKGDQwBxu0jS6SFFPIODSzKwP8QBX0/JjmmmLuK | |
2xRRiPkPoleFI4vZN6cpcIDeHXTs/nUSRfkbxCO3lKVOOHbm8NrAf8wQ3WRbCgl8 | |
GfSbXyphAr25TGaTWdxUOh2lwUfLmxLr05P79Nl2c6wPdL2NrlGSeL314yr0EwrV | |
VpFI09ZjukAT1tEwhZn0aKYv6dBFt6kcTxhn/tQg8KWYg/rYPG5+nYxReJzs38Qd | |
cUSubluzxYn6kjcEVgVPggTKEdLKJkIuajSXp4xuEA5P4m5Per0/6djUt1QIckfa | |
1HQcHjMQO6x5QM7SoOEdGtmlODaa1PIzYDj3sdtAsXSP6Y4DiPi5Us5oPoZmwmc/ |
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
List( | |
Identifier( | |
id = 8832L, | |
argumentIndex = 1, | |
argumentName = None, | |
code = "used", | |
columnNumber = Some(value = 3), | |
dynamicTypeHintFullName = ArraySeq(), | |
lineNumber = Some(value = 633), | |
name = "used", |
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
## GOAL: | |
## re-create a figure similar to Fig. 2 in Wilson et al. (2018), | |
## Nature 554: 183-188. Available from: | |
## https://www.nature.com/articles/nature25479#s1 | |
## | |
## combines a boxplot (or violin) with the raw data, by splitting each | |
## category location in two (box on left, raw data on right) | |
# initial set-up ---------------------------------------------------------- |
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
<html> | |
<head> | |
</head> | |
<body> | |
<h1>asdf</h1> | |
<script>alert(1);</script> | |
</body> | |
</html> |
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
# get only import names | |
afl~sym.imp[3] | |
# get only import addrs | |
afl~sym.imp[0] | |
# set breakpoint at 0x0 and 0x1 | |
db $$ @@= `!echo -e "0x0\n0x1"` | |
# set breakpoint at every imported function |
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
require 'set' | |
module SpecialMessages | |
module Stop; end | |
module Ack; end | |
end | |
class WorkerFactory | |
def initialize | |
@set = Set.new |
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
# https://crystal-lang.org/api/0.22.0/JSON.html | |
# online repl: https://play.crystal-lang.org/#/r/995s | |
require "json" | |
value = JSON.parse("[1, 2, 3]").raw # : JSON::Any | |
# (Array(JSON::Any) | Bool | Float64 | Hash(String, JSON::Any) | Int64 | String | Nil) | |
typeof(value) | |
if value.is_a?(Array) |
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
# gleiche zuweisung | |
var1=abc | |
var2="abc" | |
echo "$var1" | |
echo "$var2" | |
# string mit spaces | |
var3="abc def" | |
var4=abc\ def |
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
# https://en.wikipedia.org/wiki/Fibonacci_number#Closed-form_expression | |
N = (1 + Math::sqrt(5)) / 2 | |
M = (1 - Math::sqrt(5)) / 2 | |
def fibb(n) | |
(N**n - M**n) / (N - M) | |
end | |
# https://en.wikipedia.org/wiki/Fibonacci_number#Matrix_form |
NewerOlder