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 app = angular.module('app',[]); | |
| app.run(function ($http, $q) { | |
| getExample($q) | |
| .then(function(value){ | |
| console.log(value); | |
| }); | |
| }) | |
| function getExample($q) { |
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
| using System.IO; | |
| using System.Net; | |
| using System.Text.RegularExpressions; | |
| using ClassLibraries.SiteSettings.Classes; | |
| using System; | |
| using System.Collections.Generic; | |
| using System.Globalization; | |
| using System.Linq; | |
| using System.Text; |
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
| "use strict"; | |
| const { addObserver, notifyObservers } = Cc["@mozilla.org/observer-service;1"]. | |
| getService(Ci.nsIObserverService); | |
| const { getEnumerator } = Cc["@mozilla.org/appshell/window-mediator;1"]. | |
| getService(Ci.nsIWindowMediator); | |
| const isBrowser = window => { | |
| try { | |
| return window.document.documentElement.getAttribute("windowtype") === "navigator:browser"; |
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
| using Newtonsoft.Json; | |
| using System; | |
| using System.Collections.Generic; | |
| using System.IO; | |
| using System.Linq; | |
| using System.Linq.Expressions; | |
| using System.Net; | |
| using System.Text; | |
| using System.Threading.Tasks; |
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 html5> | |
| <html lang="en"> | |
| <head> | |
| <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css"> | |
| <style type="text/css"> | |
| .main-container { | |
| } | |
| </style> |
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
| public static string GenerateSEOFriendlyUrl(string uncleanUrl) | |
| { | |
| //Trim Start and End Spaces. | |
| uncleanUrl = uncleanUrl.Trim(); | |
| //Trim "-" Hyphen | |
| uncleanUrl = uncleanUrl.Trim('-'); | |
| uncleanUrl = uncleanUrl.ToLower(); | |
| char[] chars = @"$%#@!*?;:~`+=()[]{}|\'<>,/^&"".".ToCharArray(); | |
| //Replace . with - hyphen | |
| uncleanUrl = uncleanUrl.Replace(".", "-"); |
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
| public class Notifications | |
| { | |
| public string SendNotification(GcmNotiInputModel model) | |
| { | |
| try | |
| { | |
| string GoogleAppID = Config.BrowserKey; | |
| var SENDER_ID = Config.SenderId; |
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
| public class EmailProvider : IEmailProvider | |
| { | |
| private readonly SmtpClient smtpClient = null; | |
| private readonly IEmailTemplateRepository _emailRepository; | |
| private bool disposed = false; | |
| private EmailProvider() | |
| { | |
| smtpClient = new SmtpClient(); | |
| } |
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
| public static class ListExtension | |
| { | |
| public static IEnumerable<TObject> Intersect<TObject>(this IEnumerable<TObject> source, IEnumerable<TObject> destination, Func<TObject, TObject, bool> predicate) | |
| { | |
| var result = new List<TObject>(); | |
| foreach (var sourceObject in source) | |
| { | |
| foreach (var destinationObject in destination) | |
| { | |
| if (predicate(sourceObject, destinationObject)) |
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
| public class CandidateSignatureHandler : IHttpHandler | |
| { | |
| public bool IsReusable | |
| { | |
| get { return false; } | |
| } | |
| public void ProcessRequest(HttpContext context) | |
| { | |
| ICandidateDocument _candidateDocHandler = AppDefaults.Get<ICandidateDocument>(); |