This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# メイン関数 | |
if __name__ == "__main__": | |
register() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var offset : Vector2 = Vector2(0.0f, 0.0f); // 中心からのずれ | |
var scale : Vector2 = Vector2(1.0f, 1.0f); // カメラの拡大率 | |
var cam : Camera = null; // アスペクト比を固定化するカメラ | |
private var width : float = 640.0f; // 横幅 (目標解像度) | |
private var height : float = 960.0f; // 高さ (目標解像度) | |
var targetAspect : float; // 目標のアスペクト比 | |
var curAspect : float; // 補正前の「Scene」のアスペクト比 | |
var ratio : float; // 補正前の「Scene」のアスペクト比 ÷ 目標のアスペクト比 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
http_proxy=http://${xxx.xxx.xxx.xxx}:${pp}/ | |
proxy_user=${user} | |
proxy_password=${pass} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#pragma strict | |
var aspectRatioCtrl : Fixed_Aspect_Ratio = null; // 解像度固定スクリプト | |
var x : float = 0.0f; // 表示位置(X座標) | |
var y : float = 0.0f; // 表示位置(Y座標) | |
var width : float = 1.0f; // 横幅 | |
var height : float = 1.0f; // 縦幅 | |
function Update() | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
>>> l = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10] | |
>>> double_l = [] | |
>>> for i in l: | |
... double_l.append(i * 2) | |
... | |
>>> double_l | |
[2, 4, 6, 8, 10, 12, 14, 16, 18, 20] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ cordova platform rm ios |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import bpy | |
import bmesh # 追加でインポートが必要 | |
obj = bpy.context.active_object | |
bpy.ops.object.mode_set(mode='EDIT') # 処理はEDITモードで行う必要がある | |
bm = bmesh.from_edit_mesh(obj.data) | |
# blenderのバージョンが2.73以上の時に必要 | |
if bpy.app.version[0] >= 2 and bpy.app.version[1] >= 73: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ git clone https://github.com/madrobby/zepto.git | |
$ cd zepto | |
$ npm install | |
$ MODULES="zepto event ajax form ie touch" npm run-script dist | |
$ ls dist | |
zepto.js zepto.min.gz zepto.min.js |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var user = 'YOUR_NAME'; // ユーザ名 | |
$.ajax({ | |
url: 'https://qiita.com/api/v1/users/' + user + '/items', | |
type: 'GET', | |
dataType: 'json', | |
scriptCharset: 'utf-8', | |
success: function(res) { | |
// 成功した時の処理 | |
}, |
OlderNewer