Skip to content

Instantly share code, notes, and snippets.

View seiichi's full-sized avatar

Seiichi SATO seiichi

  • Fukuoka, Japan
View GitHub Profile
<div class="example-numbers">
<input class="typeahead" type="text" placeholder="numbers (one through ten)">
</div>
@saitoha
saitoha / left-right-margin.vim
Created June 12, 2013 16:10
Accelerate vim vsplit scrolling on pangoterm/xterm/tanasinn/RLogin.
let &t_ti = &t_ti . "\e[?6h\e[?69h"
let &t_te = "\e[?69l\e[?6l" . &t_te
let &t_CV = "\e[%i%p1%d;%p2%ds"
let &t_CS = "y"
@TastyToast
TastyToast / handlebars-truncate-helper.js
Last active April 21, 2021 09:08
Truncate helper for Handlebars.js
Handlebars.registerHelper ('truncate', function (str, len) {
if (str.length > len) {
var new_str = str.substr (0, len+1);
while (new_str.length) {
var ch = new_str.substr ( -1 );
new_str = new_str.substr ( 0, -1 );
if (ch == ' ') {
break;
@saitoha
saitoha / vim-DECLRMM.diff
Created January 12, 2013 08:41
Vim DECLRMM test
diff -r b89e2bdcc6e5 src/screen.c
--- a/src/screen.c Sun Dec 16 12:50:40 2012 +0100
+++ b/src/screen.c Sat Jan 12 17:38:58 2013 +0900
@@ -8890,6 +8890,24 @@
*/
clear_cmdline = TRUE;
+ char buf[256];
+ if (del) {
+ sprintf(buf,
anonymous
anonymous / color
Created November 1, 2012 15:17
mlterm Solarized color setting
black = #073642
red = #dc322f
green = #859900
yellow = #b58900
blue = #268bd2
magenta = #d33682
cyan = #2aa198
white = #eee8d5
hl_black = #002b36
hl_red = #cb4b16
@theconektd
theconektd / github.css
Created April 30, 2012 02:11
Github Markdown CSS - for Markdown Editor Preview
body {
font-family: Helvetica, arial, sans-serif;
font-size: 14px;
line-height: 1.6;
padding-top: 10px;
padding-bottom: 10px;
background-color: white;
padding: 30px; }
body > *:first-child {
@ukyo
ukyo / file0.txt
Last active February 15, 2018 05:42
javascriptで生成したファイルをローカルに保存する ref: https://qiita.com/ukyo/items/d623209655a003b13add
function download(blob, filename) {
const objectURL = window.URL.createObjectURL(blob),
a = document.createElement('a'),
e = document.createEvent('MouseEvent');
//a要素のdownload属性にファイル名を設定
a.download = filename;
a.href = objectURL;
//clickイベントを着火
@kaleb
kaleb / aliases
Created October 15, 2011 15:51
Gmail on Mutt
#~/.mutt/aliases
alias nick Nicholas Levandoski <nick.levandoski@auglug.org>
alias tim Timothy Pitt <timothy.pitt@auglug.org>
alias steven Steven Jackson <sjackson@auglug.org>
alias kaleb Kaleb Hornsby <kaleb.hornsby@auglug.org>
alias alug-admin nick, tim, steven