tumblrで表示中の記事と同じタグをもつ記事を取得してくるjs
TumblrRelationPost.jsを取得。
あるいはソースをコピペしてローカル保存
| // | |
| // MyMacro.h | |
| // | |
| // Created by ANZ on 2014/07/07. | |
| // | |
| // | |
| #ifndef cocos3rc1_MyMacro_h | |
| #define cocos3rc1_MyMacro_h |
| #include "LabelAttributedBMFont.h" | |
| USING_NS_CC; | |
| using namespace std; | |
| #define NEWLINE_CHAR "\n" | |
| #define NULL_CHAR "" |
| #include "Stopwatch.h" | |
| USING_NS_CC; | |
| using namespace std; | |
| #define StopwatchUDKeyStart "start-time" | |
| #define StopwatchUDKeyElapsed "elapsed-time" | |
| static Stopwatch *s_instande; |
| void CCArraySort::test() | |
| { | |
| // ソート対象がCCArrayの場合 | |
| auto table = makeDummyList(); | |
| std::sort(table->data->arr, table->data->arr + table->data->num, compare); | |
| // 確認ログ | |
| CCObject* item; | |
| CCARRAY_FOREACH(table, item) { |
| public class CommonDialogFragment extends DialogFragment { | |
| public interface CommonDialogInterface { | |
| public interface onClickListener { | |
| void onDialogButtonClick(String tag, Dialog dialog, int which); | |
| } | |
| public interface onShowListener { | |
| void onDialogShow(String tag, Dialog dialog); | |
| } |
| void play() | |
| { | |
| // 一旦0に(SpriteをFadeInするときとかに、最初は非表示にしておくようなもん) | |
| SimpleAudioEngine::getInstanse->setBackgroundMusicVolume(0.f); | |
| stopAllActions(); // 多重実行しないように | |
| runAction(Sequence::create( | |
| PlayBGM::create("bgm.mp3"), // bgm再生 | |
| FadeToVolumeOfBGM::create(3.f, .5f), // 3秒かけて音量0.5に | |
| DelayTime::create(5.f), |