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
.card, .list-inset { | |
overflow: hidden; | |
margin: 20px 10px; | |
border-radius: 2px; | |
background-color: #fff; } | |
.card { | |
padding-top: 1px; | |
padding-bottom: 1px; | |
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3); } |
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 rect; | |
var map; | |
var info; | |
var bounds = {}; | |
var showNewRect = function(e) { | |
// var nw = rect.getBounds().getNorthWest(); | |
var ne = rect.getBounds().getNorthEast(); | |
var sw = rect.getBounds().getSouthWest(); |
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
angular.module('keychain.services.pn', []) | |
.factory('PN', function($rootScope, $q, PubNub, User) { | |
return { | |
publish: function(channel, body) { | |
console.log('Publishing to', channel); | |
var dfd = $q.defer(); |
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 safeApply = function (fn) { | |
var phase = $rootScope.$root.$$phase; | |
if (phase === '$apply' || phase === '$digest') { | |
if (fn && typeof fn === 'function') { | |
fn(); | |
} | |
} else { | |
$rootScope.$apply(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
## | |
# Host Database | |
# | |
# localhost is used to configure the loopback interface | |
# when the system is booting. Do not change this entry. | |
## | |
127.0.0.1 localhost | |
127.0.0.1 localhost.com | |
127.0.0.1 api.localhost |
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
[user] | |
name = Mehul Patel | |
email = [email protected] | |
[color] | |
ui = true | |
[alias] | |
co = checkout | |
ci = commit | |
st = status | |
br = branch |
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
sudo ln -s "/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl" /usr/bin/subl |
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
angular.module('currencyMask', []) | |
.directive('currencyMask', function () { | |
return { | |
restrict: 'A', | |
require: 'ngModel', | |
link: function (scope, element, attrs, ngModelController) { | |
// Run formatting on keyup | |
var numberWithCommas = function(value, addExtraZero) { |