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
https://scotch.io/bar-talk/s-o-l-i-d-the-first-five-principles-of-object-oriented-design | |
https://www.youtube.com/watch?v=TMuno5RZNeE |
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
------ OLD | |
if($errorCode = Validator::checkName($formData['name'])){ | |
$error[0]['name'] = $errorCode[0]; | |
$error[1]['name'] = $errorCode[1]; | |
} | |
if($errorCode = Validator::checkNumber($formData['phone'])){ | |
$error[0]['phone'] = $errorCode[0]; | |
$error[1]['phone'] = $errorCode[1]; | |
} | |
if($errorCode = Validator::checkEmail($formData['email'])){ |
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
if($errorCode = Validator::checkName($formData['name'])){ | |
$error[0]['name'] = $errorCode[0]; | |
$error[1]['name'] = $errorCode[1]; | |
} | |
if($errorCode = Validator::checkNumber($formData['phone'])){ | |
$error[0]['phone'] = $errorCode[0]; | |
$error[1]['phone'] = $errorCode[1]; | |
} | |
if($errorCode = Validator::checkEmail($formData['email'])){ | |
$error[0]['email'] = $errorCode[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
https://www.youtube.com/watch?v=VYxpZGl2NbI |
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
#e20036 |
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 x = Input.GetAxis ("Horizontal") * Time.deltaTime * 1.0f; | |
var y = Input.GetAxis ("Vertical") * Time.deltaTime * 5f; | |
transform.Translate (0, 0, y * this.movebackspeed); | |
transform.Rotate (0, (Input.GetKey(KeyCode.S) ? -(x * this.backrotationspeed) : x * this.rotationspeed), 0); | |
if (Input.GetButtonDown ("Fire1")) { | |
CmdFire (); |
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
https://javascript30.com/ |
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 ping = require('ping'); | |
var hosts = '104.160.142.3'; | |
setInterval(function(){ | |
ping.promise.probe(hosts) | |
.then(function (res) { | |
console.log(res.time); | |
}); | |
},1000) |
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 css = "position: fixed;width: 230px;right: 0;top: 50px;z-index: 999999999999;background: #fff;border: 1px solid #222;font-size: 15px;padding: 10px;"; | |
$('body').append('<div style="'+ css +'">'+/\"keywords\"\s*:"(.*?)"/g.exec($('#player-api').next().next()[0].innerHTML)[1]+'</div>'); |
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
casper.then(function() { | |
this.click('div.table-main table:nth-child(1) tbody tr:nth-child(1) td.team-home'); | |
this.waitForPopup(/match/, function(){ | |
console.log('popup opened') | |
}); | |
this.withPopup(/match/, function(){ | |
this.capture('popup.png') |