... should work on Yosemite as well. Add a comment here if you find any problems.
- You want to run guard
- You want use Sublime plugins (like RSpec or Guard plugins)
| <!doctype> | |
| <html> | |
| <head> | |
| <title>hi</title> | |
| <style> | |
| body, html { | |
| background: #aaa; | |
| font-family: monospace; |
| <script src="//embed.flowplayer.org/5.5.2/embed.min.js"> | |
| <div class="flowplayer" style="width: 624px; height: 400px;"> | |
| <video> | |
| <source type="video/mp4" src="/data/mp4.mp4"> | |
| </video> | |
| </div> | |
| </script> |
| File Permissions | |
| 1 2 3 | |
| - --- --- --- | |
| d rwx rwx rwx | |
| r: Read | |
| w: Write | |
| x: Execute (execute file as a program, or execute directory meaning see contents of directory) | |
| class FilesController < ApplicationController | |
| def index | |
| end | |
| def upload | |
| upload = params[:babyfile] | |
| name = upload.original_filename | |
| directory = "public/data" | |
| # create the file path |
| <html> | |
| <head> | |
| <style> | |
| body { background: #358; color: #fff; padding: 50px; font-family: sans-serif; } | |
| a { color: #fff; font-size: 40px; } | |
| section { | |
| width: 800px; | |
| margin: 0px auto; | |
| } |
| <html> | |
| <head> | |
| <style> | |
| body { background: #358; color: #fff; padding: 50px; font-family: sans-serif; } | |
| </style> | |
| </head> | |
| <body> | |
| <script> |
| Hate mail website | |
| ===================== | |
| GET / -> all hate mails (10 per page) | |
| # pagination, two options... | |
| GET /?page=:page_num -> get particular page | |
| GET /page/:page_num/ -> get particular page |
| // Use Gists to store code you would like to remember later on | |
| console.log(window); // log the "window" object to the console |