Skip to content

Instantly share code, notes, and snippets.

Editing

Command

Mac OSX

Windows

Linux

Delete Line ⌘ + X Ctrl + X Ctrl + X
Insert Line After ⌘ + ↩ Ctrl + ↩ Ctrl + ↩
Insert Line Before ⌘ + ⇧ + ↩ Ctrl + ⇧ + ↩ Ctrl + ⇧ + ↩
Move Line Up ⌘ + ⌃ + ↑ Ctrl + ⇧ + ↑ Ctrl + ⇧ + ↑
Move Line Down ⌘ + ⌃ + ↓ Ctrl + ⇧ + ↓ Ctrl + ⇧ + ↓
Select Line ⌘ + L Ctrl + L Ctrl + L
Select Word ⌘ + D Ctrl + D Ctrl + D
@chrissimpkins
chrissimpkins / gemify.sh
Created November 10, 2013 04:09
Automated Ruby gem build and distribution to rubygems.org
#!/bin/sh
# gemify.sh
# Create a Ruby gem and push it to rubygems.org
# Copyright 2013 Christopher Simpkins
# MIT License
# Enter your gem name below (do not enter version number or .gemspec suffix)
# or pass it as the first argument to the shell script
GEM_NAME=""
@chrissimpkins
chrissimpkins / octopress_pagination
Created December 6, 2013 15:48
Octopress pagination example
<footer>
<p class="meta">
{% include post/author.html %}
{% include post/date.html %}{% if updated %}{{ updated }}{% else %}{{ time }}{% endif %}
{% include post/categories.html %}
</p>
{% unless page.sharing == false %}
{% include post/sharing.html %}
{% endunless %}
<p class="meta">
@chrissimpkins
chrissimpkins / glue-man.json
Created April 7, 2014 03:24
Glue Extension - Man Pages
{
"man": "man {{args}} | col -bx"
}
@chrissimpkins
chrissimpkins / Dot-loading.markdown
Last active August 29, 2015 14:00
A Pen by Chris Simpkins.
#!/usr/bin/python
# -*- coding: utf-8 -*-
import sys
import time
from progressbar import AnimatedMarker, Bar, BouncingBar, Counter, ETA, \
FileTransferSpeed, FormatLabel, Percentage, \
ProgressBar, ReverseBar, RotatingMarker, \
SimpleProgress, Timer
@chrissimpkins
chrissimpkins / gist:5bf5686bae86b8129bee
Last active March 6, 2023 00:10
Atom Editor Cheat Sheet: macOS

Use these rapid keyboard shortcuts to control the GitHub Atom text editor on macOS.

Key to the Keys

  • ⌘ : Command key
  • ⌃ : Control key
  • ⌫ : Delete key
  • ← : Left arrow key
  • → : Right arrow key
  • ↑ : Up arrow key
@chrissimpkins
chrissimpkins / gist:2b467ba623cb8dc9170b
Created July 14, 2015 17:53
Tweetledee userrss.php - no author account in text
<?php
/***********************************************************************************************
* Tweetledee - Incredibly easy access to Twitter data
* userrss.php -- User timeline results formatted as a RSS feed
* Version: 0.4.1
* Copyright 2014 Christopher Simpkins
* MIT License
************************************************************************************************/
/*-----------------------------------------------------------------------------------------------
==> Instructions:
@chrissimpkins
chrissimpkins / Preferences.sublime-settings.json
Last active April 17, 2018 19:24
How to Use Hack in Sublime Text
{
"font_face": "Hack",
"font_size": 10
}
# design settings
gutter = 60
radius = 6
pageW = 1600
# draw filled outline or contours
contour = False
# draw nodes and bluezones and vertical metrics?