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
#![feature(asm)] | |
// Lets set a small stack size here, only 48 bytes so we can print the stack | |
// and look at it before we switch contexts | |
// ===== NOTICE FOR OSX USERS ===== | |
// You'll need to increase this size to at least 624 bytes. This will work in Rust Playground and on Windows | |
// but the extremely small stack seems to have an issue on OSX. | |
const SSIZE: isize = 48; | |
/// Do you recognize these? It's the registers described in the x86-64 ABI that we'll need to save our context. |
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
[ | |
{ | |
"key": "cmd+k cmd+b", | |
"command": "workbench.action.toggleActivityBarVisibility" | |
}, | |
{ "key": "cmd+k cmd+0", "command": "editor.foldAll" }, | |
{ | |
"key": "cmd+0 cmd+K", | |
"command": "editor.unfoldAll" | |
}, |
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
#[derive(Debug)] | |
pub struct LinkedList { | |
head: Option<Box<Node>>, | |
tail: Option<*mut Node>, | |
} | |
#[derive(Debug)] | |
struct Node { | |
value: i32, | |
next: Option<Box<Node>>, | |
} |
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
/** | |
* The shape we are building. | |
*/ | |
interface IPoint { | |
x: number; | |
y: number; | |
z?: number; | |
} | |
class Point implements IPoint { |
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
#! /bin/bash | |
cd $(mktemp -d) | |
wget https://aur.archlinux.org/cgit/aur.git/snapshot/insomnia.tar.gz | |
tar xzf insomnia.tar.gz | |
cd insomnia | |
makepkg -s | |
sudo pacman -U insomnia-*-x86_64.pkg.tar |
People
![]() :bowtie: |
😄 :smile: |
😆 :laughing: |
---|---|---|
😊 :blush: |
😃 :smiley: |
:relaxed: |
😏 :smirk: |
😍 :heart_eyes: |
😘 :kissing_heart: |
😚 :kissing_closed_eyes: |
😳 :flushed: |
😌 :relieved: |
😆 :satisfied: |
😁 :grin: |
😉 :wink: |
😜 :stuck_out_tongue_winking_eye: |
😝 :stuck_out_tongue_closed_eyes: |
😀 :grinning: |
😗 :kissing: |
😙 :kissing_smiling_eyes: |
😛 :stuck_out_tongue: |