View triangle.nasm
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
global _start | |
section .text | |
stdout equ 1 | |
_start: | |
mov r8, 1 ; initial line length | |
mov r9, 0 ; chars written | |
mov rdx, buffer |
View simple_hashmap.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
#![deny(clippy::all)] | |
#![deny(clippy::nursery)] | |
#![allow(clippy::cast_possible_truncation)] | |
use std::{ | |
collections::hash_map::RandomState, | |
hash::{BuildHasher, Hash, Hasher}, | |
}; | |
#[derive(Debug, Clone)] |
View april-fools.css
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
/* | |
aprilFools.css | |
Written by Wes Bos | |
I assume no responsibility for angry co-workers or lost productivity | |
Put these CSS definitons into your co-workers Custom.css file. | |
They will be applied to every website they visit as well as their developer tools. | |
*/ |
View day2b.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
use std::{ | |
fmt::{self, write}, | |
str::FromStr, | |
}; | |
#[derive(Debug, Clone)] | |
struct ParseError(String); | |
impl fmt::Display for ParseError { | |
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { |
View build-ddnet-clang.sh
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
rm -rf build | |
mkdir -p build | |
cd build | |
export CC=/usr/bin/clang | |
export CXX=/usr/bin/clang++ | |
cmake .. -GNinja -DMYSQL=ON -DCMAKE_BUILD_TYPE:STRING=RelWithDebInfo \ | |
-DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DVIDEORECORDER=ON -DDOWNLOAD_GTEST=ON \ | |
-D_CMAKE_TOOLCHAIN_PREFIX=llvm- | |
ninja |
View .psqlrc
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
\set QUIET 1 | |
\timing | |
\x auto | |
\set PROMPT1 '%[%033[1m%]%M %n@%/%R%[%033[0m%]%# ' | |
\set PROMPT2 '[more] %R > ' | |
\pset null '[NULL]' | |
\set VERBOSITY verbose | |
\set HISTFILE ~/.psql_history- :DBNAME | |
\set HISTCONTROL ignoredups | |
\set COMP_KEYWORD_CASE upper |
View coc-settings.json
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
{ | |
"coc.preferences.extensionUpdateCheck": "daily", | |
"python.jediEnabled": false, | |
"diagnostic.virtualTextCurrentLineOnly": false, | |
"diagnostic.virtualText": true, | |
"suggest.enablePreview": true, | |
"git.enableGutters": true, | |
"clangd.semanticHighlighting": true, | |
"rust-analyzer.updates.channel": "nightly", | |
"rust-analyzer.procMacro.enable": true, |
View .vimrc
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
call plug#begin() | |
Plug 'tpope/vim-fugitive' | |
Plug 'tpope/vim-surround' | |
Plug 'airblade/vim-gitgutter' | |
"Plug 'itchyny/lightline.vim' | |
Plug 'cespare/vim-toml' | |
Plug 'tpope/vim-sleuth' | |
Plug 'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --all' } |
View manage.py
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 os | |
import sys | |
import subprocess | |
import signal | |
import time | |
from typing import List | |
basedir = os.path.dirname(os.path.realpath(__file__)) |
View manage.py
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
#!/usr/bin/env python3 | |
import os | |
import sys | |
import subprocess | |
import signal | |
import time | |
from typing import List | |
basedir = os.path.dirname(os.path.realpath(__file__)) |
NewerOlder