Skip to content

Instantly share code, notes, and snippets.

http://www.osaka-temma.jp/shop/

天六〜天満・扇町エリア

20 鉄板食彩マルトミ 詳細

愛媛のご当地とりから「せんざんき」(590円)と生ビールorチューハイ各種orグラスワインorウーロン茶

23 ビストロバール JIN 詳細

オードブル3種盛り合わせ(ブリのカルパッチョ・自家製オイルサーデン・六甲オリエンタルホテルのポテトサラダ)&なみなみグラスワイン(赤or白)or生ビールorソフトドリンク

@donayama
donayama / gist:6840493
Last active December 24, 2015 18:08
MyKindleをChromeで開いて、JSConsoleで実行すると日別の購入冊数が取得できるでござる。
(function(){
var counter = {};
var page = {now: 1, max: pageList.pages};
var parseList = function(){
var nodeList = $$('tr.rowHeaderCollapsed td.greyed');
for(var i = 1; i < nodeList.length; i = i + 2){
if(nodeList[i] != null){
var ymd = nodeList[i].innerText;
if(!counter[ymd]){
counter[ymd] = 0;

#Ti Weekly Clips 2012年総集編

本ドキュメントは@astronaughtsさん主催のTitanium mobile Advent Calendar 2012の23日目記事です。一応(^^;)

はじめに

Titanium Mobileに関する情報を専門に扱うサイトTitanium Newsの運営をしております@donayamaと申します。

2012年の初頭から開始したこのサイトですが、立ち上げ当初はこまめに情報をアップデートすることを目標に取り組もうとしていたのですが、生業の忙しさもあり、どうしても即時性の高い情報提供が困難な気配がありました。
そこで通勤や移動している最中、あるいは帰宅後にぼへーっとしている時にTwitterで流れる情報に基づき、ちまちまと貯めていっていたはてなブックマークのエントリーを一定期間でまとめる形にしようと1月末から基本的に毎週土曜日のお昼前後に直前の1週間に収集したニュースやTipsを"Ti Weekly Clips"と銘打って、古い言い方をすると「ニュースサイト」形式でお届けして参りました。

@donayama
donayama / app.js
Created September 16, 2012 13:19
XRaderViewとりあえずすぎるバージョン
var initAreaKey = 'kinki01';
var areaList = new (require('area'))();
var map = new (require('xmap'))(areaList, initAreaKey);
var appWindow = Titanium.UI.createWindow({
title : 'XRaderView',
backgroundColor : '#fff',
tabBarHidden : true
});
var sideView = Ti.UI.createView({
@donayama
donayama / app.js
Created August 18, 2012 13:14
Toolbarをくるくる回転…させられなかった。
var window = Ti.UI.createWindow();
var mapView = Ti.Map.createView({
bottom : 44
});
var flex = Ti.UI.createButton({
systemButton : Ti.UI.iPhone.SystemButton.FLEXIBLE_SPACE
});
var button1 = Ti.UI.createButton({
@donayama
donayama / app.js
Created August 18, 2012 13:14
Toolbarをくるくる回転…させられなかった。
var window = Ti.UI.createWindow();
var mapView = Ti.Map.createView({
bottom : 44
});
var flex = Ti.UI.createButton({
systemButton : Ti.UI.iPhone.SystemButton.FLEXIBLE_SPACE
});
var button1 = Ti.UI.createButton({
@donayama
donayama / PlatformRequire.js
Created March 26, 2012 22:22
TiShadow iOS Simulator Patch (from line:29)
var log = require("/api/Log");
var os = Ti.Platform.osname;
// The TiShadow build of the Titanium SDK does not cache CommonJS modules loaded
// from the applicationDataDirectory. This is so that if an update to the app is
// deployed, i.e. a file in the applicationDataDirectory is modified, the changes
// while be loaded. That said loading a CommonJS module every time that it is loaded
// make the deployed bundle run slowly. So we will manage the caching of those
// modules here in the code.
@donayama
donayama / InputDialog.coffee
Created February 9, 2012 14:49
InputDialog(KeyPad) for Titanium Mobile
#-----------------------------------------------------------------------
# InputDialog for Titanium Mobile (by @donayama)
#
# Original JS Version by @k0sukey
# http://k0sukey.tumblr.com/post/17082188960
#-----------------------------------------------------------------------
# Sample
#-----------------------------------------------------------------------
# InputDialog = require 'InputDialog'
#
@donayama
donayama / fc_init.js
Created December 19, 2011 22:28
Filterable Cameraの利用例(in 聖地巡礼S) これをapp.jsからTi.include してグローバルイベントでcallしてます
var module = require('jp.msmc.filterablecamera');
var presets = {
/*
* Normal
*/
Normal : new module.Filter(function() {
// NO OPERATION
}),
/*
* Gray
@donayama
donayama / app.js
Created December 7, 2011 13:21
タイタにうもん第一話 サンプルコード
// (1) ウィンドウ(Window)を作る
var window = Titanium.UI.createWindow({
backgroundColor : 'white'
});
// (2)ボタン(Button)を作る
var button = Titanium.UI.createButton({
title : 'カメラ',
top : 10,
left : 100,