Skip to content

Instantly share code, notes, and snippets.

@hamhei
hamhei / test.html
Last active August 29, 2015 14:07 — forked from mogya/test.html
<html>
<head>
<title>start application automatically and kill myself.</title>
<script type="text/javascript">
function init(){
var iframe = document.createElement('iframe');
iframe.src = "sms:///";
document.body.appendChild(iframe);
window.opener = window;
@hamhei
hamhei / dropcopy.sh
Last active December 31, 2015 13:49
shell script for publishing the file by Dropbox on CLI. usage: ./dropcopy.sh source_file [target_file] before using: set $DROPBOX_ID (write on .bashrc: "export DROPBOX_ID=xxxxxxx") It's included in your public link. (https://dl.dropboxusercontent.com/u/xxxxxxx/hoge.js)
#!/bin/sh
case $# in
1) base=$(basename $1);;
2) base=$2;;
*) echo 'usage: dropcopy.sh source_file [target_file]';;
esac
if [ -z "$DROPBOX_PUBLIC" ]; then
if [ -e "~/Dropbox/Public" ]; then
@hamhei
hamhei / css3book.html
Created June 14, 2012 09:39 — forked from yusugomori/css3book.html
CSS3 Book
<div id="css3book">
<div class="book-host">
<div class="book">
<div class="dummy">
<div class="book-cover"></div>
<div class="dummy-page" id="dummy-page0"></div>
<div class="dummy-page" id="dummy-page1"></div>
<div class="dummy-page" id="dummy-page2"></div>
<div class="dummy-page" id="dummy-page3"></div>
<div class="dummy-page" id="dummy-page4"></div>
@hamhei
hamhei / hamfarm.html
Created January 12, 2012 20:12
hamhei farm
<div style="margin-bottom:12px; padding-top: 5px; padding-bottom: 10px; text-align: center; background-color: #444; border: medium solid #fff; border-radius: 10px; -webkit-border-radius: 10px; -moz-border-radius: 10px;">
<div style="margin: 5px 0px; font-weight:bold; font-size: 12px;">はむへい牧場 (・◇・)ゝビシッ</div>
<div style="margin-bottom: 10px;font-size: 8px;">待望のリアルソーシャルゲーム登場!!<br>みんなではむへいを育てようo(^∇^)o</div>
ヾ(^◇^)〃 <script type="text/javascript" src="http://growbutton.com/javascripts/button.js?apikey=[Your API Key]&shape=rectangle"></script>
</div>
@hamhei
hamhei / gist:1381234
Created November 21, 2011 00:13
Stripe table with hover-high-light
<html>
<head>
<meta http-equiv="Content-Style-Type" content="text/css">
<style type="text/css">
<!--
table {background: #777777 }
#title th{ background: #222222; color: white; }
th,td { padding:5px;}
.odd { background:#aaaaaa; }
.even { background:#f2f2f2 }