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
/* | |
This is a Perceptron implemented in the Javascript Langage, | |
For the purpose of this projects every x values of our datasets will be initialized with a | |
data value of *random. Feel free to implement the way weight is initialized :) | |
Epochs is set by default to 1000 and learning rate at .1. | |
// To use the Perceptron inside of your projects |
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://yarnpkg.com/lang/en/docs/cli/global/ | |
$ yarn global add create-react-app --prefix /usr/local | |
# the `create-react-app` command is now available globally: | |
$ which create-react-app | |
$ /usr/local/bin/create-react-app | |
$ create-react-app |
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
npm i npm@4 -g to use npm 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
Another way without changing the original php file / link is if you edit your .bashrc file as follows (works with other commands as well): | |
Open your Terminal / Commandline and type in: | |
vim ~/.bashrc | |
Then press "i" to get into edit-mode (if there shows up a problem before that, because of a swap file, then press "E" to edit the file anyway) | |
Add the following line (change the path as needed): | |
alias php="/Applications/MAMP/bin/php/php5.4.10/bin/php" | |
Press "ESC" and type in ":wq" |
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
ini_set('display_errors', 1); | |
ini_set('display_startup_errors', 1); | |
error_reporting(E_ALL); |
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
g++ main.cpp | |
otool -tvV a.out |
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
Copy the file "foobar.txt" from a remote host to the local host | |
$ scp [email protected]:foobar.txt /some/local/directory | |
Copy the file "foobar.txt" from the local host to a remote host | |
$ scp foobar.txt [email protected]:/some/remote/directory | |
Copy the directory "foo" from the local host to a remote host's directory "bar" | |
$ scp -r foo [email protected]:/some/remote/directory/bar | |
Copy the file "foobar.txt" from remote host "rh1.edu" to remote host "rh2.edu" | |
$ scp [email protected]:/some/remote/directory/foobar.txt \ | |
[email protected]:/some/remote/directory/ | |
Copying the files "foo.txt" and "bar.txt" from the local host to your home directory on the remote host |
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
<?php | |
$servername = "127.0.0.1"; | |
$username = "root"; | |
$password = ""; | |
// Create connection | |
$conn = new mysqli($servername, $username, $password); | |
// Check connection |
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 pi = Math.PI; | |
var lim = 200; | |
counter = 0; | |
for (i = 0; i++) { | |
if (sin(i*pi/lim) >= 0 ) { | |
counter ++ | |
} else { | |
counter -- | |
} | |
} |
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 mapimg; | |
var clat = 0; | |
var clon = 0; | |
var lat = 31.2674; | |
var lon = 121.5221; | |
var zoomLevel = 1; | |
OlderNewer