Skip to content

Instantly share code, notes, and snippets.

View teki's full-sized avatar

Bela Babik teki

View GitHub Profile
Renderer: Apple M1
Vendor: Apple
Version: 4.1 Metal - 71.0.7
Device: Macmini9,1
Shading language version: 4.10
Max texture size: 16384 x 16384
Max vertex texture image units: 16
Sampling process 42584 for 3 seconds with 1 millisecond of run time between samples
Sampling completed, processing symbols...
Analysis of sampling Microsoft.Python.LanguageServer (pid 42584) every 1 millisecond
Process: Microsoft.Python.LanguageServer [42584]
Path: /Users/USER/*/Microsoft.Python.LanguageServer
Load Address: 0x1038a5000
Identifier: Microsoft.Python.LanguageServer
Version: 0
Code Type: X86-64
Parent Process: Code Helper (Renderer) [42449]
local application = require "mjolnir.application"
local hotkey = require "mjolnir.hotkey"
local window = require "mjolnir.window"
local screen = require "mjolnir.screen"
local fnutils = require "mjolnir.fnutils"
function move_win_x(pos, div)
local win = window.focusedwindow()
local f = win:frame()
local s = win:screen():frame()
@teki
teki / main.rs
Last active September 30, 2018 11:31
asteroids game
/* Cargo.toml
[package]
name = "asteroids"
version = "0.1.0"
authors = ["me <my_email@gmail.com>"]
edition = "2018"
[dependencies]
rand = "0.5"
#!/usr/bin/env python
import json
import sys
import re
import subprocess
incdirs = set()
with open("compile_commands.json") as fp:
#!/usr/bin/env python
from __future__ import print_function
import json
import os
import shutil
import sys
import subprocess
import urllib2
@teki
teki / devworld2016.md
Last active September 27, 2016 01:29
@teki
teki / PrimitivePic_bg.30m.py
Last active September 23, 2019 16:54
Use latest pic as background from https://twitter.com/PrimitivePic
#!/usr/bin/python
# use it with https://github.com/matryer/bitbar
import os
import re
import subprocess
import tempfile
import time
import urllib2
TW_URL = 'https://twitter.com/PrimitivePic'
@teki
teki / vimrc
Last active January 2, 2016 18:38
vimrc
set nocompatible
" load plugins if they are available
let s:myvimrc = expand($MBE . "/vim/vimrc")
let s:hasplugins = filereadable(s:myvimrc)
if s:hasplugins
filetype on
filetype off
set rtp+=$MBE . "/vim/bundle/vundle"
@teki
teki / ko
Last active January 2, 2016 18:29
editor
#!/bin/bash
IFS=$'\n'
OS=$(uname)
[ -z "$VISRVNAME" ] && VISRVNAME="ko"
[ -f "$MBE/vim/vimrc" ] && VIMPARAMS=-u "$MBE/vim/vimrc"
if [ "$OS" == "Darwin" ]; then
if [ -h /Applications/MacVim.app ] || [ -d ~/Applications/MacVim.app ] ; then
if [ "$1" == "--printvimbin" ]; then
echo mvim