Skip to content

Instantly share code, notes, and snippets.

/*
Converts A class to a dictionary, used for serializing dictionaries to JSON
Supported objects:
- Serializable derived classes
- Arrays of Serializable
- NSData
- String, Numeric, and all other NSJSONSerialization supported objects
@wickdninja
wickdninja / gist:2d4a00d3c534c63c182b
Created February 27, 2015 06:01
GeoLocation Service
(function() {
'use strict';
angular
.module('geoDemo', [])
.factory('geoService', geoService);
geoService.$inject = ['$rootScope', '$window', '$log'];
function geoService($rootScope, $window, $log) {
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Testing IE Compatibility Mode</title>
<script src="ieUserAgent.js" type="text/javascript"></script>
</head>
<body>
<div id="results">Results:</div>
<script type="text/javascript">
var val = "IE" + ieUserAgent.version;