I use http://mrcoles.com/bookmarklet/ to create my bookmarklets, because it allows you to inject dependencies and such.
This file contains 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
// ==UserScript== | |
// @name SCRIPT_NAME_HERE | |
// @namespace NAMESPACE | |
// @version 0.1 | |
// @description WIDGET_DESCRIPTION_HERE | |
// @match http*://*/* | |
// @include http*://*/* | |
// @copyright 2013+, YOURNAME | |
// ==/UserScript== |
This file contains 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
// SILENCE!!! |
This file contains 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
// dumb helpers functions | |
/** | |
* Generates a random integer between a min and max value | |
* @sauce https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/random#getting_a_random_integer_between_two_values | |
* @param number min | |
* @param number max | |
* @return number | |
*/ | |
function randomInt(min, max) { |
This file contains 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
const gruntFS = require('grunt').fs | |
const nodeFS = require('fs') | |
// init exported fs object | |
const fs = {} | |
// Map Grunt.file methods | |
fs.copy = gruntFs.copy | |
fs.delete = gruntFs.delete | |
// fs.exists = gruntFs.exists |
This file contains 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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Test Date Parsing</title> | |
</head> | |
<body> | |
<?php |
This file contains 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
"testing, waffles 1234567+=-_^@,./;:[]\/".replace(/[+-_]/g, '') | |
// > "testing waffles " |
This file contains 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 _ = require('lodash') | |
, chalk = require('chalk') | |
; | |
var keywordAnalysis = function keywordAnalysis(content, options) { | |
// configure options |
This file contains 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
<script> | |
import Container from './Container.svelte' | |
</script> | |
<h1>App Name</h1> | |
<Container> | |
<div class:col-xs-3 class:col-md-2 class:col-lg-1>...</div> | |
<div class:col-xs-3 class:col-md-2 class:col-lg-1 class:hidden class:visible-md>...</div> | |
<div class:col-xs-3 class:col-md-2 class:col-lg-1>...</div> |
This file contains 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
// @sauce: https://getbootstrap.com/docs/4.4/getting-started/accessibility/#visually-hidden-content | |
.sr-only | |
position: absolute | |
width: 1px | |
height: 1px | |
padding: 0 | |
margin: -1px | |
overflow: hidden | |
clip: rect(0,0,0,0) |
NewerOlder