This file contains 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
#!/bin/bash | |
# This will be a little script to pull price data from Yahoo finance in order to run a trading stategy on it. | |
# this function will be called to collect all needed input variabels | |
function SetVars(){ | |
echo ticker? | |
read ticker | |
echo "timeframe (d/w/m)?" # yahoo provide daily, weekly and monthly ohlc prices | |
read timeframe |
This file contains 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> | |
ServerAdmin webmaster@localhost | |
ServerName davetromp | |
DocumentRoot /home/davetromp/Lamp | |
<Directory /> | |
Options FollowSymLinks | |
AllowOverride All | |
Allow from all | |
</Directory> |
This file contains 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 | |
session_start(); | |
if ($_SESSION['login'] == '1'){ | |
echo 'U bent ingelogd'; | |
} | |
if (!isset($_SESSION['login']) || $_SESSION['login'] == '0') { //als er nog geen sessie is of hij is aan 0 / uitgelogd | |
if ($_POST['submit']=='Login'){ | |
$query = "SELECT * FROM `users` WHERE `user` = '{$_POST['loginUser']}'"; |
NewerOlder