Skip to content

Instantly share code, notes, and snippets.

@msmhrt
msmhrt / 0_reuse_code.js
Created March 20, 2014 07:00
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
" File: vimrc
"
" Author: created by reedes on 16-Feb-2013
" Updated: continuously
" URL: https://github.com/reedes/vim-config
set nocompatible
" # VUNDLE (package management)
filetype off
@msmhrt
msmhrt / wmctrl.py
Last active August 29, 2015 14:11
PythonでX Window Systemのウィンドウタイトルを取得する ref: http://qiita.com/msmhrt/items/76f45c097294edd07c2b
#!/usr/bin/env python3
# vim:fileencoding=utf-8
# Copyright (c) 2014 Masami HIRATA <msmhrt@gmail.com>
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# 1. Redistributions of source code must retain the above copyright notice,
@msmhrt
msmhrt / Install.LOG
Created February 1, 2015 21:59
build log of libsixel
スクリプトは 2015年02月02日 06時51分16秒
に開始しましたmsmhrt@ashrose:~/repository/libsixel$ git status
On branch hotfix-for-issue23
Your branch is up-to-date with 'origin/hotfix-for-issue23'.
nothing to commit, working directory clean
msmhrt@ashrose:~/repository/libsixel$ git clean -fdx
msmhrt@ashrose:~/repository/libsixel$ ./configure --prefix=/home/msmhrt/local
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
@msmhrt
msmhrt / b4
Created April 2, 2011 20:07
Better BlackBird Bookmarklet
javascript:(function(){_my_script=document.createElement('SCRIPT');_my_script.type='text/javascript';_my_script.src='https://github.com/msmhrt/b4/raw/master/bookmarklet.js?x='+(Math.random());document.getElementsByTagName('head')[0].appendChild(_my_script);})();
@msmhrt
msmhrt / b4kml
Created April 6, 2011 04:34
Better BlackBird Bookmarklet for Google Maps
javascript:(function(){_my_script=document.createElement('SCRIPT');_my_script.type='text/javascript';_my_script.src='https://github.com/msmhrt/b4/raw/b4kml/bookmarklet.js?x='+(Math.random());document.getElementsByTagName('head')[0].appendChild(_my_script);})();
@msmhrt
msmhrt / gist:922908
Created April 16, 2011 05:51
teritori for Tweets
javascript:(function(){if(!window.teritori){teritori={};}teritori.cfg='mode:tweet';teritori.s=document.createElement('script');teritori.s.type='text/javascript';teritori.s.charset='utf-8';teritori.s.src='https://raw.github.com/msmhrt/teritori/master/teritori.js?key='+(Math.random());document.getElementsByTagName('head')[0].appendChild(teritori.s);}());
@msmhrt
msmhrt / gist:922909
Created April 16, 2011 05:52
teritori for Twitter User Profiles
javascript:(function(){if(!window.teritori){teritori={};}teritori.cfg='mode:profile';teritori.s=document.createElement('script');teritori.s.type='text/javascript';teritori.s.charset='utf-8';teritori.s.src='https://raw.github.com/msmhrt/teritori/master/teritori.js?key='+(Math.random());document.getElementsByTagName('head')[0].appendChild(teritori.s);}());
@msmhrt
msmhrt / gist:922910
Created April 16, 2011 05:53
teritori for Placemark's description of Google Maps
javascript:(function(){if(!window.teritori){teritori={};}teritori.cfg='mode:tweet4kml';teritori.s=document.createElement('script');teritori.s.type='text/javascript';teritori.s.charset='utf-8';teritori.s.src='https://raw.github.com/msmhrt/teritori/master/teritori.js?key='+(Math.random());document.getElementsByTagName('head')[0].appendChild(teritori.s);}());
@msmhrt
msmhrt / client_handler.js
Created October 7, 2011 19:20
An example of ClientHandler of Google Apps Script Gadget
/*global UiApp:false, Utilities:false */
function apply_style(widget, styles) {
'use strict';
var key;
for (key in styles) {
if (styles.hasOwnProperty(key)) {
widget.setStyleAttribute(key, styles[key]);