Instantly share code, notes, and snippets.

View Heroku.js
// ==UserScript==
// @name Heroku Autocomplete Private Space
// @version 0.1
// @match*
// @require
// @grant none
// ==/UserScript==
function rewrite() {
View gist:a8a3ac290fae1acc02f33479caf2a896
// ==UserScript==
// @name         TamperMonkey Heroku Search/Replace Names
// @match*
// @grant none
// ==/UserScript==
function replaceDreamhouse() {
var replaceArry = [
[/dreamhouse/gi, 'pecten']
View sfdx
case $1 in
# sfdx list
/usr/local/bin/sfdx force:org:list
if [ "$2" == "over" ]
View worst-practice.html
<!doctype html>
<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>
<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" "">
<html xmlns="">
<head id="Head1" runat="server">
<title>Use Ctrl + A to select All, then Paste into Notepad. This is your XML export file.</title>
<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 style="color: red;">
<asp:Literal ID="Error" Visible="false" runat="server" />
<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)