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 apiKey = ''; | |
| var monitorUrl = ''; | |
| var originUrl = ''; | |
| function monitor() { | |
| // CRUX | |
| var allCrux = callCrux(null, originUrl); | |
| var desktopCrux = callCrux('DESKTOP', originUrl); | |
| var mobileCrux = callCrux('MOBILE', originUrl); |
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 OAuthCreds = { | |
| "type": "service_account", | |
| //... | |
| }; | |
| var SendEmailTo = ''; | |
| var MonitorImageUrl = ''; | |
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 downloadFrame() { | |
| var timestamp = Date.now().toString(); | |
| var url = 'https://nexusapi.dropcam.com/get_image?uuid=12345&height=1280&cb=' + timestamp; | |
| var response = UrlFetchApp.fetch(url); | |
| var blob = response.getBlob(); | |
| blob.setName(timestamp + '.jpg'); | |
| var folders = DriveApp.getFoldersByName('DCFrames'); | |
| while (folders.hasNext()) { |
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 void CrushAllImages() | |
| { | |
| try | |
| { | |
| string appDataRoot = HostingEnvironment.MapPath("~/App_Data"); | |
| if (appDataRoot == null) | |
| { | |
| return; | |
| } |
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 ActionResult InlineCss() | |
| { | |
| BundleContext context = new BundleContext( | |
| new HttpContextWrapper(System.Web.HttpContext.Current), | |
| BundleTable.Bundles, | |
| "~/Content/css"); | |
| Bundle cssBundle = BundleTable.Bundles.GetBundleFor("~/Content/css"); | |
| BundleResponse response = cssBundle.GenerateBundleResponse(context); | |
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; | |
| using System.Diagnostics; | |
| using System.IO; | |
| using System.Net; | |
| using System.Net.Sockets; | |
| using System.Text; | |
| using System.Threading; | |
| namespace fingerd | |
| { |
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; | |
| using System.Collections.Generic; | |
| using System.Globalization; | |
| using System.Net; | |
| using System.Text; | |
| using System.Web; | |
| using System.Web.Caching; | |
| using Newtonsoft.Json.Linq; | |
| // ReSharper disable CheckNamespace |
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
| <%@ Control Language="C#" AutoEventWireup="true" CodeFile="FacebookComments.ascx.cs" | |
| Inherits="LocalControls_FacebookComments" %> |
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
| <fb:comments href="..." width="630" num_posts="10"> | |
| *Include SEO comment list here* | |
| </fb:comments> |
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
| if (string.IsNullOrWhiteSpace(post.Slug)) | |
| { | |
| post.Slug = Post.GetUniqueSlug(post.Title, post.Id); | |
| } |