Skip to content

Instantly share code, notes, and snippets.

Charles Leifer coleifer

Block or report user

Report or block coleifer

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View Steam Friends
* spazcowz - Daniel
* mcroydon - Matt
* mintchaos - Xian
* bltsandwich - Ben T.
* exoar - Travis
* fxdgear - Nick
* jacobian - Jacob KM
* bobbygrace - Bobby
* duke_sam - Niall
* thekaul - Kyle Stern
View gist:1855461
View nonblocking.py
'''
Demonstration of using `splice` with non-blocking IO
Lots of code is similar to 'splice.py', take a look at that module for more
documentation.
'''
import os
import os.path
import errno
View rx.py
import re
class _R(type):
def __div__(self, regex):
return R(regex)
class R(object):
__metaclass__ = _R
def __init__(self, regex):
@coleifer
coleifer / The Technical Interview Cheat Sheet.md
Last active Jul 18, 2019 — forked from TSiege/The Technical Interview Cheat Sheet.md
This is my technical interview cheat sheet. Feel free to fork it or do whatever you want with it. PLEASE let me know if there are any errors or if anything crucial is missing. I will add more links soon.
View The Technical Interview Cheat Sheet.md

Studying for a Tech Interview Sucks, so Here's a Cheat Sheet to Help

This list is meant to be a both a quick guide and reference for further research into these topics. It's basically a summary of that comp sci course you never took or forgot about, so there's no way it can cover everything in depth. It also will be available as a gist on Github for everyone to edit and add to.

Data Structure Basics

###Array ####Definition:

  • Stores data elements based on an sequential, most commonly 0 based, index.
  • Based on tuples from set theory.
@coleifer
coleifer / nginx.conf
Created Feb 12, 2016 — forked from phpdude/nginx.conf
Nginx image filter + caching of results.
View nginx.conf
location /resize {
alias /tmp/nginx/resize;
set $width 150;
set $height 100;
set $dimens "";
if ($uri ~* "^/resize_(\d+)x(\d+)/(.*)" ) {
set $width $1;
set $height $2;
set $image_path $3;
@coleifer
coleifer / .compton.conf
Created Sep 28, 2016
Installing Compton compositor for tear-free video in Xubuntu (XFCE).
View .compton.conf
# Place this file in ~
# Installing Compton: sudo apt-add-repository ppa:richardgv/compton; sudo apt-get update; sudo apt-get -y install compton
backend = "xrender";
paint-on-overlay = true;
glx-no-stencil = true;
glx-no-rebind-pixmap = true;
vsync = "opengl";
#xrender backend with opengl solves "laggy drag" issue on 14.04
View keybase.md

Keybase proof

I hereby claim:

  • I am coleifer on github.
  • I am coleifer (https://keybase.io/coleifer) on keybase.
  • I have a public key whose fingerprint is AEAC C7C2 FC8A E23D F23F D0A4 D1C4 594E 5FD4 20DA

To claim this, I am signing this object:

@coleifer
coleifer / mickey.py
Created Jun 2, 2017
i3 status bar script
View mickey.py
#!/usr/bin/env python
from collections import namedtuple
import ctypes
import datetime
import fcntl
import imaplib
import json
import multiprocessing
import os
View gist:4bde7115e37aed9a8444187787561b1e
Shougo/deoplete.nvim
Shougo/neosnippet-snippets
Shougo/neosnippet.vim
Xuyuanp/nerdtree-git-plugin
airblade/vim-gitgutter
airblade/vim-rooter
arcticicestudio/nord-vim
fatih/vim-go
fidian/hexmode
godlygeek/tabular
You can’t perform that action at this time.