Skip to content

Instantly share code, notes, and snippets.

View dyama's full-sized avatar

Daisuke YAMAGUCHI dyama

View GitHub Profile
# Windows (notepad) like keybinding for nano editor
# Modified by dyama, Original code written by zonuexe,
# license under GPLv3 or NYSL(0.9982)
# lastupdate: h261124
#
# how to install
# a. rename and move this file to $HOME/.nanorc
# % mv nanorc.keybindings $HOME/.nanorc
# b. concatenate this file with tail of $HOME/.nanorc
# % cat nanorc.keybindings >> $HOME/.nanorc
@dyama
dyama / gist:7103855
Last active December 26, 2015 05:49 — forked from kachi/gist:2053869
<?php
// [gist id="ID" file="FILE"]
function gist_shortcode($atts) {
return sprintf(
'<script src="https://gist.github.com/%s.js%s"></script>',
$atts['id'],
$atts['file'] ? '?file=' . $atts['file'] : ''
);
} add_shortcode('gist','gist_shortcode');