Skip to content

Instantly share code, notes, and snippets.

View dandiebolt's full-sized avatar

moⲆan the ultimate dandiebolt

View GitHub Profile
// module "my-module.js"
function cube(x) {
return x * x * x;
}
const foo = Math.PI + Math.SQRT2;
var graph = {
options: {
color:'white',
thickness:'2px'
},
<html>
<head><script></script></head>
<body>Hi</body>
</html>
<h1>hello</h1>
(function(){
var querystring=document.location.search;
if(/a=er/i.test(querystring) || /nwr/i.test(querystring)) {
data = [{
name: "smile",
image: "https://djyqr7fxk5rha.cloudfront.net/smile.png"
}, {
name: "relieved",
(function(){
var querystring=document.location.search;
if(/a=er/i.test(querystring) || /nwr/i.test(querystring)) {
$("#_fid_7").on("blur", function() {
var oldValue = this.value;
var newValue = oldValue
.replace(/(\d{2})(\d{2})/g, function($0, $1, $2) {
var hours = parseInt($1, 10);
$(_fid_6).on("blur", function() {
this.value = this.value
.replace(/\u2018|\u2019|\u201A|\uFFFD/g, "'")
.replace(/\u201c|\u201d|\u201e/g, '"');
});
// ==UserScript==
// @name FixCurlyQuotes
// @namespace http://your.homepage/
// @version 0.1
// @description enter something useful
// @author You
// @match https://*.quickbase.com/db/*
// @grant none
// ==/UserScript==
<!doctype html>
<html>
<head>
<script src="https://haversineconsulting.quickbase.com/db/bf3zb9bph?a=dbpage&pagename=d3.v3.min.js"></script>
<script src="https://haversineconsulting.quickbase.com/db/bf3zb9bph?a=dbpage&pagename=dagre-d3.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/underscore.js/1.8.3/underscore-min.js"></script>
(function(){
var querystring=document.location.search;
if(/a=er/i.test(querystring) || /nwr/i.test(querystring)) {
$(_fid_7).attr({
placeholder: "##-####(#)-####",
pattern: "[0-9]{2}-[0-9]{4,5}-[0-9]{4}"
});
<h1>Hello World</h1>