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
server { | |
listen 8000; | |
server_name mysite.local; | |
root /Users/mario/Code/mysite; | |
location ~ \.php(/|$) { | |
include fastcgi_params; | |
fastcgi_pass unix:/Users/mario/.phpbrew/php/php-5.6.31/var/run/php-fpm.sock; | |
fastcgi_split_path_info ^(.+\.php)(/.*)$; |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Document</title> | |
<link rel="stylesheet" href="https://cdn.wowfi.com/assets/video-js/video-js.css"> | |
</head> | |
<body> | |
<video id="my-video" class="video-js" controls preload="auto" data-setup="{}"> | |
<source src="http://cdn.wowfi.com/copy/video.mp4" type='video/mp4'> |
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
from MySQLdb import connect | |
conn = connect(db="test", user="root", passwd="root", host="127.0.0.1") | |
cursor = conn.cursor() | |
cursor.execute("SELECT * FROM users") | |
for user in cursor: | |
print("Id: {}, Name: {}".format(user[0], user[1])) |