Skip to content

Instantly share code, notes, and snippets.

View edg-l's full-sized avatar
🪨
making compilers

Edgar edg-l

🪨
making compilers
View GitHub Profile
{
"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,
@edg-l
edg-l / .vimrc
Last active October 23, 2022 07:33
neovim config
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' }
@edg-l
edg-l / manage.py
Created February 13, 2020 23:17
tw server start
import os
import sys
import subprocess
import signal
import time
from typing import List
basedir = os.path.dirname(os.path.realpath(__file__))
@edg-l
edg-l / manage.py
Created December 22, 2019 11:38
Teeworlds server management script
#!/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__))
import React from 'react';
export const Row: React.FC = props => {
return <div className="row">{props.children}</div>;
};
export interface ColProps {
size: number;
device: 'xs' | 'sm' | 'md' | 'lg';
}
@edg-l
edg-l / .vimrc
Last active October 9, 2019 11:08
my vimrc
call plug#begin('~/.vim/plugged')
" Make sure you use single quotes
Plug 'tpope/vim-fugitive'
Plug 'tpope/vim-surround'
Plug 'airblade/vim-gitgutter'
Plug 'vim-airline/vim-airline'
Plug 'vim-airline/vim-airline-themes'
Plug 'nathanaelkane/vim-indent-guides'
@edg-l
edg-l / battlecode.d.ts
Created January 8, 2019 07:23
Type definitions for battlecode.org 2019 js
// Type definitions for battlecode
// Project: battlecode.org 2019
// Definitions by: Ryozuki <Discord: Ryozuki#1984>
// Thanks to the docs https://battlecode.org/dash/docs
declare module "battlecode" {
export enum SPECS {
CASTLE,
CHURCH,
PILGRIM,
#include <iostream>
using namespace std;
int number_of_digits(int n) {
if(n < 10)
return 1;
return 1 + number_of_digits(n / 10);
}
function(context, a)
{
a = a || {}
var internalBuffer = []
var charPatterns = {
a: [
[0, 0, 1, 0, 0],
[0, 1, 0, 1, 0],
[1, 0, 0, 0, 1],
function(c, a)
{
a = a || {}
var r = #fs.multivac.renderer()
var clone = #fs.scripts.lib().clone
var log = []
var squareWidth = 9
var squareHeight = 7
var boardRect = r.Rect(2, 2, 8 * squareWidth, 8 * squareHeight)
const words = "abcdefgh"