ChangeLog を書く際によく使われる英語をまとめました。
ほとんど引用です。
package com.daeheehan.util; | |
import android.view.View; | |
import android.view.View.MeasureSpec; | |
import android.view.ViewGroup; | |
import android.widget.ListAdapter; | |
import android.widget.ListView; | |
/** | |
* List View Utility |
function dex-method-count() { | |
cat $1 | head -c 92 | tail -c 4 | hexdump -e '1/4 "%d\n"' | |
} | |
function dex-method-count-by-package() { | |
dir=$(mktemp -d -t dex) | |
baksmali $1 -o $dir | |
for pkg in `find $dir/* -type d`; do | |
smali $pkg -o $pkg/classes.dex | |
count=$(dex-method-count $pkg/classes.dex) | |
name=$(echo ${pkg:(${#dir} + 1)} | tr '/' '.') |
/* | |
* Copyright 2014 Julian Shen | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* | |
* Unless required by applicable law or agreed to in writing, software |
# -*- coding: utf-8 -*- | |
require 'fileutils' | |
require 'date' | |
require 'yaml' | |
require 'uri' | |
require 'rexml/document' | |
include REXML | |
doc = Document.new File.new(ARGV[0]) |
/** | |
* 配列の特定のキーを元にソートする | |
* @param array $array | |
* @param string $sortKey | |
* @param int $sortType | |
*/ | |
function sortArray( &$array, $sortKey, $sortType = SORT_ASC ) { | |
$tmpArray = array(); | |
foreach ( $array as $key => $row ) { |
#import <Twitter/Twitter.h> | |
#import <Social/Social.h> | |
// TWTweetComposeViewControllerの場合 (for iOS5) | |
- (IBAction)tweet:(id)sender | |
{ | |
if ([TWTweetComposeViewController canSendTweet]) { | |
// ツイート用の画面をを表示する | |
TWTweetComposeViewController* composeViewController = [[TWTweetComposeViewController alloc] init]; | |
[composeViewController setInitialText:@"Hello World!"]; |
<manifest xmlns:android="http://schemas.android.com/apk/res/android" | |
package="test.nfc" | |
android:versionCode="1" | |
android:versionName="1.0" > | |
<uses-permission android:name="android.permission.NFC" /> | |
<uses-sdk | |
android:minSdkVersion="10" | |
android:targetSdkVersion="15" /> |
/* 先頭行: 他のスクリプトでのセミコロン忘れに備え、且つ、予約語でないundefinedの書換えによる誤動作を防いでいる。*/ | |
;(function($, undefined) { | |
"use strict"; | |
$.fn.myPlugIn = function(option) { | |
var a, b, c; | |
//※未設定のオプション項目に初期値を設定 | |
option = $.extend({ | |
opt1: null, |
http://fladdict.net/blog/2011/02/auto-kerning.html | |
グローバル汚染を無くしたのと、jQueryらしくかけるようにしました。 | |
// 引数なしの場合デフォルトのカーニングが摘要される。 | |
$(selector).FLAutoKerning(); | |
// 引数を入れた場合、そのカーニングが摘要される。 | |
$(selector).FLAutoKerning(myKerningInfo); | |
ライセンスは元のFLAutoKerning.jsを継承します。 |