Skip to content

Instantly share code, notes, and snippets.

View hekt's full-sized avatar
🗼

Kazutoshi Horie hekt

🗼
View GitHub Profile
@hekt
hekt / gist:3841489
Created October 5, 2012 18:20
add vendor prefixes
;; add css vendor prefixes
(defun add-css-vendor-prefixes (start end)
(interactive "r")
(replace-regexp
"\\([\s\t]*\\)\\(\\(?:.\\|\n\\)+;\\)"
"\\1-webkit-\\2\n\\1-moz-\\2\n\\1-ms-\\2\n\\1-o-\\2\n\\&"
nil start end))
(defun add-css-vendor-prefixes-to-value (start end)
(interactive "r")
(replace-regexp
@hekt
hekt / remove-rubbish.js
Last active October 11, 2015 08:58
Yahoo!ニュースのスポーツカテゴリから有害なソースを排除する
// ==UserScript==
// @name remove rubbish
// @namespace http://www.hekt.org/
// @include http://dailynews.yahoo.co.jp/fc/sports/*
// ==/UserScript==
(function() {
var rs = [
"日刊ゲンダイ",
"夕刊フジ",
@hekt
hekt / gist:3757203
Created September 20, 2012 17:25
local alias
alias cd="mycd"
function mycd() {
    \cd $1
    if [ $? == 0 ]; then
        restore_aliases
        if [ -e ".bashrc.local" ]; then
            save_aliases
            source .bashrc.local
        fi
    fi
@hekt
hekt / gist:3727949
Created September 15, 2012 13:39
YouTube Large player by default
/*
http://blog.hawn.be/2011/10/07/how-to-force-youtube-to-use-expanded-view-by-default-and-even-larger/
*/
div#watch-player.flash-player,
div#watch-player.html5-player,
div#watch-video {
width: 854px !important; height: 510px !important;
/* width: 970px !important; height: 580px !important; */
/* width: 1280px !important; height: 765px !important; */
@hekt
hekt / gist:3015451
Created June 29, 2012 03:12
Google Personal Blocklist
b.hatena.ne.jp
clip.livedoor.com
ceron.jp
www.kira-ku.com
kuapi.fresheye.com
live.gummy.jp
keyword.gotowebdb.com
b.arw.cc
bookmarks.yahoo.co.jp
jobtalk.jp
@hekt
hekt / gist:3015390
Created June 29, 2012 02:53
Wikipedia clone site url list
# 2012-06-29 http://ja.wikipedia.org/wiki/Wikipedia:%E3%82%A6%E3%82%A3%E3%82%AD%E3%83%9A%E3%83%87%E3%82%A3%E3%82%A2%E3%82%92%E6%83%85%E5%A0%B1%E6%BA%90%E3%81%A8%E3%81%99%E3%82%8B%E3%82%B5%E3%82%A4%E3%83%88
http://wpedia.search.goo.ne.jp/
http://wkp.fresheye.com/
http://jiten.biglobe.ne.jp/
http://encyclopedie-ja.snyke.com/index_ja.html
http://www.guajara.com/wiki/ja/wikipedia/a/a_/a_a_a_a_a_a_.html
http://www.memomsg.com/
http://www.infogogo.com/index.html
http://www.answers.com
http://monocle.jp/keyword/wiki.php
@hekt
hekt / gist:3015336
Created June 29, 2012 02:41
OKWave partner site url list
#2012-06-29 http://faq.okwave.jp/EokpControl?site=default&lang=en&tid=103115&event=FE0006
http://oshiete.goo.ne.jp/
http://oshiete.eibi.co.jp/
http://bekkoame.okweb.ne.jp/
http://oshiete.homes.jp
http://otasuke.goo-net.com/
http://tusinbo.okwave.jp/
http://oshiete.coneco.net/
http://kaigo.okwave.jp/
http://sanwa.okwave.jp/
@hekt
hekt / markdown.nanorc
Created March 5, 2012 19:27
Markdown syntax highlighting in GNU nano
##
## markdown.nanorc 1.0.1 (March 06 2012)
## https://gist.github.com/1980496
##
## license: MIT License
##
## copyright (C) 2012 hekt <http://www.hekt.org/>.
##
syntax "markdown" "\.(md|mdt|mdwn)$"
@hekt
hekt / shBrushMarkdown.js
Created March 5, 2012 17:38
Markdown brush for SyntaxHighlighter
/**
* SyntaxHighlighter
* http://alexgorbatchev.com/SyntaxHighlighter
*
* SyntaxHighlighter is donationware. If you are using it, please donate.
* http://alexgorbatchev.com/SyntaxHighlighter/donate.html
*
* @version
* 3.0.83 (July 02 2010)
*
@hekt
hekt / md-result-styling.el
Created March 5, 2012 07:54
emacs keyboard macro for styling markdown html
;; <!-- elem attr="val" -->
;;
;; <elem>
;; => <elem attr="val">
;; <!-- section -->, <!-- /section -->
;; => <section>, </section>
;; <pre[ attr="val"]><code>, </code></pre>
;; => <pre[ attr="val"]>, </pre>