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
//ATCGCAT => TAGCGTA
// BEST
function DNAStrand(dna) {
return dna.replace(/./g, function(c) {
return DNAStrand.pairs[c]
})
}
DNAStrand.pairs = {
const path = require("path");
const merge = require("webpack-merge");
const sass = require("./webpack/sass");
const HtmlWebpackPlugin = require("html-webpack-plugin");
const HtmlWebpackPluginConfig = new HtmlWebpackPlugin({
template: "./public/index.html",
filename: "index.html",
inject: "body"
});
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)