Instantly share code, notes, and snippets.

View Heroku.js
// ==UserScript==
// @name Heroku Autocomplete Private Space
// @version 0.1
// @match https://dashboard.heroku.com/teams/align-technologies*
// @require https://code.jquery.com/jquery-3.3.1.min.js
// @grant none
// ==/UserScript==
function rewrite() {
$(".alert-warning").hide();
View gist:a8a3ac290fae1acc02f33479caf2a896
// ==UserScript==
// @name         TamperMonkey Heroku Search/Replace Names
// @match       https://dashboard.heroku.com/*
// @grant none
// ==/UserScript==
function replaceDreamhouse() {
var replaceArry = [
[/dreamhouse/gi, 'pecten']
];
View sfdx
#!/bin/bash
case $1 in
list)
# sfdx list
/usr/local/bin/sfdx force:org:list
;;
push)
if [ "$2" == "over" ]
then
View worst-practice.html
<!doctype html>
<html>
<head>
<title>Sushi Mockup</title>
<!-- Nothing wrong with this block of styling. Collapse or keep scrolling. -->
<style type="text/css">
*
{
margin: 0;
padding: 0;
View gist:2148657
using System;
using System.Linq;
using System.Text.RegularExpressions;
namespace MvcApplication.Helpers
{
public static class ShortUrl
{
/// <summary>
/// Converts a Base-10 Integer to Base-64. This will effectively shorten the number of characters used to represent a number > 10.
View Responsive-Hello-World.html
<!DOCTYPE html>
<html>
<head>
<title>Hello World introduction to Responsive Design</title>
<style type="text/css">
body {
background-color: #eee;
}
#content {
View DisqusExport.aspx
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="test.aspx.cs" Inherits="test" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<title>Use Ctrl + A to select All, then Paste into Notepad. This is your XML export file.</title>
</head>
<body>
<form id="form1" runat="server">
View fiddle.css
body {
font: 12px verdana;
background-color: #5C87B2;
}
form {
max-width: 400px;
padding: 15px;
background-color: white;
}
View WordPressImport.ascx
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="WPimport.ascx.cs" Inherits="SitefinityWebApp.Widgets.WPimport" %>
<div>
<div style="color: red;">
<asp:Literal ID="Error" Visible="false" runat="server" />
</div>
<div>
<asp:Label AssociatedControlID="WordPressFile" runat="server">WordPress Export File: </asp:Label>
View gist:1243069
USE clickonpublish
DECLARE @OldSchema AS varchar(255)
DECLARE @NewSchema AS varchar(255)
SET @OldSchema = 'dbo'
SET @NewSchema = 'clickonpublish'
DECLARE @sql AS varchar(MAX)