$ git clone https://github.com/andyj/blogcfc2html.git
$ cd blogcfc2html
$ npm install
Once set up you need to edit the MySQL and outPath settings in the config.js file
console.log(process.env.NODE_ENV); |
# create the ~/.bash_profile | |
touch ~/.bash_profile | |
# Set the environment variable | |
echo export NODE_ENV=production >> ~/.bash_profile | |
# The source command makes the NODE_ENV variable available in your current shell | |
source ~/.bash_profile | |
# Check it works |
yepnope([{ | |
test : /* boolean(ish) - Something truthy that you want to test */, | |
yep : /* array (of strings) | string - The things to load if test is true */, | |
nope : /* array (of strings) | string - The things to load if test is false */, | |
both : /* array (of strings) | string - Load everytime (sugar) */, | |
load : /* array (of strings) | string - Load everytime (sugar) */, | |
callback : /* function ( testResult, key ) | object { key : fn } */, | |
complete : /* function */ | |
}, ... ]); |
<!-- Try and load your CDN jQuery file--> | |
<script src="http://code.jquery.com/jquery-1.10.2.min.js"></script> | |
<!-- Check for jQuery to be load, if not load in local copy --> | |
<script> | |
// n.b. \x3C is hexadecimal for <. You put this in their so the browser does not stop parsing the block of code | |
window.jQuery || document.write('<script src="/assets/js/jquery-1.10.2.min.js">\x3C/script>') | |
</script> |
<!--- A P3P policy to make IE handle session variables within an iFrame ---> | |
<cfheader name="P3P" value="CP='NOI DSP NID TAIo PSAa OUR IND UNI OTC TST'" /> |
<cfscript> | |
wsUrl = "https://www.someurl.co.uk/RegService.asmx?wsdl"; | |
ws = CreateObject("webservice", wsUrl ); | |
</cfscript> |
<cfscript> | |
wsUrl = "https://www.someurl.co.uk/RegService.asmx"; | |
ws = CreateObject("webservice", wsUrl ); | |
</cfscript> |
// add the class "disabled" to the form | |
$("form.disabled").find("input:not(:disabled), select:not(:disabled), textarea:not(:disabled)").prop("disabled",true); |
$ mkdir expressWithLess && cd expressWithLess | |
$ express --css less-middleware && npm install | |
$ mv public/stylesheets/ public/styles | |
$ nano public/styles/style.less | |
@color: #00B7FF; | |
body { padding: 200px; font: 18px "Lucida Grande", Helvetica, Arial, sans-serif; } |