<Additional information about your API call. Try to use verbs that match both request type (fetching vs modifying) and plurality (one vs multiple).>
-
URL
<The URL Structure (path only, no root url)>
-
Method:
Open Terminal move to your home folder:
cd ~
Enable git colors:
git config --global color.ui true
Make a file called ".colors":
touch .colors
Open .colors and paste the following:
var myModule = angular.module('myModule', []); | |
myModule.factory('googleAnalytics', ['$window', function($window) { | |
// Initialize GA Tracker | |
(function (i, s, o, g, r, a, m) { | |
i['GoogleAnalyticsObject'] = r; | |
i[r] = i[r] || function () { | |
(i[r].q = i[r].q || []).push(arguments) | |
}, i[r].l = 1 * new Date(); | |
a = s.createElement(o), | |
m = s.getElementsByTagName(o)[0]; |
ko.dirtyFlag = function(root, isInitiallyDirty) { | |
var result = function() {}, | |
_initialState = ko.observable(ko.toJSON(root)), | |
_isInitiallyDirty = ko.observable(isInitiallyDirty), | |
_initialized = ko.observable(false); | |
result.isDirty = ko.computed(function() { | |
return _initialized() && (_isInitiallyDirty() || _initialState() !== ko.toJSON(root)); | |
}); |
// tooltip binding | |
// usage: data-bind="tooltip: { title: 'My tooltip text', trigger: 'hover click', placement: 'right'}" | |
ko.bindingHandlers.tooltip = { | |
init: function (element, valueAccessor) { | |
var options = ko.utils.unwrapObservable(valueAccessor()); | |
$(element).tooltip(options); | |
}, | |
}; |
ko.bindingHandlers.overlayMessage = { | |
init: function(element, valueAccessor) { | |
}, | |
update: function(element, valueAccessor) { | |
var value = ko.utils.unwrapObservable(valueAccessor()); | |
if (value !== '') { | |
var overlayStyles = { | |
height: $(element).outerHeight(), | |
width: $(element).outerWidth(), |
var httpVerbs = { | |
POST: 'POST', | |
PUT: 'PUT', | |
PATCH: 'PATCH', | |
GET: 'GET', | |
DEL: 'DELETE' | |
}; | |
var constants = { | |
// Should be your application specific key for Azure |
<!-- | |
Import the Facebook API javascript. FB examples load this dynamically through jquery, but this avoids | |
any ajax caching issues. | |
--> | |
<script type="text/javascript" src="http://connect.facebook.net/en_US/all.js"></script> |
public interface IStringSerializer | |
{ | |
T Deserialize<T>(string item); | |
string Serialize(object item); | |
} |
CREATE FUNCTION [dbo].[DelimStringToIntTable](@input AS VARCHAR(MAX)) | |
RETURNS | |
@Result TABLE(ID BIGINT) | |
AS | |
BEGIN | |
DECLARE @str VARCHAR(20) | |
DECLARE @ind Int | |
IF(@input is not null) | |
BEGIN |