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
| //ATCGCAT => TAGCGTA | |
| // BEST | |
| function DNAStrand(dna) { | |
| return dna.replace(/./g, function(c) { | |
| return DNAStrand.pairs[c] | |
| }) | |
| } | |
| DNAStrand.pairs = { |
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
| 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" | |
| }); |
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) |