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
/* This typst local package will allow you to reference the same bibliography file from any typst file | |
Steps: | |
1) Create the directory ~/.local/share/typst/packages/local/mybib/1.0.0 | |
2) Write a typst.toml file containing: | |
[package] | |
name = "mybib" | |
version = "1.0.0" | |
entrypoint = "lib.typ" | |
authors = ["Your Name Here"] |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
import 'dart:io'; | |
import 'dart:convert'; | |
import 'package:archive/archive.dart'; | |
void main() { | |
List<int> bytes = new File('saao-saa08.zip').readAsBytesSync(); | |
Archive archive = new ZipDecoder().decodeBytes(bytes); |
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
import random | |
def markov(string, length): | |
list_of_tokens = string.split() | |
markov_dict = {} | |
prev = None | |
for token in list_of_tokens: | |
if prev is not None: | |
if prev in markov_dict.keys(): | |
markov_dict[prev].append(token) |