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
module Main | |
let log = (b: Number, x: Number) => { | |
for (let mut i = 0; i < 1000; i += 1) { | |
if (b ** i == x) return i | |
} | |
return 0 | |
} | |
print(log(2, 16)) |
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
@[Link("iwasm")] | |
lib LibWasm | |
struct WASMModuleCommon | |
buffer : UInt8* | |
binary_file : UInt32 | |
io_error : LibC::Char* | |
io_error_bytesize : UInt32 | |
end | |
struct WASMModuleInstanceCommon |
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
run = "crystal run main.cr" | |
# crystal build main.cr --cross-compile --target wasm32-unknown-wasi | |
# wasm2wat main.wasm -o main.wat | |
## wasm2c main.wasm --no-debug-names -o main.c | |
## gcc -O3 -march=native -c main.c -o main.o | |
entrypoint = "main.cr" | |
[nix] | |
channel = "stable-23_11" |
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
# *** The trekking profile is for slow travel | |
# *** and avoiding car traffic, but still with | |
# *** a focus on approaching your destination | |
# *** efficiently. | |
# | |
# *** Unikaj wszystkich dróg samochodowych. | |
# *** W pierwszej kolejności wybierz drogi | |
# *** rowerowe, a w drugiej piesze. | |
# *** Unikaj miękkiej nawierzchni. | |
# |
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
# *** The trekking profile is for slow travel | |
# *** and avoiding car traffic, but still with | |
# *** a focus on approaching your destination | |
# *** efficiently. | |
# | |
# *** Ta modyfikacja unika dróg z ograniczeniem | |
# *** prędkości powyżej 50 km/h oraz leśnych ścieżek | |
# *** niedostosowanych do ruchu rowerowego. | |
# *** | |
# *** |
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
# *** The trekking profile is for slow travel | |
# *** and avoiding car traffic, but still with | |
# *** a focus on approaching your destination | |
# *** efficiently. | |
# | |
# *** Prędkość dostosowana do niewytrenowanego | |
# *** rowerzysty MTB. Nawigacja wybiera jak | |
# *** najłagodniejsze podjazdy. Lubi prowadzić | |
# *** drogami z przeciętnym ruchem samochodowym. | |
# *** Unika dróg "pomarańczowych" i "czerwonych". |
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
gm convert *.pnm output.pdf |
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
import 'dart:async'; | |
import 'package:flutter/material.dart'; | |
import 'package:get/get.dart'; | |
import 'package:intl/intl.dart'; | |
class Home extends StatelessWidget { | |
const Home({Key? key}) : super(key: key); | |
@override |
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://developer.mozilla.org/en-US/docs/Web/HTML/Element/object | |
<object type="application/pdf" | |
data="/media/examples/In-CC0.pdf" | |
width="250" | |
height="200"> | |
</object> |
NewerOlder