Skip to content

Instantly share code, notes, and snippets.

View yoren's full-sized avatar

Yoren Chang yoren

View GitHub Profile
@yoren
yoren / calendar_view.js
Created August 27, 2012 11:45 — forked from yonestra/calendar_view.js
Titaniumでmy365風なカレンダーアプリを作る(1) ref: http://qiita.com/items/1398
var win = Ti.UI.currentWindow;
//今日という日
var now = new Date();
now.setHours(12);
var Y = now.getYear()+1900;
var M = now.getMonth()+1;
//表示している画面の年と月
var whenLabel = Ti.UI.createLabel({
@yoren
yoren / html.html
Created April 27, 2012 05:56 — forked from fancyoung/html.html
HTML template
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>HTML template</title>
<link href="" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="container">
</div>
@yoren
yoren / php_get_extension.php
Created March 23, 2012 09:37 — forked from rugbyprof/php_get_extension.php
Php return file extension
function get_file_ext( $filename )
{
return end( explode( ".", $filename ) );
}