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
<cfscript> | |
wsUrl = "https://www.someurl.co.uk/RegService.asmx"; | |
ws = CreateObject("webservice", wsUrl ); | |
</cfscript> |
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
<cfscript> | |
wsUrl = "https://www.someurl.co.uk/RegService.asmx?wsdl"; | |
ws = CreateObject("webservice", wsUrl ); | |
</cfscript> |
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
<!--- 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'" /> |
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
<!-- 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> |
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
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 */ | |
}, ... ]); |
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
# 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 |
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
console.log(process.env.NODE_ENV); |
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
<html> | |
<head> | |
<link href="//netdna.bootstrapcdn.com/bootswatch/3.0.0/flatly/bootstrap.min.css" rel="stylesheet"> | |
<link href="http://netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap-glyphicons.css" rel="stylesheet"> | |
</head> | |
<body> | |
<span class="alert alert-danger">Glyphicon example</span> | |
<hr> | |
<div class="the-icons"> | |
<span class="glyphicon glyphicon-glass"></span> |
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
<html> | |
<head> | |
<meta charset="utf-8" /> | |
<meta name="format-detection" content="telephone=no" /> | |
<meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width, height=device-height, target-densitydpi=device-dpi" /> | |
<link rel="stylesheet" type="text/css" href="css/index.css" /> | |
<title>Hello World</title> | |
<script src="http://debug.phonegap.com/target/target-script-min.js#8A4EA003-A0B5-4683-BDD8-BF4CB521DAEA"></script> | |
</head> | |
<body> |
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
-- This was tested on Ghost v0.3.0 | |
-- I have 2 databases set up which I reference in my SQL - you need to change accordingly | |
-- 1: ajdev (this holds my BlogCFC data) | |
-- 2: ghost-dev (this holds my Ghost blog data) | |
-- | |
-- 1) Check for duplicate alias's | |
-- I don't know how I got these but I did, so clean your entries up first but looking | |
-- for duplicates and changing the `alias` value to something unique. | |
SELECT lower(`alias`) , count(lower(`alias`) ) |