Skip to content

Instantly share code, notes, and snippets.

@xvrdm
xvrdm / config
Created February 28, 2024 13:15 — forked from zerosign/config
i3 config file
# This file has been auto-generated by i3-config-wizard(1).
# It will not be overwritten, so edit it as you like.
#
# Should you change your keyboard layout somewhen, delete
# this file and re-run i3-config-wizard(1).
#
# i3 config file (v4)
#
# Please see http://i3wm.org/docs/userguide.html for a complete reference!
@xvrdm
xvrdm / gist:72e7eb17fa0f351a1d7550663f8bf713
Created February 7, 2019 13:51
Gruvbox Colorscheme for Kitty Terminal
#: Color scheme {{{
foreground #ebdbb2
background #282828
#: black
color0 #282828
color8 #928374
#: red
library(tidycensus)
library(mapdeck)
library(tidyverse)
token <- "your mapbox token"
hv <- get_acs(geography = "tract",
variables = "B25077_001",
state = "CA",
geometry = TRUE) %>%
@xvrdm
xvrdm / useR2018.md
Created July 11, 2018 13:31 — forked from HanjoStudy/useR2018.md
useR2018 Material

I am looking forward to meeting you at the Tuesday AM (10th of July) tutorial session at useR2018!. We will be discussing a subject that I am very passionate about: Web Scraping!

The slides can be found here:

To ensure that we can be immediately productive on Tuesday morning, I would like you to get the following set up on your machines beforehand:

@xvrdm
xvrdm / Emacs.md
Created April 10, 2018 14:10 — forked from redinger/Emacs.md
Setting up Emacs daemon on OS X

Setting up Emacs daemon on OS X

Tired of waiting for emacs to start on OS X? This step by step guide will teach you how to install the latest version of emacs and configure it to start in the background (daemon mode) and use emacsclient as your main editor.

Install Cocoa Emacs

Download the latest pretest version of [Emacs for Mac OS X]: http://emacsformacosx.com/builds

@xvrdm
xvrdm / init.lua
Last active September 28, 2022 08:54 — forked from alexander-clark/init.lua
Hammerspoon - switch Mac Input Source / keyboard layout on Kinesis Advantage connect / disconnect
usbWatcher = nil
function usbDeviceCallback(data)
if (data["productName"] == "Kinesis Keyboard Hub") then
if (data["eventType"] == "added") then
hs.keycodes.setLayout("U.S. International - PC")
elseif (data["eventType"] == "removed") then
hs.keycodes.setLayout("Swiss French")
end
end
@xvrdm
xvrdm / osx-for-hackers.sh
Created April 29, 2016 09:15 — forked from brandonb927/osx-for-hackers.sh
OSX for Hackers: Yosemite Edition. This script tries not to be *too* opinionated and any major changes to your system require a prompt. You've been warned. Also, please don't email me about this script, my poor inbox...
#!/bin/sh
# Alot of these configs have been taken from the various places
# on the web, most from here
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
# Set the colours you can use
black='\033[0;30m'
white='\033[0;37m'
red='\033[0;31m'
@xvrdm
xvrdm / zsh.md
Created August 8, 2014 10:05 — forked from tsabat/zsh.md
# Meme Generator 1
# Demonstrates how to draw text on images using PIL
# (Python Imaging Library)
#
# The script loads an image from the clipboard (or uses
# a default one if the clipboard is empty) and asks for
# two captions (top and bottom) that are then drawn onto
# the image.
import Image
#!/bin/bash
# Source: http://toomuchdata.com/2012/06/25/how-to-install-python-2-7-3-on-centos-6-2/
# Install stuff #
#################
# Install development tools and some misc. necessary packages
yum -y groupinstall "Development tools"
yum -y install zlib-devel # gen'l reqs