Using Python's built-in defaultdict we can easily define a tree data structure:
def tree(): return defaultdict(tree)
That's it!
fn main() { | |
let event_loop = EventLoop::new(); | |
let window = WindowBuilder::new() | |
.with_resizable(false) | |
.with_inner_size(winit::dpi::PhysicalSize::<u32>::new(1024, 576)) | |
.build(&event_loop) | |
.unwrap(); | |
std::panic::set_hook(Box::new(console_error_panic_hook::hook)); | |
console_log::init().expect("could not initialize logger"); |
Using Python's built-in defaultdict we can easily define a tree data structure:
def tree(): return defaultdict(tree)
That's it!
This gist will guide you through to setup starship along with zsh suggestions and zsh syntax highlight for your codespaces.
import Darwin | |
import Foundation | |
import UIKit | |
// https://github.com/xybp888/iOS-SDKs/blob/master/iPhoneOS17.1.sdk/System/Library/PrivateFrameworks/CoreSVG.framework/CoreSVG.tbd | |
// https://developer.limneos.net/index.php?ios=17.1&framework=UIKitCore.framework&header=UIImage.h | |
@objc | |
class CGSVGDocument: NSObject { } |
<script> | |
import { onMount } from "svelte"; | |
import editorWorker from "monaco-editor/esm/vs/editor/editor.worker?worker"; | |
import jsonWorker from "monaco-editor/esm/vs/language/json/json.worker?worker"; | |
import cssWorker from "monaco-editor/esm/vs/language/css/css.worker?worker"; | |
import htmlWorker from "monaco-editor/esm/vs/language/html/html.worker?worker"; | |
import tsWorker from "monaco-editor/esm/vs/language/typescript/ts.worker?worker"; | |
let subscriptions = []; | |
export let content; |
These instructions are based on this blogpost by Anton Semjonov and this video by Animortis Productions. Please follow the link if you want more details, they go into much more detail about each step, whereas this document is more focused on being a concise cheat sheet. Let's go.
Boot the Ubuntu installation medium. When asked, choose the "Try Ubuntu" option and open a terminal.
Switch to root, otherwise you'll have to type sudo
all the time:
sudo su -
This is just some stencils I created for myself to draw FMC (http://www.fmc-modeling.org/) diagrams with draw.io.
Here is how they look:
Great series of short articles introducing Apple's Metal framework.
Time of writing: Jan 18, 2023. The following assume you're trying to install CUDA on WSL2 Ubuntu.
Check support matrix first before you install any version of CUDA, because chances are the latest CUDA does not have cuDNN support yet, then you'll have to re-install older version if you found out later.
https://docs.nvidia.com/deeplearning/cudnn/support-matrix/index.html#cudnn-cuda-hardware-versions
At the time of writing, the latest cuDNN version is 8.7 and it supports CUDA 11.8.
Windows 10 must be build 20145
or later.
--- | |
- name: certauth.yml | Make sure the folder exists (Debian, Ubuntu) | |
file: | |
path: /usr/local/share/ca-certificates | |
state: directory | |
- name: certauth.yml | Download root CA | |
get_url: | |
url: "{{ install_ip }}/xxx.crt" | |
dest: "/usr/local/share/ca-certificates/xxx.crt" |