Skip to content

Instantly share code, notes, and snippets.

View mochiz's full-sized avatar

Hiroshi Asakura mochiz

View GitHub Profile
@mochiz
mochiz / html_practice.html
Last active October 6, 2024 03:05 — forked from machida/html_practice.html
HTMLの練習(このレシピにマークアップをしてみましょう)
<!DOCTYPE html>
<html lang="ja">
<head>
<meta charset="UTF-8">
<title>カレーのレシピ</title>
</head>
<body>
<article>
<h1>カレーのレシピ</h1>
@mochiz
mochiz / gist:3045051
Created July 4, 2012 03:21 — forked from yagitoshiro/gist:3039968
Titanium Mobile用のSQLiteを扱うクラス・第二形態
# モデルがこれだけで作れたら素敵じゃないか
# entry.coffee
Database = require('libs/database')
class Entry extends Database
initialize:()->
@property 'title', 'text'
@property 'body', 'text'
super
module.exports = new Entry('entries')
@mochiz
mochiz / app.js
Created March 1, 2012 16:18 — forked from oroce/app.js
Faking Long Touch on Android in Titanium Mobile
//The table view row just has to have a full height view in order
//to trigger the TableView touchstart
function LongTouchTableViewRow(_title) {
var row = Ti.UI.createTableViewRow({
height:50
});
var v = Ti.UI.createView({
height:50
});
@mochiz
mochiz / caveatPatchor.js
Created October 21, 2011 08:31 — forked from phred/caveatPatchor.js
caveatPatchor.js with barebones oohembed (now embedly?!) support for Propane 1.1.2 and above
/*
As of version 1.1.2, Propane will load and execute the contents of
~Library/Application Support/Propane/unsupported/caveatPatchor.js
immediately following the execution of its own enhancer.js file.
You can use this mechanism to add your own customizations to Campfire
in Propane.
Below you'll find two customization examples.