Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000
<div align="center"> | |
<br> | |
<!--[if mso]> | |
<v:rect xmlns:v="urn:schemas-microsoft-com:vml" xmlns:w="urn:schemas-microsoft-com:office:word" href="#" style="color:#ffffff;height:40px;v-text-anchor:middle;width:200px;" stroke="f" fillcolor="#27aae1"> | |
<w:anchorlock/> | |
<center> | |
<![endif]--> | |
<a href="#" | |
style="background-color:#27aae1; color:#FFFFFF;color:#FFFFFF !important;display:inline-block;font-family: Tahoma, Verdana, Segoe, sans-serif; font-size:13px;font-weight:normal;line-height:40px;text-align:center;text-decoration:none;text-transform:uppercase; width:200px;-webkit-text-size-adjust:none;">{{Study Registration}}</a> | |
<!--[if mso]> |
1. Purchase domain (hover.com) | |
2. Heroku app for website | |
* copy existing site | |
* Make git repo run | |
$ git init . | |
$ git add . | |
$ git commit -a -m "intial commit" | |
* $ heroku apps:create DOMAIN (https://devcenter.heroku.com/articles/creating-apps) | |
* $ git push heroku master | |
* $ heroku domains:add www.DOMAIN.com |
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000
Lots of people have asked, so here are a few common tasks you might do in your templates, as they would be written in ExpressionEngine vs. Craft.
From the Template directory
browser-sync start --proxy "tcs.craft.dev" --directory
Reference - Docs
@mixin clearfix-micro() { | |
& { | |
*zoom: 1; | |
} | |
&:before, | |
&:after { | |
content: ""; | |
display: table; | |
} | |
&:after { |
<?php | |
# Fill our vars and run on cli | |
# $ php -f db-connect-test.php | |
$dbname = 'name'; | |
$dbuser = 'user'; | |
$dbpass = 'pass'; | |
$dbhost = 'host'; | |
$connect = mysql_connect($dbhost, $dbuser, $dbpass) or die("Unable to Connect to '$dbhost'"); |