This file contains hidden or 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 counter = 0; | |
| function* fun(action) { | |
| while (true) { | |
| if (counter == 10) { | |
| return; | |
| } | |
| var r = yield new Promise((resolve, reject) => { | |
| resolve(counter++) | |
| }) | |
| console.log('counter:', r); |
This file contains hidden or 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 input = "1+2*3*(4+5)"; | |
| input = input.split(''); | |
| var result; | |
| var token; | |
| function eval(){ | |
| get_token(); | |
| result = exp(); | |
| if(token ==null){ | |
| console.log('Result:',result); | |
| }else{ |
This file contains hidden or 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 lang="en" ng-app="app"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <title>Title</title> | |
| </head> | |
| <body> | |
| <h1>Hello World</h1> | |
| <script> | |
| var apiList = ['./a.json','./b.json','./c.json','./d.json']; |
This file contains hidden or 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 lang="en" ng-app="app"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <title>Title</title> | |
| </head> | |
| <body> | |
| <h1>Hello World</h1> | |
| <script> | |
| var apiList = ['./a.json','./b.json','./c.json','./d.json']; |
This file contains hidden or 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 lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <title>Title</title> | |
| <link rel="stylesheet" href="style.css"> | |
| </head> | |
| <body> | |
| <div class="box one"> | |
| <span class="item"></span> |
This file contains hidden or 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 lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <title>Title</title> | |
| <link rel="stylesheet" href="bootstrap/dist/css/bootstrap.css"> | |
| <script src="jquery/dist/jquery.js"></script> | |
| <script src="bootstrap/dist/js/bootstrap.js"></script> | |
| <script src="angular/angular.js"></script> | |
| <script src="angular-sanitize/angular-sanitize.js"></script> |
This file contains hidden or 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 lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <title>Title</title> | |
| <link rel="stylesheet" href="bootstrap/dist/css/bootstrap.css"> | |
| <script src="jquery/dist/jquery.js"></script> | |
| <script src="bootstrap/dist/js/bootstrap.js"></script> | |
| <script src="angular/angular.js"></script> | |
| <script src="angular-sanitize/angular-sanitize.js"></script> |
This file contains hidden or 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 lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <title>Title</title> | |
| <link rel="stylesheet" href="bootstrap/dist/css/bootstrap.css"> | |
| <script src="jquery/dist/jquery.js"></script> | |
| <script src="bootstrap/dist/js/bootstrap.js"></script> | |
| <script src="angular/angular.js"></script> | |
| </head> |
This file contains hidden or 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 lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1"> | |
| <title>Title</title> | |
| <link rel="stylesheet" href="bootstrap/dist/css/bootstrap.css"> | |
| <script src="jquery/dist/jquery.js"></script> | |
| <script src="bootstrap/dist/js/bootstrap.js"></script> |
This file contains hidden or 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 lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <title>Title</title> | |
| <link rel="stylesheet" href="bower_components/bootstrap/dist/css/bootstrap.css"> | |
| <!-- | |
| <script src="bower_components/vue/dist/vue.js"></script> | |
| --> | |
| <script src="//cdn.bootcss.com/vue/1.0.18/vue.js"></script> |