Skip to content

Instantly share code, notes, and snippets.

@hail2u
hail2u / gopen
Created February 18, 2012 02:16 — forked from ku/gopen
open corresponding URL of the repository of current directory (for msys)
#!/bin/sh
GIT='git'
FETCH_URL=`$GIT remote show origin -n | sed -n '/Fetch URL/p' | awk '{print $3}' | sed -E 's/[:@]/ /g' `
HOST=`echo $FETCH_URL | awk '{print $2}' `
REPOS=`echo $FETCH_URL | awk '{print $3}' | sed 's/.git$//'`
ORIGIN="http://$HOST/"
BRANCH=`$GIT branch | grep -F '*' | sed 's/^* //'`
echo $REPOS | 'egrep' -q '^gist/'
@hail2u
hail2u / hatena_format.jax
Created May 20, 2011 11:56 — forked from mattn/hatena-edit.txt
はてな記法のVimヘルプ
*hatena_format.jax* はてな記法
==============================================================================
入力支援記法 *hatena_format_input_support*
------------------------------------------------------------------------------
見出し記法 *hatena_format_heading*
>
// ==UserScript==
// @name 縦書き
// @namespace http://lowreal.net/
// @include http://www.aozora.gr.jp/cards/*/files/*.html
// ==/UserScript==
//
var styles = document.styleSheets;
for (var i = 0, it; it = styles[i]; i++) {
it.disabled = true;
<!DOCTYPE html>
<html lang="ja">
<head>
<meta charset="UTF-8">
<meta content="width=device-width" name="viewport">
<title>dskd</title>
<link href="http://dskd.jp/" rel="canonical">
<link href="apple-touch-icon.png" rel="apple-touch-icon-precomposed">
@hail2u
hail2u / blog.html
Last active August 29, 2015 14:04 — forked from azu/blog.html
<!-- start -->
<section>
<header>
<h1 class="jser-sitelink">strict mode - motivation and semantics - Constellation Scorpius</h1>
<p><a title="strict mode - motivation and semantics - Constellation Scorpius" href="http://utatane-constellation.tumblr.com/post/3711268645" target="_blank">http://utatane-constellation.tumblr.com/post/3711268645</a></p>
</header>
<p>strict modeの概念とは何か<br/> static解析につながる話</p>
</section>
<!-- end -->