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
sudo npm i -g npm-check-updates // utility for updating npm packages | |
sudo npm i -g npm // updating npm | |
ncu -u // check all updates | |
sudo npm install --unsafe-perm=true --allow-root // npm i | |
sudo npm audit fix // npm vulnerable fixes |
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
{ | |
"name": "webpack-sass", | |
"version": "1.0.0", | |
"scripts": { | |
"start": "webpack-dev-server --open --mode development", | |
"build": "webpack -p" | |
}, | |
"devDependencies": { | |
"babel-core": "^6.26.0", | |
"babel-loader": "^7.1.4", |
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
<VirtualHost *:80> | |
DocumentRoot "/Applications/XAMPP/xamppfiles/htdocs/" | |
ServerName localhost | |
<Directory "/Applications/XAMPP/xamppfiles/htdocs/"> | |
Options Indexes FollowSymLinks Includes execCGI | |
AllowOverride All | |
Require all granted | |
</Directory> | |
</VirtualHost> |
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
using UnityEngine; | |
using System.Collections; | |
public class Cannon : MonoBehaviour { | |
public Rigidbody bulletBlueprint; // assign in inspector | |
public Transform bulletOrigin; //position an object to use its position as a spawn point | |
public float bulletForce = 3000f; //this is the bullet speed. 3000 is the default | |
bool rotateToClick = false; |
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
document.getElementsByTagName('button')[0].onclick = function () { | |
scrollTo(document.body, 0, 1250); | |
} | |
function scrollTo(element, to, duration) { | |
var start = element.scrollTop, | |
change = to - start, | |
currentTime = 0, | |
increment = 20; | |