Skip to content

Instantly share code, notes, and snippets.

View gkio's full-sized avatar
🏠
Working from home

Giorgi gkio

🏠
Working from home
View GitHub Profile
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
------ 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'])){
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];
https://www.youtube.com/watch?v=VYxpZGl2NbI
#e20036
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 ();
https://javascript30.com/
var ping = require('ping');
var hosts = '104.160.142.3';
setInterval(function(){
ping.promise.probe(hosts)
.then(function (res) {
console.log(res.time);
});
},1000)
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>');
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')