Best Python code snippet using websmith_python
v8core.js
Source:v8core.js
...132/* 133* standart redis functions 134* you can find info on http://redis.io/commands135* some commands like PUBLISH SUBSCRIPE MONITOR are omited136* if some command missing you can use redis._run("missing_command","arg1","arg2")137*/138redis.append = function(key,value){139 return this._run('APPEND',key,value);140}141redis.bgrewriteaof = function(){142 return this._run('BGREWRITEAOF');143}144redis.bgsave = function(){145 return this._run('BGSAVE');146}147redis.bitcount = function(key){148 if(arguments.length==1){149 return this._run('BITCOUNT',key);150 }151 var args = Array(arguments.length+1);152 args[0] = 'BITCOUNT';153 for(var i=0;i<arguments.length;i++)154 args[i+1] = arguments[i];155 return this._run.apply(this,args);156}157redis.bitop = function(operation,destkey,key){158 if(arguments.length==3){159 return this._run('BITOP',operation,destkey,key);160 }161 var args = Array(arguments.length+1);162 args[0] = 'BITOP';163 for(var i=0;i<arguments.length;i++)164 args[i+1] = arguments[i];165 return this._run.apply(this,args);166}167redis.blpop = function(key,timeout){168 if(arguments.length==2){169 return this._run('BLPOP',key,timeout);170 }171 var args = Array(arguments.length+1);172 args[0] = 'BLPOP';173 for(var i=0;i<arguments.length;i++)174 args[i+1] = arguments[i];175 return this._run.apply(this,args);176}177redis.brpop = function(key,timeout){178 if(arguments.length==2){179 return this._run('BRPOP',key,timeout);180 }181 var args = Array(arguments.length+1);182 args[0] = 'BRPOP';183 for(var i=0;i<arguments.length;i++)184 args[i+1] = arguments[i];185 return this._run.apply(this,args);186}187redis.brpoplpush = function(source,destination,timeout){188 return this._run('BRPOPLPUSH',source,destination,timeout);189}190redis.client_kill = function(ip_port){191 return this._run('CLIENT','KILL',ip_port);192}193redis.client_list = function(){194 return this._run('CLIENT','LIST');195}196redis.client_getname = function(){197 return this._run('CLIENT','GETNAME');198}199redis.client_setname = function(name){200 return this._run('CLIENT','SETNAME',name);201}202redis.config_get = function(parameter){203 return this._run('CONFIG','GET',parameter);204}205redis.config_set = function(parameter,value){206 return this._run('CONFIG','SET',parameter,value);207}208redis.config_resetstat = function(){209 return this._run('CONFIG','RESETSTAT');210}211redis.dbsize = function(){212 return this._run('DBSIZE');213}214redis.bgsave = function(){215 return this._run('BGSAVE');216}217redis.debug_object = function(key){218 return this._run('DEBUG','OBJECT',key);219}220redis.debug_segfault = function(){221 return this._run('DEBUG','SEGFAULT');222}223redis.decr = function(key) {224 if(typeof key != 'string' || key.length<1){225 redis.last_error = '-Not specified key';226 return false;227 }228 redis._runcounter++;229 redis.last_error = '';230 redis.str = this.__incrby(key,-1);231 if(redis.str===false){232 redis.last_error = redis.getLastError();233 }234 return redis.str;235}236redis.decrby = function(key,decrement) {237 if(typeof key != 'string' || key.length<1){238 redis.last_error = '-Not specified key';239 return false;240 }241 redis._runcounter++;242 redis.last_error = '';243 redis.str = this.__incrby(key,-decrement);244 if(redis.str===false){245 redis.last_error = redis.getLastError();246 }247 return redis.str;248}249redis.del = function(key){250 if(arguments.length>1){251 for(var i=0;i<arguments.length;i++)252 this._run('DEL',arguments[i]);253 return;254 }255 return this._run('DEL',key);256}257redis.dump = function(key){258 redis.last_error = 'cant handle binary data, not implemented yet';259 return false;260 261 redis._runcounter++;262 redis.last_error = '';263 var rez = this.__run('dump',key);264 rez = rez.map(function(char){265 return escape(String.fromCharCode(char));266 })267 return rez.join('');268}269redis.echo = function(message){270 return this._run('ECHO',message);271}272redis.eval = function(){273 var args = Array(arguments.length+1);274 args[0] = 'EVAL';275 for(var i=0;i<arguments.length;i++)276 args[i+1] = arguments[i];277 return this._run.apply(this,args);278}279redis.evalsha = function(){280 var args = Array(arguments.length+1);281 args[0] = 'EVALSHA';282 for(var i=0;i<arguments.length;i++)283 args[i+1] = arguments[i];284 return this._run.apply(this,args);285}286redis.exists = function(key){287 return this._run('EXISTS',key);288}289redis.expire = function(key,seconds){290 return this._run('EXPIRE',key,seconds);291}292redis.expireat = function(key,timestamp){293 return this._run('EXPIREAT',key,timestamp);294}295redis.flushall = function(){296 return this._run('FLUSHALL');297}298redis.flushdb = function(){299 return this._run('FLUSHDB');300}301redis._get = function(key) {302 redis._runcounter++;303 redis.last_error = '';304 redis.str = redis.__run('GET',key);305 if(redis.str===false){306 redis.last_error = redis.getLastError();307 }308 return redis.str;309}310redis.get = function(key){311 if(typeof key != 'string' || key.length<1){312 return this._get(key);313 }314 redis._runcounter++;315 redis.last_error = '';316 return this.__get(key);317}318redis.getbit = function(key,offset){319 return this._run('GETBIT',key,offset);320}321redis.getrange = function(key,start,end){322 return this._run('GETRANGE',key,start,end);323}324redis.getset = function(key,value){325 return this._run('GETSET',key,value);326}327redis.hdel = function(key,field){328 if(arguments.length==2){329 return this._run('HDEL',key,field);330 }331 var args = Array(arguments.length+1);332 args[0] = 'HDEL';333 for(var i=0;i<arguments.length;i++)334 args[i+1] = arguments[i];335 return this._run.apply(this,args);336}337redis.hexists = function(key,field){338 return this._run('HEXISTS',key,field);339}340redis.hget = function(key,field){341 return this._run('HGET',key,field);342}343redis.hgetall = function(key){344 redis._runcounter++;345 redis.last_error = '';346 redis.str = redis.__run.apply(this,['HGETALL',key]);347 348 if(redis.str.length<1) return null;349 350 var resp = redis.str;351 var ret = {};352 for(var i=0; i<resp.length; i+=2){353 ret[resp[i]] = resp[i+1];354 }355 return ret;356}357redis.hincrby = function(key,field,increment){358 return this._run('HINCRBY',key,field,increment)359}360redis.hincrbyfloat = function(key,field,increment){361 return this._run('HINCRBYFLOAT',key,field,increment);362}363redis.hkeys = function(key){364 return this._run('HKEYS',key);365}366redis.hlen = function(key){367 return this._run('HLEN',key);368}369redis.hmget = function(key,fields){370 redis._runcounter++;371 redis.last_error = '';372 var args = fields;373 if(Array.isArray(fields)){374 args.unshift(key);375 args.unshift('HMGET');376 } else {377 args = Array(arguments.length+1);378 args[0] = 'HMGET';379 for(var i=0;i<arguments.length;i++)380 args[i+1] = arguments[i];381 }382 redis.str = redis.__run.apply(this,args);383 384 var resp = redis.str;385 var ret = {};386 for(var i=0;i<resp.length;i++)387 ret[args[i+2]] = resp[i];388 return ret;389}390redis.hmset = function(key, obj){391 var f = ['HMSET',key];392 for(var k in obj){393 f.push(k);394 f.push(obj[k]);395 }396 return this._run.apply(this,f);397}398redis.hset = function(key,field,value){399 return this._run('HSET',key,field,value);400}401redis.hsetnx = function(key,field,value){402 return this._run('HSETNX',key,field,value);403}404redis.hvals = function(key){405 return this._run('HVALS',key);406}407redis.incr = function(key){408 if(typeof key != 'string' || key.length<1){409 redis.last_error = '-Not specified key';410 return false;411 }412 redis._runcounter++;413 redis.last_error = '';414 redis.str = this.__incrby(key,1);415 if(redis.str===false){416 redis.last_error = redis.getLastError();417 }418 return redis.str;419}420redis.incrby = function(key,increment){421 if(typeof key != 'string' || key.length<1){422 redis.last_error = '-Not specified key';423 return false;424 }425 redis._runcounter++;426 redis.last_error = '';427 redis.str = this.__incrby(key,increment);428 if(redis.str===false){429 redis.last_error = redis.getLastError();430 }431 return redis.str;432}433redis.incrbyfloat = function(key,increment){434 return this._run('INCRBYFLOAT',key,increment);435}436redis.info = function(){437 if(arguments.length==0){438 return this._run('INFO');439 }440 var args = Array(arguments.length+1);441 args[0] = 'INFO';442 for(var i=0;i<arguments.length;i++)443 args[i+1] = arguments[i];444 return this._run.apply(this,args);445}446redis.keys = function(pattern){447 return this._run('KEYS',pattern);448}449redis.lastsave = function(){450 return this._run('LASTSAVE');451}452redis.lindex = function(key,index){453 return this._run('LINDEX',key,index);454}455redis.linsert = function(key,before_after,pivot,value){456 return this._run('LINSERT',key,before_after,pivot,value);457}458redis.llen = function(key){459 return this._run('LLEN',key);460}461redis.lpop = function(key){462 return this._run('LPOP',key);463}464redis.lpush = function(key,value){465 if(arguments.length==2){466 return this._run('LPUSH',key,value);467 }468 var args = Array(arguments.length+1);469 args[0] = 'LPUSH';470 for(var i=0;i<arguments.length;i++)471 args[i+1] = arguments[i];472 return this._run.apply(this,args);473}474redis.lpushhx = function(key,value){475 return this._run('LPUSHX',key,value);476}477redis.lrange = function(key,start,stop){478 return this._run('LRANGE',key,start,stop);479}480redis.lrem = function(key,count,value){481 return this._run('LREM',key,count,value);482}483redis.lset = function(key,index,value){484 return this._run('LSET',key,index,value);485}486redis.ltrim = function(key,start,stop){487 return this._run('LTRIM',key,start,stop);488}489redis.mget = function(key){490 if(arguments.length==1){491 return this._run('MGET',key);492 }493 var args = Array(arguments.length+1);494 args[0] = 'MGET';495 for(var i=0;i<arguments.length;i++)496 args[i+1] = arguments[i];497 return this._run.apply(this,args);498}499// MIGRATE host port key destination-db timeout500redis.migrate = function(){501 this.last_error = 'not supported yet';502 return false;503}504redis.move = function(key,db){505 return this._run('MOVE',key,db);506}507redis.mset = function(key,value){508 if(arguments.length==2){509 return this._run('MSET',key,value);510 }511 var args = Array(arguments.length+1);512 args[0] = 'MSET';513 for(var i=0;i<arguments.length;i++)514 args[i+1] = arguments[i];515 return this._run.apply(this,args);516}517redis.msetnx = function(key,value){518 if(arguments.length==2){519 return this._run('MSETNX',key,value);520 }521 var args = Array(arguments.length+1);522 args[0] = 'MSETNX';523 for(var i=0;i<arguments.length;i++)524 args[i+1] = arguments[i];525 return this._run.apply(this,args);526}527redis.object = function(subcommand){528 if(arguments.length==1){529 return this._run('OBJECT',subcommand);530 }531 var args = Array(arguments.length+1);532 args[0] = 'OBJECT';533 for(var i=0;i<arguments.length;i++)534 args[i+1] = arguments[i];535 return this._run.apply(this,args);536}537redis.persist = function(key){538 return this._run('PERSIST',key);539}540redis.pexpire = function(key,milliseconds){541 return this._run('PEXPIRE',key,milliseconds);542}543redis.pexpireat = function(key,milliseconds){544 return this._run('PEXPIREAT',key,milliseconds);545}546redis.ping = function(){547 return this._run('PING');548}549redis.psetex = function(key,milliseconds,value){550 return this._run('PSETEX',key,milliseconds,value);551}552redis.pttl = function(key){553 return this._run('PTTL',key);554}555redis.randomkey = function(){556 return this._run('RANDOMKEY');557}558redis.rename = function(key,newkey){559 return this._run('RENAME',key,newkey);560}561redis.renamenx = function(key,newkey){562 return this._run('RENAMENX',key,newkey);563}564// RESTORE key ttl serialized-value565redis.restore = function(key,ttl,serialized_value){566 redis.last_error = 'cant handle binary data, not implemented yet';567 return false;568}569redis.rpop = function(key){570 return this._run('RPOP',key);571}572redis.rpoplpush = function(source,destination){573 return this._run('RPOPLPUSH',source,destination);574}575redis.rpush = function(key,value){576 if(arguments.length==2){577 return this._run('RPUSH',key,value);578 }579 var args = Array(arguments.length+1);580 args[0] = 'RPUSH';581 for(var i=0;i<arguments.length;i++)582 args[i+1] = arguments[i];583 return this._run.apply(this,args);584}585redis.rpushx = function(key,value){586 return this._run('RPUSHX',key,value);587}588redis.sadd = function(key,member){589 if(arguments.length==2){590 return this._run('SADD',key,value);591 }592 var args = Array(arguments.length+1);593 args[0] = 'SADD';594 for(var i=0;i<arguments.length;i++)595 args[i+1] = arguments[i];596 return this._run.apply(this,args);597}598redis.save = function(){599 return this._run('SAVE');600}601redis.scard = function(key){602 return this._run('SCARD',key);603}604redis.script_exists = function(script){605 if(arguments.length==1){606 return this._run('SCRIPT','EXISTS',script);607 }608 var args = Array(arguments.length+2);609 args[0] = 'SCRIPT';610 args[1] = 'EXISTS';611 for(var i=0;i<arguments.length;i++)612 args[i+2] = arguments[i];613 return this._run.apply(this,args);614}615redis.script_flush = function(){616 return this._run('SCRIPT','FLUSH');617}618redis.script_kill = function(){619 return this._run('SCRIPT','KILL');620}621redis.script_load = function(script){622 return this._run('SCRIPT','LOAD',script);623}624redis.sdiff = function(key){625 if(arguments.length==1){626 return this._run('SDIFF',key);627 }628 var args = Array(arguments.length+1);629 args[0] = 'SDIFF';630 for(var i=0;i<arguments.length;i++)631 args[i+1] = arguments[i];632 return this._run.apply(this,args);633}634redis.sdiffstore = function(destination,key){635 if(arguments.length==2){636 return this._run('SDIFFSTORE',destination,key);637 }638 var args = Array(arguments.length+1);639 args[0] = 'SDIFFSTORE';640 for(var i=0;i<arguments.length;i++)641 args[i+1] = arguments[i];642 return this._run.apply(this,args);643}644redis.select = function(index){645 return this._run('SELECT',index);646}647redis._set = function(key,value){648 if(arguments.length>2){649 var args = Array(arguments.length+1);650 args[0] = 'SET';651 for(var i=0;i<arguments.length;i++)652 args[i+1] = arguments[i];653 return this._run.apply(this,args);654 }655 redis._runcounter++;656 redis.last_error = '';657 redis.str = redis.__run('SET',key,value);658 if(redis.str===false){659 redis.last_error = redis.getLastError();660 }661 return redis.str;662}663// SET key value [EX seconds] [PX milliseconds] [NX|XX]664redis.set = function(key,value){665 if(arguments.length>2 || typeof key != 'string' || typeof value != 'string')666 return this._set.apply(this,arguments);667 redis._runcounter++;668 redis.last_error = '';669 return this.__set(key,value);670}671redis.setbit = function(key,offset,value){672 return this._run('SETBIT',key,offset,value);673}674redis.setex = function(key,expire,value){675 return this._run('SETEX',key,expire,value);676}677redis.setnx = function(key,value){678 return this._run('SETNX',key,value);679}680redis.setrange = function(key,offset,value){681 return this._run('SETRANGE',key,offset,value);682}683redis.shutdown = function(){684 if(arguments.length==1){685 return this._run('SHUTDOWN');686 }687 var args = Array(arguments.length+1);688 args[0] = 'SHUTDOWN';689 for(var i=0;i<arguments.length;i++)690 args[i+1] = arguments[i];691 return this._run.apply(this,args);692}693redis.sinter = function(key){694 if(arguments.length==1){695 return this._run('SINTER',key);696 }697 var args = Array(arguments.length+1);698 args[0] = 'SINTER';699 for(var i=0;i<arguments.length;i++)700 args[i+1] = arguments[i];701 return this._run.apply(this,args);702}703redis.sinterstore = function(destination,key){704 if(arguments.length==2){705 return this._run('SINTERSTORE',destination,key);706 }707 var args = Array(arguments.length+1);708 args[0] = 'SINTERSTORE';709 for(var i=0;i<arguments.length;i++)710 args[i+1] = arguments[i];711 return this._run.apply(this,args);712}713redis.sismember = function(key,member){714 return this._run('SISMEMBER',key,member);715}716redis.slowlog = function(subcommand){717 if(arguments.length==1){718 return this._run('SLOWLOG',subcommand);719 }720 var args = Array(arguments.length+1);721 args[0] = 'SLOWLOG';722 for(var i=0;i<arguments.length;i++)723 args[i+1] = arguments[i];724 return this._run.apply(this,args);725}726redis.smembers = function(key){727 return this._run('SMEMBERS',key);728}729redis.smove = function(source,destination,member){730 return this._run('SMOVE',source,destination,member);731}732redis.sort = function(key){733 if(arguments.length==1){734 return this._run('SORT',key);735 }736 var args = Array(arguments.length+1);737 args[0] = 'SORT';738 for(var i=0;i<arguments.length;i++)739 args[i+1] = arguments[i];740 return this._run.apply(this,args);741}742redis.spop = function(key){743 return this._run('SPOP',key);744}745redis.srandmember = function(key,count){746 if(argument.length==1)747 return this._run('SRANDMEMBER',key);748 return this._run('SRANDMEMBER',key,count);749}750redis.srem = function(key,member){751 if(arguments.length==2){752 return this._run('SREM',key,value);753 }754 var args = Array(arguments.length+1);755 args[0] = 'SREM';756 for(var i=0;i<arguments.length;i++)757 args[i+1] = arguments[i];758 return this._run.apply(this,args);759}760redis.strlen = function(key){761 return this._run('STRLEN',key);762}763redis.sunion = function(key){764 if(arguments.length==1){765 return this._run('SUNION',key);766 }767 var args = Array(arguments.length+1);768 args[0] = 'SUNION';769 for(var i=0;i<arguments.length;i++)770 args[i+1] = arguments[i];771 return this._run.apply(this,args);772}773redis.sunionstore = function(destination,key){774 if(arguments.length==2){775 return this._run('SUNIONSTORE',destination,key);776 }777 var args = Array(arguments.length+1);778 args[0] = 'SUNIONSTORE';779 for(var i=0;i<arguments.length;i++)780 args[i+1] = arguments[i];781 return this._run.apply(this,args);782}783redis.sync = function(){784 return this._run('SYNC');785}786redis.time = function(){787 return this._run('TIME');788}789redis.ttl = function(key){790 return this._run('TTL',key);791}792redis.type = function(key){793 return this._run('TYPE',key);794}795redis.zadd = function(key,score,value){796 if(arguments.length>2){797 var args = Array(arguments.length+1);798 args[0] = 'ZADD';799 for(var i=0;i<arguments.length;i++)800 args[i+1] = arguments[i];801 return this._run.apply(this,args);802 }803 return this._run('ZADD',key,score,value);804}805redis.zcard = function(key){806 return this._run('ZCARD',key);807}808redis.zcount = function(key,min,max){809 return this._run('ZCOUNT',key,min,max);810}811redis.zincrby = function(key,increment,member){812 return this._run('ZINCRBY',key,increment,member);813}814redis.zinterstore = function(destination,numkeys,key){815 if(arguments.length==3){816 return this._run('ZINTERSTORE',destination,numkeys,key);817 }818 var args = Array(arguments.length+1);819 args[0] = 'ZUNIONSTORE';820 for(var i=0;i<arguments.length;i++)821 args[i+1] = arguments[i];822 return this._run.apply(this,args);823}824redis.zrange = function(key,start,stop,withscores){825 if(arguments.length==4)826 return this._run('ZRANGE',key,start,stop,'WITHSCORES');827 return this._run('ZRANGE',key,start,stop);828}829redis.zrangebyscore = function(key,min,max){830 if(arguments.length==3){831 return this._run('ZRANGEBYSCORE',key,min,max);832 }833 var args = Array(arguments.length+1);834 args[0] = 'ZRANGEBYSCORE';835 for(var i=0;i<arguments.length;i++)836 args[i+1] = arguments[i];837 return this._run.apply(this,args);838}839redis.zrank = function(key,member){840 return this._run('ZRANK',key,member);841}842redis.zrem = function(key,value){843 if(arguments.length>2){844 var args = Array(arguments.length+1);845 args[0] = 'ZREM';846 for(var i=0;i<arguments.length;i++)847 args[i+1] = arguments[i];848 return this._run.apply(this,args);849 }850 return this._run('ZREM',key,value);851}852redis.zremrangebyrank = function(key,start,stop){853 return this._run('ZREMRANGEBYRANK',key,start,stop);854}855redis.zremrangebyscore = function(key,min,max){856 return this._run('ZREMRANGEBYSCORE',key,min,max);857}858redis.zrevrange = function(key,start,stop,withscores){859 if(typeof withscores != 'undefined')860 return this._run('ZREVRANGE',key,start,stop,'WITHSCORES');861 return this._run('ZREVRANGE',key,start,stop);862}863redis.zrevrangebyscore = function(key,min,max){864 if(arguments.length==3){865 return this._run('ZREVRANGEBYSCORE',key,min,max);866 }867 var args = Array(arguments.length+1);868 args[0] = 'ZREVRANGEBYSCORE';869 for(var i=0;i<arguments.length;i++)870 args[i+1] = arguments[i];871 return this._run.apply(this,args);872}873redis.zrevrank = function(key,member){874 return this._run('ZREVRANK',key,member);875}876redis.zscore = function(key,member){877 return this._run('ZSCORE',key,member);878}879redis.zunionstore = function(destination,numkeys,key){880 if(arguments.length==3){881 return this._run('ZUNIONSTORE',destination,numkeys,key);882 }883 var args = Array(arguments.length+1);884 args[0] = 'ZUNIONSTORE';885 for(var i=0;i<arguments.length;i++)886 args[i+1] = arguments[i];887 return this._run.apply(this,args);888}889/* Redis Log levels890#define REDIS_DEBUG 0891#define REDIS_VERBOSE 1892#define REDIS_NOTICE 2893#define REDIS_WARNING 3894*/895console = {...
content_creation_edge.js
Source:content_creation_edge.js
1/**2 * Adobe Edge: symbol definitions3 */4(function($, Edge, compId){5//images folder6var im='images/';7var fonts = {};8var opts = {9 'gAudioPreloadPreference': 'auto',10 'gVideoPreloadPreference': 'auto'11};12var resources = [13];14var symbols = {15"stage": {16 version: "4.0.0",17 minimumCompatibleVersion: "4.0.0",18 build: "4.0.0.359",19 baseState: "Base State",20 scaleToFit: "none",21 centerStage: "horizontal",22 initialState: "Base State",23 gpuAccelerate: true,24 resizeInstances: false,25 content: {26 dom: [27 {28 id: 'plat',29 type: 'image',30 rect: ['0px', '150px','1000px','200px','auto', 'auto'],31 fill: ["rgba(0,0,0,0)",im+"plat.png",'0px','0px']32 },33 {34 id: 'Clouds',35 type: 'group',36 rect: ['1000px', '0','1044','150','auto', 'auto'],37 c: [38 {39 id: 'large_cloud2',40 type: 'image',41 rect: ['0px', '0px','518px','150px','auto', 'auto'],42 fill: ["rgba(0,0,0,0)",im+"large_cloud.png",'0px','0px']43 },44 {45 id: 'large_cloud2Copy',46 type: 'image',47 rect: ['526px', '0px','518px','150px','auto', 'auto'],48 fill: ["rgba(0,0,0,0)",im+"large_cloud.png",'0px','0px']49 }]50 },51 {52 id: 'Buttons',53 type: 'group',54 rect: ['30', '318','716','25','auto', 'auto'],55 c: [56 {57 id: 'START3',58 type: 'rect',59 rect: ['0', '-3','auto','auto','auto', 'auto']60 },61 {62 id: 'PUNCH',63 type: 'rect',64 rect: ['149', '-3','auto','auto','auto', 'auto']65 },66 {67 id: 'RUN2',68 type: 'rect',69 rect: ['296', '-3','auto','auto','auto', 'auto']70 },71 {72 id: 'JUMP2',73 type: 'rect',74 rect: ['441', '-3','auto','auto','auto', 'auto']75 }]76 },77 {78 id: 'Davis',79 type: 'rect',80 rect: ['36', '194','auto','auto','auto', 'auto']81 }],82 symbolInstances: [83 {84 id: 'JUMP2',85 symbolName: 'JUMP',86 autoPlay: {87 }88 },89 {90 id: 'START3',91 symbolName: 'START',92 autoPlay: {93 }94 },95 {96 id: 'PUNCH',97 symbolName: 'WALK',98 autoPlay: {99 }100 },101 {102 id: 'RUN2',103 symbolName: 'RUN',104 autoPlay: {105 }106 },107 {108 id: 'Davis',109 symbolName: 'Davis',110 autoPlay: {111 }112 }113 ]114 },115 states: {116 "Base State": {117 "${_Stage}": [118 ["color", "background-color", 'rgba(255,255,255,1)'],119 ["style", "overflow", 'hidden'],120 ["style", "height", '350px'],121 ["gradient", "background-image", [270,[['rgba(15,8,79,1.00)',0],['rgba(2,2,2,1.00)',50]]]],122 ["style", "width", '1000px']123 ],124 "${_Buttons}": [125 ["style", "opacity", '0.08']126 ],127 "${_plat}": [128 ["style", "height", '200px'],129 ["style", "top", '150px'],130 ["style", "left", '0px'],131 ["style", "width", '1000px']132 ],133 "${_Davis}": [134 ["style", "left", '-100px']135 ],136 "${_large_cloud2}": [137 ["style", "height", '150px'],138 ["style", "top", '0px'],139 ["style", "left", '0px'],140 ["style", "width", '518px']141 ],142 "${_Clouds}": [143 ["style", "left", '1000px']144 ],145 "${_large_cloud2Copy}": [146 ["style", "top", '0px'],147 ["style", "height", '150px'],148 ["style", "left", '526px'],149 ["style", "width", '518px']150 ]151 }152 },153 timelines: {154 "Default Timeline": {155 fromState: "Base State",156 toState: "",157 duration: 24750,158 autoPlay: true,159 labels: {160 "CloudStart": 1000,161 "punch": 6000,162 "run": 10500,163 "jump": 21000164 },165 timeline: [166 { id: "eid45", tween: [ "style", "${_Clouds}", "left", '0px', { fromValue: '1000px'}], position: 1000, duration: 4000 },167 { id: "eid56", tween: [ "style", "${_Davis}", "left", '265px', { fromValue: '-100px'}], position: 1000, duration: 4000 },168 { id: "eid106", tween: [ "style", "${_Davis}", "left", '266px', { fromValue: '265px'}], position: 6000, duration: 3000, easing: "easeInQuad" },169 { id: "eid123", tween: [ "style", "${_Davis}", "left", '671px', { fromValue: '266px'}], position: 10500, duration: 4500, easing: "easeInQuad" },170 { id: "eid124", tween: [ "style", "${_Davis}", "left", '266px', { fromValue: '671px'}], position: 15000, duration: 5000, easing: "easeInQuad" },171 { id: "eid7", tween: [ "style", "${_Buttons}", "opacity", '1', { fromValue: '0.08'}], position: 0, duration: 1000, easing: "easeInQuad" },172 { id: "eid58", trigger: [ function executeSymbolFunction(e, data) { this._executeSymbolAction(e, data); }, ['stop', '${_Davis}', ['Stance'] ], ""], position: 4833.3748891578 },173 { id: "eid107", trigger: [ function executeSymbolFunction(e, data) { this._executeSymbolAction(e, data); }, ['play', '${_Davis}', ['punch'] ], ""], position: 6000 },174 { id: "eid108", trigger: [ function executeSymbolFunction(e, data) { this._executeSymbolAction(e, data); }, ['stop', '${_Davis}', ['Stand'] ], ""], position: 8881.1909858054 },175 { id: "eid168", trigger: [ function executeSymbolFunction(e, data) { this._executeSymbolAction(e, data); }, ['play', '${_Davis}', ['run'] ], ""], position: 10500 },176 { id: "eid169", trigger: [ function executeSymbolFunction(e, data) { this._executeSymbolAction(e, data); }, ['stop', '${_Davis}', ['Stand'] ], ""], position: 19943.569709643 },177 { id: "eid194", trigger: [ function executeSymbolFunction(e, data) { this._executeSymbolAction(e, data); }, ['play', '${_Davis}', ['jump'] ], ""], position: 21000 } ]178 }179 }180},181"CloudAnim": {182 version: "4.0.0",183 minimumCompatibleVersion: "4.0.0",184 build: "4.0.0.359",185 baseState: "Base State",186 scaleToFit: "none",187 centerStage: "none",188 initialState: "Base State",189 gpuAccelerate: false,190 resizeInstances: false,191 content: {192 dom: [193 {194 id: 'CloudGroup',195 type: 'group',196 rect: ['1007px', '0px', '929', '150', 'auto', 'auto'],197 c: [198 {199 id: 'large_cloudCopy2',200 type: 'image',201 rect: ['429px', '0px', '500px', '150px', 'auto', 'auto'],202 fill: ['rgba(0,0,0,0)', 'images/large_cloud.png', '0px', '0px']203 },204 {205 id: 'large_cloudCopy3',206 type: 'image',207 rect: ['0px', '0px', '500px', '150px', 'auto', 'auto'],208 fill: ['rgba(0,0,0,0)', 'images/large_cloud.png', '0px', '0px']209 }]210 }211 ],212 symbolInstances: [213 ]214 },215 states: {216 "Base State": {217 "${_large_cloudCopy3}": [218 ["style", "top", '0px'],219 ["style", "height", '150px'],220 ["style", "left", '0px'],221 ["style", "width", '500px']222 ],223 "${_large_cloudCopy2}": [224 ["style", "height", '150px'],225 ["style", "top", '0px'],226 ["style", "left", '429px'],227 ["style", "width", '500px']228 ],229 "${_CloudGroup}": [230 ["style", "left", '1007px'],231 ["style", "top", '0px']232 ],233 "${symbolSelector}": [234 ["style", "height", '150px'],235 ["style", "width", '1000px'],236 ["style", "overflow", 'hidden']237 ]238 }239 },240 timelines: {241 "Default Timeline": {242 fromState: "Base State",243 toState: "",244 duration: 5000,245 autoPlay: true,246 timeline: [247 { id: "eid44", tween: [ "style", "${_CloudGroup}", "left", '63px', { fromValue: '1007px'}], position: 1000, duration: 4000, easing: "easeInQuad" } ]248 }249 }250},251"START": {252 version: "4.0.0",253 minimumCompatibleVersion: "4.0.0",254 build: "4.0.0.359",255 baseState: "Base State",256 scaleToFit: "none",257 centerStage: "none",258 initialState: "Base State",259 gpuAccelerate: false,260 resizeInstances: false,261 content: {262 dom: [263 {264 rect: ['0px', '3px', '125px', '25px', 'auto', 'auto'],265 borderRadius: ['10px', '10px', '10px', '10px'],266 id: 'START',267 stroke: [0, 'rgb(0, 0, 0)', 'none'],268 type: 'rect',269 fill: ['rgba(192,192,192,1)'],270 c: [271 {272 font: ['Verdana, Geneva, sans-serif', 24, 'rgba(0,0,0,1)', 'normal', 'none', ''],273 type: 'text',274 align: 'center',275 id: 'StartText',276 text: 'START',277 cursor: ['pointer'],278 rect: ['0px', '-3px', '125px', '25px', 'auto', 'auto']279 }]280 }281 ],282 symbolInstances: [283 ]284 },285 states: {286 "Base State": {287 "${_START}": [288 ["style", "top", '3px'],289 ["style", "height", '25px'],290 ["color", "background-color", 'rgba(192,192,192,1)'],291 ["style", "left", '0px'],292 ["style", "width", '125px']293 ],294 "${_StartText}": [295 ["style", "top", '-3px'],296 ["style", "text-align", 'center'],297 ["color", "color", 'rgba(0,0,0,1)'],298 ["style", "font-family", 'Verdana, Geneva, sans-serif'],299 ["style", "left", '0px'],300 ["style", "cursor", 'pointer']301 ],302 "${symbolSelector}": [303 ["style", "height", '28px'],304 ["style", "width", '125px']305 ]306 }307 },308 timelines: {309 "Default Timeline": {310 fromState: "Base State",311 toState: "",312 duration: 1000,313 autoPlay: true,314 labels: {315 "StartClick": 0316 },317 timeline: [318 { id: "eid37", tween: [ "color", "${_START}", "background-color", 'rgba(79,79,79,1.00)', { animationColorSpace: 'RGB', valueTemplate: undefined, fromValue: 'rgba(192,192,192,1)'}], position: 0, duration: 500, easing: "easeInQuad" },319 { id: "eid39", tween: [ "color", "${_START}", "background-color", 'rgba(192,192,192,1)', { animationColorSpace: 'RGB', valueTemplate: undefined, fromValue: 'rgba(79,79,79,1.00)'}], position: 500, duration: 500, easing: "easeInQuad" },320 { id: "eid38", tween: [ "color", "${_StartText}", "color", 'rgba(255,255,255,1.00)', { animationColorSpace: 'RGB', valueTemplate: undefined, fromValue: 'rgba(0,0,0,1)'}], position: 0, duration: 500, easing: "easeInQuad" },321 { id: "eid40", tween: [ "color", "${_StartText}", "color", 'rgba(0,0,0,1)', { animationColorSpace: 'RGB', valueTemplate: undefined, fromValue: 'rgba(255,255,255,1.00)'}], position: 500, duration: 500, easing: "easeInQuad" } ]322 }323 }324},325"WALK": {326 version: "4.0.0",327 minimumCompatibleVersion: "4.0.0",328 build: "4.0.0.359",329 baseState: "Base State",330 scaleToFit: "none",331 centerStage: "none",332 initialState: "Base State",333 gpuAccelerate: false,334 resizeInstances: false,335 content: {336 dom: [337 {338 type: 'rect',339 borderRadius: ['10px', '10px', '10px', '10px'],340 rect: ['1px', '3px', '125px', '25px', 'auto', 'auto'],341 id: 'WALK',342 stroke: [0, 'rgb(0, 0, 0)', 'none'],343 cursor: ['pointer'],344 fill: ['rgba(192,192,192,1)'],345 c: [346 {347 font: ['Verdana, Geneva, sans-serif', 24, 'rgba(0,0,0,1)', 'normal', 'none', ''],348 type: 'text',349 id: 'PunchText',350 text: 'PUNCH',351 align: 'center',352 rect: ['-1px', '-3px', '125px', '25px', 'auto', 'auto']353 }]354 }355 ],356 symbolInstances: [357 ]358 },359 states: {360 "Base State": {361 "${_WALK}": [362 ["color", "background-color", 'rgba(192,192,192,1)'],363 ["style", "top", '3px'],364 ["style", "height", '25px'],365 ["style", "cursor", 'pointer'],366 ["style", "left", '1px'],367 ["style", "width", '125px']368 ],369 "${symbolSelector}": [370 ["style", "height", '28px'],371 ["style", "width", '126px']372 ],373 "${_PunchText}": [374 ["style", "top", '-3px'],375 ["style", "text-align", 'center'],376 ["color", "color", 'rgba(0,0,0,1)'],377 ["style", "font-family", 'Verdana, Geneva, sans-serif'],378 ["style", "left", '-1px']379 ]380 }381 },382 timelines: {383 "Default Timeline": {384 fromState: "Base State",385 toState: "",386 duration: 1000,387 autoPlay: true,388 labels: {389 "StartClick": 0390 },391 timeline: [392 { id: "eid60", tween: [ "color", "${_PunchText}", "color", 'rgba(255,255,255,1.00)', { animationColorSpace: 'RGB', valueTemplate: undefined, fromValue: 'rgba(0,0,0,1)'}], position: 0, duration: 500, easing: "easeInQuad" },393 { id: "eid63", tween: [ "color", "${_PunchText}", "color", 'rgba(0,0,0,1)', { animationColorSpace: 'RGB', valueTemplate: undefined, fromValue: 'rgba(255,255,255,1.00)'}], position: 500, duration: 500, easing: "easeInQuad" },394 { id: "eid61", tween: [ "color", "${_WALK}", "background-color", 'rgba(0,0,0,1.00)', { animationColorSpace: 'RGB', valueTemplate: undefined, fromValue: 'rgba(192,192,192,1)'}], position: 0, duration: 500, easing: "easeInQuad" },395 { id: "eid62", tween: [ "color", "${_WALK}", "background-color", 'rgba(192,192,192,1)', { animationColorSpace: 'RGB', valueTemplate: undefined, fromValue: 'rgba(0,0,0,1.00)'}], position: 500, duration: 500, easing: "easeInQuad" } ]396 }397 }398},399"RUN": {400 version: "4.0.0",401 minimumCompatibleVersion: "4.0.0",402 build: "4.0.0.359",403 baseState: "Base State",404 scaleToFit: "none",405 centerStage: "none",406 initialState: "Base State",407 gpuAccelerate: false,408 resizeInstances: false,409 content: {410 dom: [411 {412 type: 'rect',413 borderRadius: ['10px', '10px', '10px', '10px'],414 rect: ['0px', '3px', '125px', '25px', 'auto', 'auto'],415 id: 'RUN',416 stroke: [0, 'rgb(0, 0, 0)', 'none'],417 cursor: ['pointer'],418 fill: ['rgba(192,192,192,1)'],419 c: [420 {421 font: ['Verdana, Geneva, sans-serif', 24, 'rgba(0,0,0,1)', 'normal', 'none', ''],422 type: 'text',423 id: 'RunText',424 text: 'RUN',425 align: 'center',426 rect: ['0px', '-3px', '125px', '25px', 'auto', 'auto']427 }]428 }429 ],430 symbolInstances: [431 ]432 },433 states: {434 "Base State": {435 "${_RunText}": [436 ["style", "top", '-3px'],437 ["style", "text-align", 'center'],438 ["color", "color", 'rgba(0,0,0,1)'],439 ["style", "font-family", 'Verdana, Geneva, sans-serif'],440 ["style", "left", '0px']441 ],442 "${_RUN}": [443 ["color", "background-color", 'rgba(192,192,192,1)'],444 ["style", "top", '3px'],445 ["style", "height", '25px'],446 ["style", "cursor", 'pointer'],447 ["style", "left", '0px'],448 ["style", "width", '125px']449 ],450 "${symbolSelector}": [451 ["style", "height", '28px'],452 ["style", "width", '125px']453 ]454 }455 },456 timelines: {457 "Default Timeline": {458 fromState: "Base State",459 toState: "",460 duration: 1000,461 autoPlay: true,462 labels: {463 "StartClick": 0464 },465 timeline: [466 { id: "eid164", tween: [ "color", "${_RunText}", "color", 'rgba(255,255,255,1.00)', { animationColorSpace: 'RGB', valueTemplate: undefined, fromValue: 'rgba(0,0,0,1)'}], position: 0, duration: 500, easing: "easeInQuad" },467 { id: "eid167", tween: [ "color", "${_RunText}", "color", 'rgba(0,0,0,1)', { animationColorSpace: 'RGB', valueTemplate: undefined, fromValue: 'rgba(255,255,255,1.00)'}], position: 500, duration: 500, easing: "easeInQuad" },468 { id: "eid165", tween: [ "color", "${_RUN}", "background-color", 'rgba(0,0,0,1.00)', { animationColorSpace: 'RGB', valueTemplate: undefined, fromValue: 'rgba(192,192,192,1)'}], position: 0, duration: 500, easing: "easeInQuad" },469 { id: "eid166", tween: [ "color", "${_RUN}", "background-color", 'rgba(192,192,192,1)', { animationColorSpace: 'RGB', valueTemplate: undefined, fromValue: 'rgba(0,0,0,1.00)'}], position: 500, duration: 500, easing: "easeInQuad" } ]470 }471 }472},473"JUMP": {474 version: "4.0.0",475 minimumCompatibleVersion: "4.0.0",476 build: "4.0.0.359",477 baseState: "Base State",478 scaleToFit: "none",479 centerStage: "none",480 initialState: "Base State",481 gpuAccelerate: false,482 resizeInstances: false,483 content: {484 dom: [485 {486 rect: ['1px', '3px', '125px', '25px', 'auto', 'auto'],487 borderRadius: ['10px', '10px', '10px', '10px'],488 id: 'JUMP',489 stroke: [0, 'rgb(0, 0, 0)', 'none'],490 type: 'rect',491 fill: ['rgba(192,192,192,1.00)'],492 c: [493 {494 font: ['Verdana, Geneva, sans-serif', 24, 'rgba(0,0,0,1)', 'normal', 'none', ''],495 type: 'text',496 align: 'center',497 id: 'JumpText',498 text: 'JUMP',499 cursor: ['pointer'],500 rect: ['-1px', '-3px', '125px', '25px', 'auto', 'auto']501 }]502 }503 ],504 symbolInstances: [505 ]506 },507 states: {508 "Base State": {509 "${_JumpText}": [510 ["style", "top", '-3px'],511 ["style", "text-align", 'center'],512 ["color", "color", 'rgba(0,0,0,1)'],513 ["style", "font-family", 'Verdana, Geneva, sans-serif'],514 ["style", "left", '-1px'],515 ["style", "cursor", 'pointer']516 ],517 "${_JUMP}": [518 ["style", "top", '3px'],519 ["style", "height", '25px'],520 ["color", "background-color", 'rgba(192,192,192,1)'],521 ["style", "left", '1px'],522 ["style", "width", '125px']523 ],524 "${symbolSelector}": [525 ["style", "height", '28px'],526 ["style", "width", '126px']527 ]528 }529 },530 timelines: {531 "Default Timeline": {532 fromState: "Base State",533 toState: "",534 duration: 1000,535 autoPlay: true,536 labels: {537 "StartClick": 0538 },539 timeline: [540 { id: "eid190", tween: [ "color", "${_JumpText}", "color", 'rgba(255,255,255,1.00)', { animationColorSpace: 'RGB', valueTemplate: undefined, fromValue: 'rgba(0,0,0,1)'}], position: 0, duration: 500 },541 { id: "eid193", tween: [ "color", "${_JumpText}", "color", 'rgba(0,0,0,1)', { animationColorSpace: 'RGB', valueTemplate: undefined, fromValue: 'rgba(255,255,255,1.00)'}], position: 500, duration: 500 },542 { id: "eid191", tween: [ "color", "${_JUMP}", "background-color", 'rgba(0,0,0,1.00)', { animationColorSpace: 'RGB', valueTemplate: undefined, fromValue: 'rgba(192,192,192,1)'}], position: 0, duration: 500 },543 { id: "eid192", tween: [ "color", "${_JUMP}", "background-color", 'rgba(192,192,192,1)', { animationColorSpace: 'RGB', valueTemplate: undefined, fromValue: 'rgba(0,0,0,1.00)'}], position: 500, duration: 500 } ]544 }545 }546},547"Davis": {548 version: "4.0.0",549 minimumCompatibleVersion: "4.0.0",550 build: "4.0.0.359",551 baseState: "Base State",552 scaleToFit: "none",553 centerStage: "none",554 initialState: "Base State",555 gpuAccelerate: false,556 resizeInstances: false,557 content: {558 dom: [559 {560 type: 'image',561 display: 'block',562 rect: ['-385px', '0px', '484px', '100px', 'auto', 'auto'],563 id: 'wlk_2',564 fill: ['rgba(0,0,0,0)', 'images/wlk_2.png', '0px', '0px']565 },566 {567 type: 'image',568 display: 'block',569 rect: ['23px', '2px', '735px', '100px', 'auto', 'auto'],570 id: 'punch2',571 fill: ['rgba(0,0,0,0)', 'images/punch.png', '0px', '0px']572 },573 {574 type: 'image',575 display: 'none',576 rect: ['14px', '2px', '569px', '100px', 'auto', 'auto'],577 id: 'run',578 fill: ['rgba(0,0,0,0)', 'images/run.png', '0px', '0px']579 },580 {581 type: 'image',582 display: 'none',583 rect: ['0px', '0px', '1263px', '100px', 'auto', 'auto'],584 id: 'jump2',585 fill: ['rgba(0,0,0,0)', 'images/jump.png', '0px', '0px']586 }587 ],588 symbolInstances: [589 ]590 },591 states: {592 "Base State": {593 "${_wlk_2}": [594 ["style", "top", '0px'],595 ["style", "display", 'block'],596 ["style", "overflow", 'hidden'],597 ["style", "height", '100px'],598 ["style", "opacity", '1'],599 ["style", "left", '0px'],600 ["style", "width", '484px']601 ],602 "${symbolSelector}": [603 ["style", "height", '100px'],604 ["style", "width", '100px'],605 ["style", "overflow", 'hidden']606 ],607 "${_run}": [608 ["style", "top", '0px'],609 ["style", "display", 'none'],610 ["style", "height", '100px'],611 ["style", "left", '14px'],612 ["style", "width", '569px']613 ],614 "${_jump2}": [615 ["style", "top", '0px'],616 ["style", "display", 'none'],617 ["style", "height", '100px'],618 ["style", "left", '0px'],619 ["style", "width", '1263px']620 ],621 "${_punch2}": [622 ["style", "top", '3px'],623 ["style", "display", 'block'],624 ["style", "height", '100px'],625 ["style", "left", '1101px'],626 ["style", "width", '735px']627 ]628 }629 },630 timelines: {631 "Default Timeline": {632 fromState: "Base State",633 toState: "",634 duration: 24250,635 autoPlay: true,636 labels: {637 "WalkStart": 750,638 "Stand": 2500,639 "Stance": 6000,640 "punch": 7000,641 "run": 10750,642 "jump": 20500643 },644 timeline: [645 { id: "eid97", tween: [ "style", "${_punch2}", "left", '1101px', { fromValue: '1101px'}], position: 3250, duration: 0, easing: "easeInQuad" },646 { id: "eid98", tween: [ "style", "${_punch2}", "left", '24px', { fromValue: '1101px'}], position: 6000, duration: 0, easing: "easeInQuad" },647 { id: "eid86", tween: [ "style", "${_punch2}", "left", '24px', { fromValue: '619px'}], position: 6500, duration: 0, easing: "easeInQuad" },648 { id: "eid88", tween: [ "style", "${_punch2}", "left", '-55px', { fromValue: '23px'}], position: 7000, duration: 0, easing: "easeInQuad" },649 { id: "eid90", tween: [ "style", "${_punch2}", "left", '-155px', { fromValue: '-55px'}], position: 7500, duration: 0, easing: "easeInQuad" },650 { id: "eid91", tween: [ "style", "${_punch2}", "left", '-268px', { fromValue: '-155px'}], position: 8000, duration: 0, easing: "easeInQuad" },651 { id: "eid92", tween: [ "style", "${_punch2}", "left", '-368px', { fromValue: '-268px'}], position: 8500, duration: 0, easing: "easeInQuad" },652 { id: "eid93", tween: [ "style", "${_punch2}", "left", '-447px', { fromValue: '-368px'}], position: 9000, duration: 0, easing: "easeInQuad" },653 { id: "eid94", tween: [ "style", "${_punch2}", "left", '-549px', { fromValue: '-447px'}], position: 9500, duration: 0, easing: "easeInQuad" },654 { id: "eid95", tween: [ "style", "${_punch2}", "left", '-657px', { fromValue: '-549px'}], position: 10000, duration: 0, easing: "easeInQuad" },655 { id: "eid46", tween: [ "style", "${_wlk_2}", "left", '0px', { fromValue: '0px'}], position: 250, duration: 0 },656 { id: "eid47", tween: [ "style", "${_wlk_2}", "left", '-100px', { fromValue: '0px'}], position: 500, duration: 0 },657 { id: "eid48", tween: [ "style", "${_wlk_2}", "left", '-200px', { fromValue: '-100px'}], position: 750, duration: 0 },658 { id: "eid49", tween: [ "style", "${_wlk_2}", "left", '-300px', { fromValue: '-200px'}], position: 1000, duration: 0 },659 { id: "eid50", tween: [ "style", "${_wlk_2}", "left", '-400px', { fromValue: '-300px'}], position: 1250, duration: 0 },660 { id: "eid51", tween: [ "style", "${_wlk_2}", "left", '-300px', { fromValue: '-400px'}], position: 1500, duration: 0 },661 { id: "eid52", tween: [ "style", "${_wlk_2}", "left", '-200px', { fromValue: '-300px'}], position: 1750, duration: 0 },662 { id: "eid53", tween: [ "style", "${_wlk_2}", "left", '-100px', { fromValue: '-200px'}], position: 2000, duration: 0 },663 { id: "eid54", tween: [ "style", "${_wlk_2}", "left", '0px', { fromValue: '-100px'}], position: 2500, duration: 0 },664 { id: "eid99", tween: [ "style", "${_punch2}", "top", '3px', { fromValue: '3px'}], position: 6000, duration: 0, easing: "easeInQuad" },665 { id: "eid100", tween: [ "style", "${_punch2}", "top", '3px', { fromValue: '3px'}], position: 6500, duration: 0, easing: "easeInQuad" },666 { id: "eid89", tween: [ "style", "${_punch2}", "top", '2px', { fromValue: '0px'}], position: 7000, duration: 0, easing: "easeInQuad" },667 { id: "eid112", tween: [ "style", "${_punch2}", "display", 'none', { fromValue: 'block'}], position: 10500, duration: 0, easing: "easeInQuad" },668 { id: "eid113", tween: [ "style", "${_run}", "left", '14px', { fromValue: '14px'}], position: 10500, duration: 0, easing: "easeInQuad" },669 { id: "eid114", tween: [ "style", "${_run}", "left", '-85px', { fromValue: '14px'}], position: 10750, duration: 0, easing: "easeInQuad" },670 { id: "eid116", tween: [ "style", "${_run}", "left", '-177px', { fromValue: '-85px'}], position: 11000, duration: 0, easing: "easeInQuad" },671 { id: "eid117", tween: [ "style", "${_run}", "left", '-85px', { fromValue: '-177px'}], position: 11250, duration: 0, easing: "easeInQuad" },672 { id: "eid118", tween: [ "style", "${_run}", "left", '11px', { fromValue: '-85px'}], position: 11500, duration: 0, easing: "easeInQuad" },673 { id: "eid119", tween: [ "style", "${_run}", "left", '-85px', { fromValue: '11px'}], position: 11750, duration: 0, easing: "easeInQuad" },674 { id: "eid120", tween: [ "style", "${_run}", "left", '-176px', { fromValue: '-85px'}], position: 12000, duration: 0, easing: "easeInQuad" },675 { id: "eid125", tween: [ "style", "${_run}", "left", '-85px', { fromValue: '-176px'}], position: 12250, duration: 0, easing: "easeInQuad" },676 { id: "eid126", tween: [ "style", "${_run}", "left", '-177px', { fromValue: '-85px'}], position: 12500, duration: 0, easing: "easeInQuad" },677 { id: "eid127", tween: [ "style", "${_run}", "left", '-85px', { fromValue: '-177px'}], position: 12750, duration: 0, easing: "easeInQuad" },678 { id: "eid128", tween: [ "style", "${_run}", "left", '11px', { fromValue: '-85px'}], position: 13000, duration: 0, easing: "easeInQuad" },679 { id: "eid129", tween: [ "style", "${_run}", "left", '-85px', { fromValue: '11px'}], position: 13250, duration: 0, easing: "easeInQuad" },680 { id: "eid132", tween: [ "style", "${_run}", "left", '-177px', { fromValue: '-85px'}], position: 13500, duration: 0, easing: "easeInQuad" },681 { id: "eid133", tween: [ "style", "${_run}", "left", '-85px', { fromValue: '-177px'}], position: 13750, duration: 0, easing: "easeInQuad" },682 { id: "eid135", tween: [ "style", "${_run}", "left", '-177px', { fromValue: '-85px'}], position: 14000, duration: 0, easing: "easeInQuad" },683 { id: "eid136", tween: [ "style", "${_run}", "left", '-85px', { fromValue: '-177px'}], position: 14250, duration: 0, easing: "easeInQuad" },684 { id: "eid137", tween: [ "style", "${_run}", "left", '11px', { fromValue: '-85px'}], position: 14500, duration: 0, easing: "easeInQuad" },685 { id: "eid138", tween: [ "style", "${_run}", "left", '-85px', { fromValue: '11px'}], position: 14750, duration: 0, easing: "easeInQuad" },686 { id: "eid139", tween: [ "style", "${_run}", "left", '-177px', { fromValue: '-85px'}], position: 15000, duration: 0, easing: "easeInQuad" },687 { id: "eid140", tween: [ "style", "${_run}", "left", '-356px', { fromValue: '-177px'}], position: 15250, duration: 0, easing: "easeInQuad" },688 { id: "eid142", tween: [ "style", "${_run}", "left", '-271px', { fromValue: '-356px'}], position: 15500, duration: 0, easing: "easeInQuad" },689 { id: "eid144", tween: [ "style", "${_run}", "left", '-368px', { fromValue: '-271px'}], position: 15750, duration: 0, easing: "easeInQuad" },690 { id: "eid145", tween: [ "style", "${_run}", "left", '-469px', { fromValue: '-368px'}], position: 16000, duration: 0, easing: "easeInQuad" },691 { id: "eid146", tween: [ "style", "${_run}", "left", '-359px', { fromValue: '-469px'}], position: 16250, duration: 0, easing: "easeInQuad" },692 { id: "eid147", tween: [ "style", "${_run}", "left", '-278px', { fromValue: '-359px'}], position: 16500, duration: 0, easing: "easeInQuad" },693 { id: "eid148", tween: [ "style", "${_run}", "left", '-368px', { fromValue: '-278px'}], position: 16750, duration: 0, easing: "easeInQuad" },694 { id: "eid149", tween: [ "style", "${_run}", "left", '-469px', { fromValue: '-368px'}], position: 17000, duration: 0, easing: "easeInQuad" },695 { id: "eid150", tween: [ "style", "${_run}", "left", '-359px', { fromValue: '-469px'}], position: 17250, duration: 0, easing: "easeInQuad" },696 { id: "eid151", tween: [ "style", "${_run}", "left", '-278px', { fromValue: '-359px'}], position: 17500, duration: 0, easing: "easeInQuad" },697 { id: "eid152", tween: [ "style", "${_run}", "left", '-356px', { fromValue: '-278px'}], position: 17750, duration: 0, easing: "easeInQuad" },698 { id: "eid153", tween: [ "style", "${_run}", "left", '-271px', { fromValue: '-356px'}], position: 18000, duration: 0, easing: "easeInQuad" },699 { id: "eid154", tween: [ "style", "${_run}", "left", '-368px', { fromValue: '-271px'}], position: 18250, duration: 0, easing: "easeInQuad" },700 { id: "eid155", tween: [ "style", "${_run}", "left", '-469px', { fromValue: '-368px'}], position: 18500, duration: 0, easing: "easeInQuad" },701 { id: "eid156", tween: [ "style", "${_run}", "left", '-359px', { fromValue: '-469px'}], position: 18750, duration: 0, easing: "easeInQuad" },702 { id: "eid157", tween: [ "style", "${_run}", "left", '-278px', { fromValue: '-359px'}], position: 19000, duration: 0, easing: "easeInQuad" },703 { id: "eid158", tween: [ "style", "${_run}", "left", '-368px', { fromValue: '-278px'}], position: 19250, duration: 0, easing: "easeInQuad" },704 { id: "eid159", tween: [ "style", "${_run}", "left", '-469px', { fromValue: '-368px'}], position: 19500, duration: 0, easing: "easeInQuad" },705 { id: "eid160", tween: [ "style", "${_run}", "left", '-359px', { fromValue: '-469px'}], position: 19750, duration: 0, easing: "easeInQuad" },706 { id: "eid161", tween: [ "style", "${_run}", "left", '-278px', { fromValue: '-359px'}], position: 20000, duration: 0, easing: "easeInQuad" },707 { id: "eid189", tween: [ "style", "${_jump2}", "left", '0px', { fromValue: '0px'}], position: 20500, duration: 0 },708 { id: "eid174", tween: [ "style", "${_jump2}", "left", '-107px', { fromValue: '0px'}], position: 20750, duration: 0 },709 { id: "eid176", tween: [ "style", "${_jump2}", "left", '-107px', { fromValue: '-107px'}], position: 21000, duration: 0 },710 { id: "eid177", tween: [ "style", "${_jump2}", "left", '-218px', { fromValue: '-107px'}], position: 21250, duration: 0 },711 { id: "eid178", tween: [ "style", "${_jump2}", "left", '-333px', { fromValue: '-218px'}], position: 21500, duration: 0 },712 { id: "eid179", tween: [ "style", "${_jump2}", "left", '-441px', { fromValue: '-333px'}], position: 21750, duration: 0 },713 { id: "eid180", tween: [ "style", "${_jump2}", "left", '-547px', { fromValue: '-441px'}], position: 22000, duration: 0 },714 { id: "eid181", tween: [ "style", "${_jump2}", "left", '-652px', { fromValue: '-547px'}], position: 22250, duration: 0 },715 { id: "eid182", tween: [ "style", "${_jump2}", "left", '-771px', { fromValue: '-652px'}], position: 22500, duration: 0 },716 { id: "eid183", tween: [ "style", "${_jump2}", "left", '-881px', { fromValue: '-771px'}], position: 22750, duration: 0 },717 { id: "eid184", tween: [ "style", "${_jump2}", "left", '-972px', { fromValue: '-881px'}], position: 23000, duration: 0 },718 { id: "eid185", tween: [ "style", "${_jump2}", "left", '-883px', { fromValue: '-972px'}], position: 23250, duration: 0 },719 { id: "eid186", tween: [ "style", "${_jump2}", "left", '-966px', { fromValue: '-883px'}], position: 23500, duration: 0 },720 { id: "eid187", tween: [ "style", "${_jump2}", "left", '-1051px', { fromValue: '-966px'}], position: 23750, duration: 0 },721 { id: "eid188", tween: [ "style", "${_jump2}", "left", '-1050px', { fromValue: '-1051px'}], position: 24000, duration: 0 },722 { id: "eid121", tween: [ "style", "${_run}", "display", 'none', { fromValue: 'none'}], position: 0, duration: 0, easing: "easeInQuad" },723 { id: "eid122", tween: [ "style", "${_run}", "display", 'block', { fromValue: 'none'}], position: 10500, duration: 0, easing: "easeInQuad" },724 { id: "eid171", tween: [ "style", "${_run}", "display", 'none', { fromValue: 'block'}], position: 20500, duration: 0 },725 { id: "eid105", tween: [ "style", "${_wlk_2}", "opacity", '0', { fromValue: '1'}], position: 3250, duration: 2500, easing: "easeInQuad" },726 { id: "eid110", tween: [ "style", "${_wlk_2}", "opacity", '1', { fromValue: '0'}], position: 6000, duration: 0, easing: "easeInQuad" },727 { id: "eid115", tween: [ "style", "${_run}", "top", '0px', { fromValue: '0px'}], position: 10750, duration: 0, easing: "easeInQuad" },728 { id: "eid130", tween: [ "style", "${_run}", "top", '0px', { fromValue: '0px'}], position: 12250, duration: 0, easing: "easeInQuad" },729 { id: "eid134", tween: [ "style", "${_run}", "top", '0px', { fromValue: '0px'}], position: 13750, duration: 0, easing: "easeInQuad" },730 { id: "eid141", tween: [ "style", "${_run}", "top", '2px', { fromValue: '0px'}], position: 15250, duration: 0, easing: "easeInQuad" },731 { id: "eid143", tween: [ "style", "${_run}", "top", '0px', { fromValue: '2px'}], position: 15500, duration: 0, easing: "easeInQuad" },732 { id: "eid162", tween: [ "style", "${_run}", "top", '2px', { fromValue: '0px'}], position: 17750, duration: 0, easing: "easeInQuad" },733 { id: "eid163", tween: [ "style", "${_run}", "top", '0px', { fromValue: '2px'}], position: 18000, duration: 0, easing: "easeInQuad" },734 { id: "eid111", tween: [ "style", "${_wlk_2}", "display", 'none', { fromValue: 'block'}], position: 5750, duration: 0, easing: "easeInQuad" },735 { id: "eid172", tween: [ "style", "${_jump2}", "display", 'none', { fromValue: 'none'}], position: 0, duration: 0 },736 { id: "eid173", tween: [ "style", "${_jump2}", "display", 'block', { fromValue: 'none'}], position: 20500, duration: 0 } ]737 }738 }739},740"jump": {741 version: "4.0.0",742 minimumCompatibleVersion: "4.0.0",743 build: "4.0.0.359",744 baseState: "Base State",745 scaleToFit: "none",746 centerStage: "none",747 initialState: "Base State",748 gpuAccelerate: false,749 resizeInstances: false,750 content: {751 },752 states: {753 "Base State": {754 "${symbolSelector}": [755 ["style", "height", '100px'],756 ["style", "width", '100px'],757 ["style", "overflow", 'hidden']758 ]759 }760 },761 timelines: {762 "Default Timeline": {763 fromState: "Base State",764 toState: "",765 duration: 0,766 autoPlay: true,767 timeline: [768 ]769 }770 }771},772"Punch": {773 version: "4.0.0",774 minimumCompatibleVersion: "4.0.0",775 build: "4.0.0.359",776 baseState: "Base State",777 scaleToFit: "none",778 centerStage: "none",779 initialState: "Base State",780 gpuAccelerate: false,781 resizeInstances: false,782 content: {783 dom: [784 {785 id: 'punch',786 type: 'image',787 rect: ['25px', '0px', '736px', '100px', 'auto', 'auto'],788 fill: ['rgba(0,0,0,0)', 'images/punch.png', '0px', '0px']789 },790 {791 type: 'image',792 id: 'wlk_22',793 rect: ['0px', '2px', '472px', '100px', 'auto', 'auto'],794 clip: ['rect(0px 99.14306640625px 100px 0px)'],795 fill: ['rgba(0,0,0,0)', 'images/wlk_2.png', '0px', '0px']796 }797 ],798 symbolInstances: [799 ]800 },801 states: {802 "Base State": {803 "${_punch}": [804 ["style", "height", '100px'],805 ["style", "top", '0px'],806 ["style", "left", '25px'],807 ["style", "width", '736px']808 ],809 "${_wlk_22}": [810 ["style", "top", '153px'],811 ["style", "background-position", [-1.4287109375001,-151.4287109375], {valueTemplate:'@@0@@px @@1@@px'} ],812 ["style", "height", '100px'],813 ["style", "left", '0px'],814 ["style", "clip", [0,99.14306640625,100,0], {valueTemplate:'rect(@@0@@px @@1@@px @@2@@px @@3@@px)'} ],815 ["style", "width", '472px']816 ],817 "${symbolSelector}": [818 ["style", "height", '100px'],819 ["style", "width", '100px'],820 ["style", "overflow", 'hidden']821 ]822 }823 },824 timelines: {825 "Default Timeline": {826 fromState: "Base State",827 toState: "",828 duration: 2000,829 autoPlay: true,830 labels: {831 "punch": 250832 },833 timeline: [834 { id: "eid73", tween: [ "style", "${_wlk_22}", "left", '0px', { fromValue: '0px'}], position: 2000, duration: 0, easing: "easeInQuad" },835 { id: "eid64", tween: [ "style", "${_punch}", "left", '25px', { fromValue: '25px'}], position: 0, duration: 0, easing: "easeInQuad" },836 { id: "eid65", tween: [ "style", "${_punch}", "left", '-50px', { fromValue: '25px'}], position: 250, duration: 0, easing: "easeInQuad" },837 { id: "eid66", tween: [ "style", "${_punch}", "left", '-150px', { fromValue: '-50px'}], position: 500, duration: 0, easing: "easeInQuad" },838 { id: "eid67", tween: [ "style", "${_punch}", "left", '-260px', { fromValue: '-150px'}], position: 750, duration: 0, easing: "easeInQuad" },839 { id: "eid68", tween: [ "style", "${_punch}", "left", '-368px', { fromValue: '-260px'}], position: 1000, duration: 0, easing: "easeInQuad" },840 { id: "eid69", tween: [ "style", "${_punch}", "left", '-448px', { fromValue: '-368px'}], position: 1250, duration: 0, easing: "easeInQuad" },841 { id: "eid70", tween: [ "style", "${_punch}", "left", '-547px', { fromValue: '-448px'}], position: 1500, duration: 0, easing: "easeInQuad" },842 { id: "eid71", tween: [ "style", "${_punch}", "left", '-660px', { fromValue: '-547px'}], position: 1750, duration: 0, easing: "easeInQuad" },843 { id: "eid72", tween: [ "style", "${_punch}", "left", '-807px', { fromValue: '-660px'}], position: 2000, duration: 0, easing: "easeInQuad" },844 { id: "eid76", tween: [ "style", "${_wlk_22}", "background-position", [-1.4287109375001,-151.4287109375], { valueTemplate: '@@0@@px @@1@@px', fromValue: [-1.4287109375001,-151.4287109375]}], position: 2000, duration: 0, easing: "easeInQuad" },845 { id: "eid75", tween: [ "style", "${_wlk_22}", "top", '153px', { fromValue: '153px'}], position: 0, duration: 0, easing: "easeInQuad" } ]846 }847 }848}849};850Edge.registerCompositionDefn(compId, symbols, fonts, resources, opts);851/**852 * Adobe Edge DOM Ready Event Handler853 */854$(window).ready(function() {855 Edge.launchComposition(compId);856});...
TimerExample.js
Source:TimerExample.js
...180 if (this._handle) {181 // Configure things so we can do a final run to update UI and reset state.182 this._handle = null;183 this._iters = this._ii;184 this._run();185 }186 },187});188exports.framework = 'React';189exports.title = 'Timers, TimerMixin';190exports.description =191 'The TimerMixin provides timer functions for executing ' +192 'code in the future that are safely cleaned up when the component unmounts.';193exports.examples = [194 {195 title: 'this.setTimeout(fn, t)',196 description:197 'Execute function fn t milliseconds in the future. If ' +198 't === 0, it will be enqueued immediately in the next event loop. ' +...
tasks.py
Source:tasks.py
...23 ROOT_DIR.joinpath("noxfile.py"),24 Path(__file__),25]26PYTHON_TARGETS_STR = " ".join([str(p) for p in PYTHON_TARGETS])27def _run(c: Context, command: str) -> Result:28 return c.run(command, pty=platform.system() != "Windows")29@task()30def clean_build(c):31 # type: (Context) -> None32 """Clean up files from package building."""33 _run(c, "rm -fr build/")34 _run(c, "rm -fr dist/")35 _run(c, "rm -fr .eggs/")36 _run(c, "find . -name '*.egg-info' -exec rm -fr {} +")37 _run(c, "find . -name '*.egg' -exec rm -f {} +")38@task()39def clean_python(c):40 # type: (Context) -> None41 """Clean up python file artifacts."""42 _run(c, "find . -name '*.pyc' -exec rm -f {} +")43 _run(c, "find . -name '*.pyo' -exec rm -f {} +")44 _run(c, "find . -name '*~' -exec rm -f {} +")45 _run(c, "find . -name '__pycache__' -exec rm -fr {} +")46@task()47def clean_tests(c):48 # type: (Context) -> None49 """Clean up files from testing."""50 _run(c, f"rm -f {COVERAGE_FILE}")51 _run(c, f"rm -fr {COVERAGE_DIR}")52 _run(c, "rm -fr .pytest_cache")53@task()54def clean_docs(c):55 # type: (Context) -> None56 """Clean up files from documentation builds."""57 _run(c, f"rm -fr {DOCS_BUILD_DIR}")58@task(pre=[clean_build, clean_python, clean_tests, clean_docs])59def clean(c):60 # type: (Context) -> None61 """Run all clean sub-tasks."""62@task()63def install_hooks(c):64 # type: (Context) -> None65 """Install pre-commit hooks."""66 _run(c, "poetry run pre-commit install")67@task()68def hooks(c):69 # type: (Context) -> None70 """Run pre-commit hooks."""71 _run(c, "poetry run pre-commit run --all-files")72@task(name="format", help={"check": "Checks if source is formatted without applying changes"})73def format_(c, check=False):74 # type: (Context, bool) -> None75 """Format code."""76 isort_options = ["--check-only", "--diff"] if check else []77 _run(c, f"poetry run isort {' '.join(isort_options)} {PYTHON_TARGETS_STR}")78 black_options = ["--diff", "--check"] if check else ["--quiet"]79 _run(c, f"poetry run black {' '.join(black_options)} {PYTHON_TARGETS_STR}")80@task()81def flake8(c):82 # type: (Context) -> None83 """Run flake8."""84 _run(c, f"poetry run flakehell lint {PYTHON_TARGETS_STR}")85@task()86def safety(c):87 # type: (Context) -> None88 """Run safety."""89 _run(90 c,91 "poetry export --dev --format=requirements.txt --without-hashes | "92 "poetry run safety check --stdin --full-report",93 )94@task(pre=[flake8, safety, call(format_, check=True)])95def lint(c):96 # type: (Context) -> None97 """Run all linting."""98@task()99def mypy(c):100 # type: (Context) -> None101 """Run mypy."""102 _run(c, f"poetry run mypy {PYTHON_TARGETS_STR}")103@task()104def tests(c):105 # type: (Context) -> None106 """Run tests."""107 pytest_options = ["--xdoctest", "--cov", "--cov-report=", "--cov-fail-under=0"]108 _run(c, f"poetry run pytest {' '.join(pytest_options)} {TEST_DIR} {SOURCE_DIR}")109@task(110 help={111 "fmt": "Build a local report: report, html, json, annotate, html, xml.",112 "open_browser": "Open the coverage report in the web browser (requires --fmt html)",113 }114)115def coverage(c, fmt="report", open_browser=False):116 # type: (Context, str, bool) -> None117 """Create coverage report."""118 if any(Path().glob(".coverage.*")):119 _run(c, "poetry run coverage combine")120 _run(c, f"poetry run coverage {fmt} -i")121 if fmt == "html" and open_browser:122 webbrowser.open(COVERAGE_REPORT.as_uri())123@task(124 help={125 "serve": "Build the docs watching for changes",126 "open_browser": "Open the docs in the web browser",127 }128)129def docs(c, serve=False, open_browser=False):130 # type: (Context, bool, bool) -> None131 """Build documentation."""132 _run(c, f"sphinx-apidoc -o {DOCS_DIR} {SOURCE_DIR}")133 build_docs = f"sphinx-build -b html {DOCS_DIR} {DOCS_BUILD_DIR}"134 _run(c, build_docs)135 if open_browser:136 webbrowser.open(DOCS_INDEX.absolute().as_uri())137 if serve:138 _run(c, f"poetry run watchmedo shell-command -p '*.rst;*.md' -c '{build_docs}' -R -D .")139@task(140 help={141 "part": "Part of the version to be bumped.",142 "dry_run": "Don't write any files, just pretend. (default: False)",143 }144)145def version(c, part, dry_run=False):146 # type: (Context, str, bool) -> None147 """Bump version."""148 bump_options = ["--dry-run"] if dry_run else []...
Learn to execute automation testing from scratch with LambdaTest Learning Hub. Right from setting up the prerequisites to run your first automation test, to following best practices and diving deeper into advanced test scenarios. LambdaTest Learning Hubs compile a list of step-by-step guides to help you be proficient with different test automation frameworks i.e. Selenium, Cypress, TestNG etc.
You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.
Get 100 minutes of automation test minutes FREE!!