Skip to content

Instantly share code, notes, and snippets.

@tks2shimizu
tks2shimizu / script.js
Created July 3, 2020 06:52
メールアドレスの正規表現
console.log(valid_mail_address2('[email protected]'));
console.log(valid_mail_address2('[email protected]'));
console.log(valid_mail_address2('hogehoge.fugafuga.com'));
console.log(valid_mail_address2('hogehoge@fugafuga@com'));
console.log(valid_mail_address2('@fugafuga.com'));
console.log(valid_mail_address2('hogehoge@fugafuga'));
console.log(valid_mail_address2('[email protected]'));
function valid_mail_address2(mail) {
//正規表現
class hogehoge {
public static main() {
}
}
@tks2shimizu
tks2shimizu / HelloWorldScene.cpp
Created January 13, 2013 17:08
CCMotionStreakの利用
#include "HelloWorldScene.h"
#include "SimpleAudioEngine.h"
using namespace cocos2d;
using namespace CocosDenshion;
CCScene* HelloWorld::scene()
{
CCScene *scene = CCScene::create();
HelloWorld *layer = HelloWorld::create();
@tks2shimizu
tks2shimizu / HelloWorldScene.cpp
Created January 13, 2013 15:58
ラベルの画像化
#include "HelloWorldScene.h"
#include "SimpleAudioEngine.h"
using namespace cocos2d;
using namespace CocosDenshion;
CCScene* HelloWorld::scene()
{
CCScene *scene = CCScene::create();
HelloWorld *layer = HelloWorld::create();
@tks2shimizu
tks2shimizu / HelloWorldScene.cpp
Created January 13, 2013 15:12
パーティクルの表示
#include "HelloWorldScene.h"
#include "SimpleAudioEngine.h"
using namespace cocos2d;
using namespace CocosDenshion;
CCScene* HelloWorld::scene()
{
CCScene *scene = CCScene::create();
HelloWorld *layer = HelloWorld::create();
@tks2shimizu
tks2shimizu / HelloWorldScene.cpp
Last active December 11, 2015 01:38
1000匹のネコ (2)CCSpriteBatchNode
#include "HelloWorldScene.h"
#include "SimpleAudioEngine.h"
using namespace cocos2d;
using namespace CocosDenshion;
CCScene* HelloWorld::scene()
{
CCScene *scene = CCScene::create();
HelloWorld *layer = HelloWorld::create();
@tks2shimizu
tks2shimizu / HelloWorldScene.cpp
Created January 13, 2013 14:13
1000匹のネコ (1)CCSprite
#include "HelloWorldScene.h"
#include "SimpleAudioEngine.h"
using namespace cocos2d;
using namespace CocosDenshion;
CCScene* HelloWorld::scene()
{
CCScene *scene = CCScene::create();
HelloWorld *layer = HelloWorld::create();
@tks2shimizu
tks2shimizu / HelloWorldScene.cpp
Last active December 11, 2015 01:29
100匹のネコ (4)Texture Atlas画像の非同期読込み
#include "HelloWorldScene.h"
#include "SimpleAudioEngine.h"
using namespace cocos2d;
using namespace CocosDenshion;
CCScene* HelloWorld::scene()
{
CCScene *scene = CCScene::create();
HelloWorld *layer = HelloWorld::create();
@tks2shimizu
tks2shimizu / HelloWorldScene.cpp
Last active December 11, 2015 01:29
100匹のネコ (3)非同期読込
#include "HelloWorldScene.h"
#include "SimpleAudioEngine.h"
using namespace cocos2d;
using namespace CocosDenshion;
CCScene* HelloWorld::scene()
{
CCScene *scene = CCScene::create();
HelloWorld *layer = HelloWorld::create();
@tks2shimizu
tks2shimizu / HelloWorldScene.cpp
Last active December 11, 2015 01:29
100匹のネコ (2)Texture Atlas
#include "HelloWorldScene.h"
#include "SimpleAudioEngine.h"
using namespace cocos2d;
using namespace CocosDenshion;
CCScene* HelloWorld::scene()
{
CCScene *scene = CCScene::create();
HelloWorld *layer = HelloWorld::create();