Skip to content

Instantly share code, notes, and snippets.

View abfo's full-sized avatar
☁️
Working on an LLM experiment called https://shopstories.us/

Robert Ellison abfo

☁️
Working on an LLM experiment called https://shopstories.us/
View GitHub Profile
var pageSpeedApiKey = '';
var pageSpeedMonitorUrl = '';
function monitor() {
var desktop = callPageSpeed('desktop', pageSpeedMonitorUrl);
var mobile = callPageSpeed('mobile', pageSpeedMonitorUrl);
var desktopVitals = getVitals(desktop);
var mobileVitals = getVitals(mobile);
var OAuthCreds = {
"type": "service_account",
//...
};
var SendEmailTo = '';
var MonitorImageUrl = '';
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()) {
public static void CrushAllImages()
{
try
{
string appDataRoot = HostingEnvironment.MapPath("~/App_Data");
if (appDataRoot == null)
{
return;
}
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);
using System;
using System.Diagnostics;
using System.IO;
using System.Net;
using System.Net.Sockets;
using System.Text;
using System.Threading;
namespace fingerd
{
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
<%@ Control Language="C#" AutoEventWireup="true" CodeFile="FacebookComments.ascx.cs"
Inherits="LocalControls_FacebookComments" %>
<fb:comments href="..." width="630" num_posts="10">
*Include SEO comment list here*
</fb:comments>
if (string.IsNullOrWhiteSpace(post.Slug))
{
post.Slug = Post.GetUniqueSlug(post.Title, post.Id);
}