This file contains 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
describe('sakuraCrowd.linkById', function() { | |
it("参照オブジェクトを参照先オブジェクトに変換する", function() { | |
var target = [ | |
{"id":"id1", "value":10}, | |
{"$ref":"id1"} | |
]; | |
sakuraCrowd.linkById(target); | |
expect(target.length).toEqual(2); | |
expect(target[0]).toBe(target[1]); | |
}); |
This file contains 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
describe('sakuraCrowd.jsonId.refToObj', function() { | |
it("参照オブジェクトを参照先オブジェクトに変換する", function() { | |
var target = [ | |
{"id":"id1", "value":10}, | |
{"$ref":"id1"} | |
]; | |
sakuraCrowd.jsonId.refToObj(target); | |
expect(target.length).toEqual(2); | |
expect(target[0]).toBe(target[1]); | |
}); |
This file contains 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
describe('sakuraCrowd.jsonId.refToObj', function() { | |
it("参照オブジェクトを参照先オブジェクトに変換する", function() { | |
var target = [ | |
{"id":"id1", "value":10}, | |
{"$ref":"id1"} | |
]; | |
sakuraCrowd.jsonId.refToObj(target); | |
expect(target.length).toEqual(2); | |
expect(target[0]).toBe(target[1]); | |
}); |
This file contains 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
<!DOCTYPE HTML> | |
<html> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> | |
<title>Jasmine Spec Runner v2.0.0</title> | |
<link rel="shortcut icon" type="image/png" href="lib/jasmine-2.0.0/jasmine_favicon.png"> | |
<link rel="stylesheet" type="text/css" href="lib/jasmine-2.0.0/jasmine.css"> | |
<script type="text/javascript" src="lib/jasmine-2.0.0/jasmine.js"></script> |
This file contains 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 button = mcclib.createImageLabelButton( | |
function(sender){ | |
window.alert("button pushed"); | |
}, | |
"閉じる", cc.size(50, 30), "Arial", 12, cc.TEXT_ALIGNMENT_CENTER, cc.TEXT_ALIGNMENT_CENTER, | |
res.gui_button_normal_png, res.gui_button_selected_png, res.gui_button_disabled_png); | |
this.addChild(button, 10000); |
This file contains 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
!!対応中の TODO | |
<$list filter="[!has[draft.of]tag[task]!tag[done]!tag[pending]sort[created]]"> <$checkbox tag="done"></$checkbox><$checkbox tag="pending"></$checkbox><$link to={{!!title}}><$view field="title"/> (<$view field="created" format="relativedate"/>)</$link><br> </$list> | |
!!保留中の TODO | |
<$list filter="[!has[draft.of]tag[task]!tag[done]tag[pending]sort[created]]"> <$checkbox tag="done"/><$checkbox tag="pending"/> <$link to={{!!title}}><$view field="title"/> (<$view field="created" format="relativedate"/>)</$link><br> </$list> | |
!!行った TODO | |
<$list filter="[!has[draft.of]tag[task]tag[done]sort[created]]"> <$checkbox tag="done"/><$checkbox tag="pending"/> <$link to={{!!title}}><$view field="title"/> (<$view field="created" format="relativedate"/>)</$link><br> </$list> | |
--- |
This file contains 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
#include "hsp3dish.as" | |
#cmpopt varname 1 | |
/// ScVirtualSlidePad の用例 1 | |
*startExampleVirtualSlidePad | |
#define SCVERTUALSLIDEPAD_EXAMPLE_USE_IMAGE 0 // スライドパッドの描画方法。0:円のグラフィック, 1:画像 | |
ScVirtualSlidePadInit // 初期化 | |
ScVirtualSlidePadSetSizeFreeMovement 20 // スライドパッドの遊びの大きさ | |
ScVirtualSlidePadSetSizePadMovement 15 // 描画するスライドパッドのパッドの移動距離の最大値を設定 |
This file contains 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
# -*- coding: utf-8 -*- | |
__author__ = 'SakuraCrowd' | |
""" | |
RaspberryPi2(Raspbian) から Windows 7 64 の共有フォルダにマウントする GUI です。 | |
設定後、 Mount トグルボタンでマウントします。 | |
トグルボタンをOFFにするかウィンドウを閉じるとマウントは解除されます。 | |
次のコマンドで起動できます。 | |
python MountGUI.py |
This file contains 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
# -*- coding: utf-8 -*- | |
__author__ = 'SakuraCrowd' | |
""" | |
Drag & Drop した複数のファイルパスを処理するためのウィンドウです。 | |
ファイルパスはリストに表示され、コンテキストメニューから削除することができます。 | |
ファイルパスの処理は DragAndDropWindow.runHandler に追加してください。 | |
追加する前は、 Run を押すとファイルパスがログに表示される処理だけ実装してあります。 |
This file contains 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
# ui ファイルを読み込み、 ui オブジェクトを作成、表示 | |
loader = QtUiTools.QUiLoader() | |
self.ui = loader.load("XXX.ui") | |
self.ui.show() | |
# アクションのイベントハンドラを設定 | |
self.ui.actionMenu.triggered.connect(self.onToolbarMenu) |
OlderNewer