Skip to content

Instantly share code, notes, and snippets.

<!-- srch_results_local.twig -->
<strong style="display:block;">
<!-- srch_pager.twig -->
<div class="pull-right" style="padding-left:50px;">
<ul class="pagination pagination-sm" role="listbox" aria-label="Search Pagination">
<li class="disabled" role="option">
<a href="#">&lt;&lt;</a>
</li>
<li class="disabled" role="option">
JSON.parse(
JSON.stringify(
document.cookie
.split(";")
.map(function (x) {
return x.trim().split(/(=)/);
})
.reduce(function (a, b) {
a[b[0]] = a[b[0]]
? a[b[0]] + ", " + b.slice(2).join("")
<div
tabindex="0"
aria-label="Map"
aria-roledescription="map"
role="region"
style="position: absolute; z-index: 0; left: 0px; top: 0px; height: 100%; width: 100%; padding: 0px; border-width: 0px; margin: 0px; cursor: url('https://maps.gstatic.com/mapfiles/openhand_8_8.cur'), default;"
aria-describedby="B4867826-BAF1-417B-9977-7041E4187786"
>
<div style="z-index: 1; position: absolute; left: 50%; top: 50%; width: 100%; will-change: transform; transform: translate(0px, 0px);">
<div style="position: absolute; left: 0px; top: 0px; z-index: 100; width: 100%;">
@rxctionzz
rxctionzz / machine.js
Created April 3, 2023 02:02
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
@DartPower
DartPower / ms-office-dl-links
Last active May 5, 2024 21:11
MS Office Download Links
@labnol
labnol / index.html
Created January 19, 2013 04:12
A CodePen by Amit Agarwal. Bookmarklets - A useful resource for all the people looking for bookmarklets for their favourite services. Additions are welcome. Just comment with the name of the service and a link to the bookmarklets.
<header>
<div class="wrap">
<h1 class="site-heading">Bookmarklets</h1>
<p class="description">Collecting useful bookmarklets accross the web. Curated by <a href="http://twitter.com/RadLikeWhoa_" target="_blank">Sacha Schmid</a>.</p>
<p class="links"><a href="#howto">Read the instructions</a><span class="separator">|</span><a href="http://twitter.com?status=@RadLikeWhoa_ I'd like to suggest a new bookmarklet: " target="_blank">Suggest a bookmarklet</a></p>
</div>
</header>
<section id="toolbar" class="toolbar" style="display: block;">
<div class="column">
<input id="search" class="search" type="search" placeholder="Search by name or by category">
@gruber
gruber / make_bookmarklet.pl
Last active May 5, 2024 21:11
JavaScript Bookmarklet Builder
#!/usr/bin/env perl
#
# http://daringfireball.net/2007/03/javascript_bookmarklet_builder
use strict;
use warnings;
use URI::Escape qw(uri_escape_utf8);
use open IO => ":utf8", # UTF8 by default
":std"; # Apply to STDIN/STDOUT/STDERR
@kbauer
kbauer / myjs-compile-bookmarklet.el
Last active May 5, 2024 21:11
Emacs-lisp command for compiling a javascript file into a bookmarklet, by stripping unnecessary characters and adding a wrapper.
;;; myjs-compile-bookmarklet.el --- strip javascript code as bookmarklet -*- lexical-binding: t; coding: utf-8; lisp-indent-offset: nil; -*-
;; Copyright (C) 2018 Klaus-Dieter Bauer
;; Author: Klaus-Dieter Bauer <kdb.devel@gmail.com>
;; Keywords: javascript, bookmarklet
;; This program is free software; you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
;; the Free Software Foundation, either version 3 of the License, or
/*global sforce:true */
(function() {
function loadScript(url, callback) {
var script = document.createElement('script');
script.type = 'text/javascript';
script.src = url;
if (callback) {
script.onload = callback;
script.onreadystatechange = function() {
javascript: (function() {
var users = new Set();
var authors = {};
/* Stores all the authors that need labels and all the unique users so each user is only requested once. */
$(".author").each(function() {
if (!$(this).parent().find(".bookmarklet-container").length) {
var user = $(this).text();
if (authors[user] == null) {
authors[user] = [];