Skip to content

Instantly share code, notes, and snippets.

View phi-jp's full-sized avatar

phi phi-jp

View GitHub Profile
@phi-jp
phi-jp / index.js
Last active February 15, 2020 06:50
npx 使ってみた
#!/usr/bin/env node
var fs = require('fs');
console.log('npx を使ってみた');
fs.writeFileSync('test.txt', 'npx 経由でファイル出力してみた!');
@phi-jp
phi-jp / README.md
Last active December 27, 2018 04:33
Feedparser Usage
@phi-jp
phi-jp / index.md
Last active August 29, 2015 14:19
tmlib.js 入門

tmlib.js 入門

1. JavaScript 入門

  1. ★変数を学ぼう( Q / A )
  2. ★if 文を学ぼう( Q / A )
  3. ★for 文を学ぼう( Q / A )

2. tmlib.js 入門

@phi-jp
phi-jp / StringExtensions.cs
Last active August 29, 2015 14:11
string extension
/*
* Copyright (c) 2014 @phi_jp
*/
using System;
namespace tm.Extensions {
public static class StringExtensions {
@phi-jp
phi-jp / file0.txt
Created May 30, 2014 04:23
[AngularJS][tips] Toggle ボタン作ってみた ref: http://qiita.com/phi/items/2a59ccd83006e9209494
ng-click="hoge=!hoge"
@phi-jp
phi-jp / file0.js
Created October 23, 2013 07:35
[tmlib.js] tmlib.js におけるクラス定義 ref: http://qiita.com/phi/items/04c4fae5a9a86dc4afc5
tm.define(クラス名, {
superClass: 継承元となるクラス名(省略可)
// 初期化処理
init: function() {
superInit(); // 継承もとの初期化
// TODO: 処理を書いていく
}
@phi-jp
phi-jp / file0.js
Created October 22, 2013 17:34
[tmlib.js] Keyboard クラスでサクッとプレイヤーを移動させてみよう ref: http://qiita.com/phi/items/7cc359c93c64bfe2a5f0
/*
* tmlib.js 0.2.0
*/
/*
* contant
*/
var SCREEN_WIDTH = 465; // スクリーン幅
var SCREEN_HEIGHT = 465; // スクリーン高さ
var SCREEN_CENTER_X = SCREEN_WIDTH/2; // スクリーン幅の半分
@phi-jp
phi-jp / file0.js
Created October 21, 2013 06:12
[tmlib.js] AssetManager で json 読み込み & type 指定 ref: http://qiita.com/phi/items/3c816dce3c1fad518d93
tm.asset.AssetManager.load({
// 普通に読み込む
"image_data": "./kenkyo.jpg",
// type を省略しているので tmss として読み込まれる
"tmss_data": "./crash.tmss",
// tmss だけど type で json を指定しているので json で読み尾込まれる
"json_data00": { url: "./crash.tmss", type: "json" },
// url にオブジェクトを渡しているけど type が json なので File としてかえってくる
"json_data01": { url: {hoge:100, foo:200}, type: "json" },
});

縦向きにする

RootViewController.mm

// Override to allow orientations other than the default portrait orientation.
// This method is deprecated on ios6
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
@phi-jp
phi-jp / index.md
Last active December 19, 2015 07:09
xcode

人気コンボ

コンボ 効果
shift + cmd + o クイックサーチ結果ファイルを分割ビューで表示する。
option + return クイックサーチ結果ファイルを分割ビューで表示する。

社内人気ショートカット一覧