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
set encoding=japan | |
set fileencodings=sjis,utf-8,iso-2022-jp,euc-jp | |
set nu | |
colorscheme darkblue | |
set expandtab | |
set tabstop=4 | |
set shiftwidth=4 | |
set nocompatible | |
set title | |
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
javascript:(function(){var url='//ajax.googleapis.com/ajax/libs/jquery/2.0.2/jquery.min.js';if(!url.match(/\?/))url+='?t='+(new Date()).getTime();var d=document;var e=d.createElement('script');e.charset='utf-8';e.src=url;d.getElementsByTagName('head')[0].appendChild(e);function shuffle(t){for(var n,u,h=t.length;h;)u=Math.floor(Math.random()*h--),n=t[h],t[h]=t[u],t[u]=n}var inputs=[];$("input[type=radio]").each(function(){inputs.push($(this))}),shuffle(inputs);for(var j=0;j<inputs.length;j++)inputs[j].prop("checked",!0);})(); |
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
// ランキング登録 | |
this->addButton(Vec2(0, this->getBoundingBox().getMaxY()), "RegisterRank", [](Ref* ref, Widget::TouchEventType type){ | |
if (type != Widget::TouchEventType::ENDED) {return;} | |
CCLOG("btn touched: Register Ranking"); | |
auto scene = amoamo::common::scene::Ranking::createNameInput( | |
[](std::string inputText){ | |
if (inputText.length() == 0) { | |
Director::getInstance()->getRunningScene()->addChild(amoamo::common::layer::Overlay::createDialogOk("名前を入力してね\n\(^o^)/")); | |
return; | |
} |
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
int main(int argc, char** argv) | |
{ | |
auto get_nums = [](){return rx::observable<>::from<int>( | |
1,2,3,4,5,6,7,8,9,10 | |
);}; | |
auto hello_str = [&](){return get_nums().map([](int n){ | |
return std::to_string(n).c_str(); | |
}).as_dynamic();}; |
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
javascript:(function(){ | |
var e = document.getElementsByClassName('props'); | |
var num = e.length; | |
for (var i = 0; i < num; i++) { | |
e[0].remove(); | |
} | |
})(); |
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
<script type="text/javascript" src="https://code.jquery.com/jquery-2.1.3.min.js"></script> | |
<script type="text/javascript"> | |
function rotate(){ | |
$('#catch1').fadeIn(500, function() { | |
$(this).fadeOut(500, function() { | |
$('#catch2').fadeIn(500, function() { | |
$(this).fadeOut(500, function() { | |
$('#catch3').fadeIn(500, function() { | |
$(this).fadeOut(500, function() { | |
$('#catch4').fadeIn(500, function() { |
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
{ | |
auto listener = larme::eventlistener::EventListenerTouchAction::create(); | |
listener->onTouchesActionZoom = [this](float distance) { | |
this->cameraZoom += distance / 1000.0f; | |
// ここで distanceのmaxを設定したほうがいいかも・ | |
}; | |
listener->onTouchesActionPan = [this](Vec2 distance) { | |
this->cameraPosition -= distance / this->cameraZoom; | |
}; |