Skip to content

Instantly share code, notes, and snippets.

View dai's full-sized avatar
🗻
still Catch it Up.

dai dai

🗻
still Catch it Up.
View GitHub Profile
Java のコードを
pythonista に持ち込む:まぁ、Java も書けなくはないけどね
rubyist に持ち込む:ツマラン、どこかに細工してやろうか・・・
perler に持ち込む:出てけゴルァァァァァァァァァァァ!!
Python のコードを
Java エンジニアに持ち込む:おぅ、Python のコードか
rubyist に持ち込む:スクリプト言語の僚友だ、バッチリ直してやるぜ
perler に持ち込む:けっ、優等生か
@uupaa
uupaa / package.json.md
Last active August 29, 2015 13:57
The own field add to package.json.

npm の設定ファイル package.json は、 https://www.npmjs.org/doc/files/package.json.html で定義されているフィールドの他にも、 貴方好みの独自のフィールドを追加した状態で、 npm publish が可能です(単にエラーにならないという話です)。

たとえば、npm モジュールの雛形 Xxx.js の package.json では、 "build": { ... } フィールドを追加しています。

{
  "name":           "uupaa.xxx.js",
  "version":        "0.8.3",
  "description":    "",
@sugamasao
sugamasao / gist:0d91c70e594ef46e429d
Created May 31, 2014 08:49
表記ゆれチェッカーもどき
# encoding:utf-8
require 'natto'
require 'tempfile'
# これは何
# 表記ゆれチェック用のツール(になったらいいなぁ)です
# 名詞を抜き出してソートすることで、末尾の表記ゆれを確認しやすくなるかな、と思います!!
# 使い方
# gem の natto と homebrew的な何かでMeCabをインストールしてると使えるよ!!
@nobodyplace
nobodyplace / tumblr_queue_latest_link.user.js
Last active September 23, 2015 20:57
Tumblr Queueの最新ページへのリンクを生成するGreasemonkey
@inao
inao / markdown2inao.pl
Last active October 2, 2015 19:19 — forked from suzuki/markdown2inao.pl
GitHubに移行しました。 https://github.com/naoya/md2inao.pl
#!/usr/bin/env perl
use strict;
use warnings;
use Pod::Usage;
use Text::Markdown 'markdown';
use HTML::TreeBuilder;
use List::Util 'max';
use Encode;
@dai
dai / egintent.java
Created July 11, 2012 05:19
Example: Using Intent to Twitter. / by harukazepc(http://d.hatena.ne.jp/harukazepc/20111219/1324260914#intent)
var shareButton = Ti.UI.createButton({title:'share'});
shareButton.addEventListener('click',function(e) {
var shareText = 'share the text';
// ボタン押したら、ACTION_SEND対応のアプリへ暗黙インテント発行
var intent = Ti.Android.createIntent({
action: Ti.Android.ACTION_SEND
});
// EXTRA_TEXTとして、shareTextの内容を渡す
intent.putExtra(Ti.Android.EXTRA_TEXT,shareText);
@dai
dai / string.xml
Created July 16, 2012 13:40
japanese string.xml for android apps.
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright 2012 GitHub Inc.
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
@dai
dai / flash_entitlements.xml
Created August 9, 2012 17:06
Flash Player 11.4 Beta 2 - Notes for iOS Push Notifications.
<iPhone>
<Entitlements>
<![CDATA[
<key>get-task-allow</key>
<true/>
<key>aps-environment</key>
<string>development</string>
<key>keychain-access-groups</key>
<array>
<string>KEYCHAIN_ACCESS_GROUP</string>
@abraham
abraham / index.html
Created October 29, 2012 02:50
ADN Widgets alpha install instructions
<html>
<head>
<!-- ADN Widgets alpha -->
<!-- Sign up for alpha deprecation announcements: https://groups.google.com/forum/#!forum/adn-widgets-announce -->
<!-- To install: include script on your web site and add the <a> tag where you want the follow button -->
<!-- Tested to work in the latest Chrome, Firefox, Safari, and IE9 -->
<!-- ADN Widgets: https://alpha.app.net/widgets -->
<script async src='https://adnwidgets.herokuapp.com/alpha.js'></script>
</head>
@dai
dai / index.html
Created November 6, 2012 01:51 — forked from abraham/index.html
ADN Widgets alpha install instructions
<html>
<head>
<!-- ADN Widgets alpha -->
<!-- Sign up for alpha deprecation announcements: https://groups.google.com/forum/#!forum/adn-widgets-announce -->
<!-- To install: include script on your web site and add the <a> tag where you want the follow button -->
<!-- Tested to work in the latest Chrome, Firefox, Safari, and IE9 -->
<!-- ADN Widgets: https://alpha.app.net/widgets -->
<script async src='https://adnwidgets.herokuapp.com/alpha.js'></script>
</head>