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
| // LIVE EXAMPLE: https://jsfiddle.net/ytr1kh3z/128/ | |
| const queueLimit = 5; | |
| const debug = true; | |
| const verbose = false; | |
| // processes operating asynchronously | |
| var x = 0; | |
| // number of total processes | |
| var counter = 0; |
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
| /************************************************* | |
| * Public Constants | |
| *************************************************/ | |
| #define NOTE_B0 31 | |
| #define NOTE_C1 33 | |
| #define NOTE_CS1 35 | |
| #define NOTE_D1 37 | |
| #define NOTE_DS1 39 | |
| #define NOTE_E1 41 |
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
| #!/bin/bash | |
| # | |
| # #automysqlcheck.sh | |
| # | |
| # This is a small bash script that checks all mysql databases for errors | |
| # and mails a log file to a specified email address. All variables are | |
| # hardcoded for ease of use with cron. Any databases you wish not to check | |
| # should be added to the DBEXCLUDE list, with a space in between each name. | |
| # | |
| # original version by sbray@csc.uvic.ca, UVic Fine Arts 2004 |
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
| INSERT INTO admin_user SELECT | |
| NULL `user_id`, | |
| "Dung" `firstname`, | |
| "Pham" `lastname`, | |
| "dungpt@sutunam.com" `email`, | |
| "dungpt.sutunam" `username`, | |
| "9684dfd577831f73890e88fe18ca9072:Hs" `password`, | |
| NOW() `created`, | |
| NULL `modified`, | |
| NULL `logdate`, |
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
| // 1st, 2nd and 3rd rounds | |
| loop { | |
| var flag = this.findFlag(); | |
| var enemies = this.findEnemies(); | |
| var enemy = false; | |
| var enemiesClose = 0; | |
| var enemyIdx = 0; | |
| // counting enemies close to use cleave when it's really needed |
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
| <?php | |
| /** | |
| * Magento | |
| * | |
| * NOTICE OF LICENSE | |
| * | |
| * This source file is subject to the Open Software License (OSL 3.0) | |
| * that is bundled with this package in the file LICENSE.txt. | |
| * It is also available through the world-wide-web at this URL: | |
| * http://opensource.org/licenses/osl-3.0.php |
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
| <?php | |
| /** | |
| * Provides counter cache behavior for HABTM records. | |
| * | |
| * Example: Posts habtm Tags and tags table contains post_count field | |
| * | |
| * class Post extends AppModel { | |
| * var $name = 'Post'; | |
| * var $actsAs = array('HabtmCounterCache'); | |
| * var $hasAndBelongsToMany = array('Tag'); |