Skip to content

Instantly share code, notes, and snippets.

View anoduck's full-sized avatar

Anoduck, The Anonymous Duck anoduck

View GitHub Profile
@anoduck
anoduck / gist:ba2001956177e3cca2489a7c3eec8151
Last active December 13, 2022 00:35 — forked from rxaviers/gist:7360908
Complete list of github markdown emoji markup

Github compatible emoji markup

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
@anoduck
anoduck / colortrans.py
Created September 6, 2022 04:46 — forked from gagbo/colortrans.py
Translate truecolor to 256-color palette
#!/usr/bin/env python3
"""
Convert values between RGB hex codes and xterm-256 color codes.
Nice long listing of all 256 colors and their codes. Useful for
developing console color themes, or even script output schemes.
The legacy version uses naive euclidean distance in rgb space,
the non-legacy version uses naive euclidean distance in hsv space, manually
@anoduck
anoduck / retext.css
Created December 4, 2016 16:45 — forked from elclanrs/retext.css
Markdown theme for ReText
body {
color: #333;
font: normal 16px/1.3 Arial, sans-serif;
max-width: 6.5in;
margin: 0 auto;
}
a:link, a:visited {
color: #1B70D1;
text-decoration: none;
@anoduck
anoduck / gist:f9c52dad801e5843e354
Last active August 29, 2015 14:26 — forked from don9z/gist:5945914
Workaround for this error: ad-Advice-package--add-to-archive-contents: Symbol's function definition is void: package-desc-vers
;; diff --git a/melpa-autoloads.el b/melpa-autoloads.el
(defadvice package--add-to-archive-contents (around package-filter-add-to-archive-contents (package archive) activate compile) "\
Add filtering of available packages using `package-filter-function',
-if non-nil." (when (and package-filter-function (funcall package-filter-function (car package) (package-desc-vers (cdr package)) archive)) ad-do-it))
+if non-nil." (when (and package-filter-function (funcall package-filter-function (car package) (package--ac-desc-version (cdr package)) archive)) ad-do-it))
;; diff --git a/melpa.el b/melpa.el
@@ -84,7 +84,7 @@ if non-nil."
@anoduck
anoduck / fb-dl.py
Last active August 29, 2015 14:23 — forked from zmwangx/fb-dl.py
#!/usr/bin/env python
############################### README ###############################
# External dependencies:
# * libmagic
# * python-dateutil
# * python-magic
# * requests
#
# The shell command call at the end was tested with GNU date from GNU

In penance for cracking stupid jokes on Twitter, here's my Emacs cheat sheet. Emacs has a steep learning curve, so I've tried to order them by importance so you could learn them in stages.

One overall rule of thumb: pay attention to the minibuffer (the line at the bottom of the editor). It will often guide you through a process, and also gives you hints about what state you're in, such as the middle of a multi-chord sequence.

The other rule of thumb: when in doubt, C-g it out.

Basics (mandatory)

You simply can't get by without having these at your fingertips.

;;; pastels-on-dark-theme.el --- Pastels on Dark theme for Emacs 24
;; Author: Mats Persson
;; Maintainer: Shane Celis <shane (at) gnufoo (dot) org>
;; URL: http://gist.github.com/1906662
;; Version: 0.3
;; Keywords: theme, color
;;; Commentary:
@anoduck
anoduck / fb-dl.py
Last active November 3, 2015 17:58 — forked from zmwangx/fb-dl.py
#!/usr/bin/env python
############################### README ###############################
# External dependencies:
# * libmagic
# * python-dateutil
# * python-magic
# * requests
#
# The shell command call at the end was tested with GNU date from GNU
@anoduck
anoduck / .vimrc
Last active August 29, 2015 14:16 — forked from todb-r7/.vimrc
" If using Janus, then this should be .vimrc.after
" Technically this is really a gvimrc but who's counting.
set nocompatible
colorscheme slate
filetype plugin indent on
set hls
" Pretty standard Ruby default tab indentation
set tabstop=2 softtabstop=2 shiftwidth=2 expandtab shiftround smarttab
@anoduck
anoduck / 0_reuse_code.js
Last active August 29, 2015 14:10
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console