This file contains 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
var re = /\/..\//gi; | |
var url = document.location.href; | |
var pDelim = (url.split('?').length>1) ? '&' : '?'; | |
url = url.replace(re, '/').split('/mobile/').join('/mobile/dk/') + pDelim + 'currencyCode=DKK'; | |
document.location.replace(url); |
This file contains 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
var re = /\/..\//gi; | |
var url = document.location.href; | |
var pDelim = (url.split('?').length>1) ? '&' : '?'; | |
url = url.replace(re, '/').split('/mobile/').join('/mobile/se/') + pDelim + 'currencyCode=SEK'; | |
document.location.replace(url); |
This file contains 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
var re = /\/..\//gi; | |
var url = document.location.href; | |
var pDelim = (url.split('?').length>1) ? '&' : '?'; | |
url = url.replace(re, '/').split('/mobile/').join('/mobile/no/') + pDelim + 'currencyCode=NOK'; | |
document.location.replace(url); |
This file contains 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
var re = /\/..\//gi; | |
var url = document.location.href; | |
var pDelim = (url.split('?').length>1) ? '&' : '?'; | |
url = url.replace(re, '/').split('/mobile/').join('/mobile/au/') + pDelim + 'currencyCode=AUD'; | |
document.location.replace(url); |
This file contains 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
var util = (function(){ | |
var id, | |
_target, | |
content, | |
css, | |
style, | |
format, | |
container, | |
html, | |
insert, |
This file contains 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
var util = (function( getElementById, | |
createElement, | |
argumentsToArray, | |
innerHTML, | |
style, | |
inside, | |
after, | |
undefined ){ | |
var cache = function( key, value ){ | |
var rtn, func = arguments.callee; |
This file contains 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
(function(){ | |
var util = (function(){ | |
var Queue = function Queue(){ | |
var methods = [], | |
flushed = false, | |
add = function( fn ){ | |
if( flushed ) { | |
fn( response ); | |
} else { | |
methods.push( fn ); |
This file contains 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
img { margin: 4px; } |
This file contains 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
var http = require('http'), | |
querystring = require('querystring'), | |
url = require( "url" ), | |
path = require( "path" ), | |
fs = require( "fs" ); | |
module.exports = http.createServer(function (req, res) { | |
var code = 404, | |
uri = url.parse( req.url ).pathname, | |
filename = path.join(process.cwd(), uri), |
This file contains 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
IP_ADDRESS=`ifconfig en0 | grep inet | grep -v inet6 | awk '{print $2}'` | |
echo $IP_ADDRESS |