Skip to content

Instantly share code, notes, and snippets.

@lpanebr
lpanebr / surfingkeys.js
Created December 30, 2021 14:41
My surfingkeys extension config
// an example to replace `T` with `gt`, click `Default mappings` to see how `T` works.
// api.map('gt', 'T');
settings.blocklistPattern =/(calendar)\.google\.com.*/i;
settings.blocklist = {
"https://www.figma.com": 1,
"https://excalidraw.com": 1,
"https://www.keybr.com": 1,
"https://monkeytype.com": 1
};
// To create the actual bookmarklet use
// https://mrcoles.com/bookmarklet/
// prompts for a SELECT ID and displays all it's OPTIONS
var selector = prompt("qual ID do SELECT?");
var states = document.getElementById(selector).getElementsByTagName('option');
var list = "";
for (var i = 0; i < states.length; i++) { list += states[i].value+"<br>" ; }
document.body.innerHTML = '<div style="color:#000;background:#fff;">'+list+'</div>';
#!/bin/bash
echo -n " Use $default, daily or type a date? [yes or no] (yes default) or Daily (d): "
read yno
case $yno in
[nN] | No | no )
echo -n " Type a date: "
read date
;;
#!/bin/bash
echo -n " - PATH ? "
read APP_FOLDER
while [ ! -d $APP_FOLDER ]
do
read -s -p " [!] Hey! PATH must exist: " APP_FOLDER
done
@lpanebr
lpanebr / designer.html
Last active December 1, 2015 02:28
designer
<link rel="import" href="../polymer/polymer.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
width: 100%;
height: 100%;
<?php
/**
* SplClassLoader implementation that implements the technical interoperability
* standards for PHP 5.3 namespaces and class names.
*
* http://groups.google.com/group/php-standards/web/final-proposal
*
* // Example which loads classes for the Doctrine Common package in the
* // Doctrine\Common namespace.