Skip to content

Instantly share code, notes, and snippets.

View maptracker's full-sized avatar

Charles Tilford maptracker

  • Work-related, non-proprietary coding
View GitHub Profile
@maptracker
maptracker / PlotCharacters.R
Last active January 21, 2016 14:01
Visualize #R #pch (plot characters) used in #points
# From @Greg Snow https://stackoverflow.com/a/3740473
# Plots a grid with default tokens on bottom two rows, characters in others
png(filename="GregSnow.png", width = 600, height = 600)
plot( 0:15, 0:15, type='n', main = "pch values by Greg Snow" )
points( (0:255)%% 16, (0:255) %/% 16, pch=0:255, font=5, cex = 2 )
dev.off()
# From the R help for ?points
png(filename="PointsHelp.png", width = 600, height = 600)
pchShow <-
@LeCoupa
LeCoupa / bash-cheatsheet.sh
Last active March 31, 2024 11:57
Bash CheatSheet for UNIX Systems --> UPDATED VERSION --> https://github.com/LeCoupa/awesome-cheatsheets
#!/bin/bash
#####################################################
# Name: Bash CheatSheet for Mac OSX
#
# A little overlook of the Bash basics
#
# Usage:
#
# Author: J. Le Coupanec
# Date: 2014/11/04
@rodneyrehm
rodneyrehm / anti-keygrabber.user.js
Last active July 5, 2022 01:31
GreaseMonkey: Prevent Web Applications From Grabbing Certain HotKeys
// ==UserScript==
// @name anti key-grabber
// @description Prevent web apps from capturing and muting vital keyboard shortcuts
// @grant none
// @version 1.1
// ==/UserScript==
(function(){
var isMac = unsafeWindow.navigator.oscpu.toLowerCase().contains("mac os x");
unsafeWindow.document.addEventListener('keydown', function(e) {
if (e.keyCode === 116) {
@MohamedAlaa
MohamedAlaa / tmux-cheatsheet.markdown
Last active April 24, 2024 12:19
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname