Skip to content

Instantly share code, notes, and snippets.

@m92o
m92o / app.js
Created February 26, 2011 17:46
Ti.UI.TextArea.keyboardToolbar is not displayed at modal window. (Titanium Mobile 1.6 / iOS SDK 4.2)
var window = Ti.UI.createWindow({
modal: true, // If this line is deleted, keyboardToolbar is displayed.
title: 'window',
backgroundColor: '#fff'
});
var trash = Ti.UI.createButton({
systemButton: Ti.UI.iPhone.SystemButton.TRASH
});
var textarea = Ti.UI.createTextArea({
editable: true,
@masuidrive
masuidrive / .testflight
Created December 5, 2011 08:59
TestflightをサポートしたTitanium Mobile 1.7.5のbuilder.py
[titanium]
api_token=自分のAPI Token
team_token=Team Token
distribution_list=配布先のDistribution list名
@xuwei-k
xuwei-k / README.md
Created March 7, 2012 07:58
sbt で scala-tools を見に行かないように設定
@agarny
agarny / github-import-issues
Last active June 7, 2023 22:44
Import GitHub issues from one repository to another (incl. milestones, labels and comments).
#!/usr/bin/python
# -*- coding: utf-8 -*-
# This script came about after I removed several big files from a GitHub
# repository (see https://gist.github.com/agarny/5541082) and force pushed
# everything back to GitHub. However, cloning the 'new' GitHub repository still
# results in those big files being present in the git history. This is, among
# other things, due to some pull requests I have in that repository and which
# reference those big files. I contacted GitHub about this, but there seems to
# be nothing that they can do about it. So, I was left with no other choice but

マージ済みのリモートブランチを全て削除

git branch -r --merged master | grep -v -e master -e develop | sed -e 's% *origin/%%' | xargs -I% git push --delete origin %
  1. remote の master に merge済み の branch をすべて表示して
  2. master と develop は消えてほしくないので除外して
  3. origin/ を削除して
  4. xargs (-I% % で ブランチ名を渡しつつ、全て削除する)