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
| <!doctype html> | |
| <html ng-app="Demo" ng-controller="AppController"> | |
| <head> | |
| <meta charset="utf-8" /> | |
| <title>Creating A Custom "Show" Directive In AngularJS</title> | |
| <style type="text/css"> | |
| ul { |
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
| IP_ADDRESS=`ifconfig en0 | grep inet | grep -v inet6 | awk '{print $2}'` | |
| echo $IP_ADDRESS |
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
| 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 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
| img { margin: 4px; } |
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
| (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 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
| var util = (function( getElementById, | |
| createElement, | |
| argumentsToArray, | |
| innerHTML, | |
| style, | |
| inside, | |
| after, | |
| undefined ){ | |
| var cache = function( key, value ){ | |
| var rtn, func = arguments.callee; |
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
| var util = (function(){ | |
| var id, | |
| _target, | |
| content, | |
| css, | |
| style, | |
| format, | |
| container, | |
| html, | |
| insert, |
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
| 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 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
| 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 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
| 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); |