Skip to content

Instantly share code, notes, and snippets.

@bebound
bebound / vimrc
Last active August 29, 2015 14:07
let g:dotvim_settings = {}
let g:dotvim_settings.version = 1
let g:dotvim_settings.default_indent = 4
let g:dotvim_settings.max_column = 80
let g:dotvim_settings.colorscheme = 'molokai'
let g:dotvim_settings.plugin_groups_exclude = ['ruby','go','javascript','scala','scm','python']
source ~/.vim/vimrc
map l K
map h J
@bebound
bebound / tieba
Last active August 29, 2015 14:09
import re
import requests
def find_users(url):
print('getting:', url)
r = requests.get(url)
if r.status_code == requests.codes.ok:
users = re.findall(r'utf-8&fr=pb" target="_blank">(.*?)</a>', r.text)
;; -*- mode: dotspacemacs -*-
;; This file is loaded by Spacemacs at startup.
;; It must be stored in your home directory.
(defun dotspacemacs/layers ()
"Configuration Layers declaration."
(setq-default
;; List of additional paths where to look for configuration layers.
;; Paths must have a trailing slash (ie. `~/.mycontribs/')
dotspacemacs-configuration-layer-path '()
@bebound
bebound / message
Last active August 29, 2015 14:12
Loading /home/kk/.emacs.d/core/spacemacs-mode.el (source)...done
Loading /home/kk/.spacemacs...done
(Spacemacs) Banner: /home/kk/.emacs.d/core/banners/000-banner.txt
(Spacemacs) Looking for configuration layers in /home/kk/.emacs.d/contrib/
(Spacemacs) -> Discovered configuration layer: osx
(Spacemacs) -> Discovered configuration layer: auctex
(Spacemacs) -> Discovered configuration layer: perforce
(Spacemacs) -> Discovered configuration layer: company-mode
(Spacemacs) -> Discovered configuration layer: smex
(Spacemacs) -> Discovered configuration layer: colors
Loading /home/kk/.emacs.d/core/core-load-paths.el (source)...done
Loading /home/kk/.spacemacs...done
(Spacemacs) Calling dotfile init...
(Spacemacs) Warning: Cannot find font "Source Code Pro"!
(Spacemacs) Banner: /home/kk/.emacs.d/core/banners/000-banner.txt
Mark set
(Spacemacs) Executing user init...
(Spacemacs) Calling dotfile layers...
(Spacemacs) Looking for configuration layers in /home/kk/.emacs.d/contrib/
(Spacemacs) -> Discovered configuration layer: pcre2el
" NeoBundle
" Note: Skip initialization for vim-tiny or vim-small.
if 0 | endif
if has('vim_starting')
if &compatible
set nocompatible " Be iMproved
endif
" Required:
" Base Configuration
set t_Co=256
let mapleader = ","
set timeoutlen=400 "mapping timeout
set ttimeoutlen=50 "keycode timeout
set mouse=a "enable mouse
set mousehide "hide when characters are typed
set history=1000 "number of command lines to remember
set ttyfast "assume fast terminal connection
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@bebound
bebound / test.py
Last active October 29, 2018 08:30
import json
with open('test.json') as f:
list1 = json.load(f)
with open('test2.json') as f:
list2 = json.load(f)
for index, (dict1, dict2) in enumerate(zip(list1, list2)):
for (top_level_key1, top_level_value1), (top_level_key2, top_level_value2) in zip(dict1.items(), dict2.items()):