Skip to content

Instantly share code, notes, and snippets.

@PERCE-NEIGE
PERCE-NEIGE / Bullseye.bookmarklet
Created November 30, 2020 11:51 — forked from ttscoff/Bullseye.bookmarklet
A bookmarklet for grabbing just a piece of a web page and converting it to Markdown using heckyesmarkdown.com.
javascript:(function(){var p=document.createElement("p");p.innerHTML="<strong>Loading&hellip;</strong>";p.id="loadingp";p.style.padding="20px";p.style.background="#fff";p.style.left="20px";p.style.top=0;p.style.position="fixed";p.style.zIndex="9999999";p.style.opacity=".85";document.body.appendChild(p);document.body.appendChild(document.createElement("script")).src="https://cdn.rawgit.com/ttscoff/6109434/raw/Bullseye.js?x="+(Math.random());})();
@PERCE-NEIGE
PERCE-NEIGE / dae.md
Last active November 30, 2020 11:44 — forked from MelSumner/dae.md
Bookmarklet

Document Active Element (DAE) is a JavaScript bookmarklet intended to help you more easily identify where the activeElement is on your screen.

To use:

  1. Add a new bookmark
  2. in the "Name" field, type DAE
  3. in the URL field, add the following code:
javascript:(function(){ document.activeElement.style.border = "1px solid red"; })();
@PERCE-NEIGE
PERCE-NEIGE / grab links.bookmarklet
Created November 29, 2020 21:50 — forked from ttscoff/grab links.bookmarklet
Create a bookmark and paste the code from `grab links.bookmarklet` into the url. Trigger it on a page containing links you want to save and then click the section of the page containing the links. A Markdown list of all links will be generated, and clicking the resulting list will select all for copying.
@PERCE-NEIGE
PERCE-NEIGE / invisible-code-generator.js
Created March 6, 2020 00:31 — forked from aarongeorge/invisible-code-generator.js
A code generator that takes Javascript and compiles it to ASCII Control Characters that are not visible, based on Martin Kleppe's "Invisible Code" talk
/**
* Invisible Code Generator
*
* Description:
* A code generator that takes Javascript and compiles it to
* ASCII Control Characters that are not visible
*
* Usage:
* Copy and paste the code into your browsers console
* Then paste the code you wish to convert to "Invisible Code"
@PERCE-NEIGE
PERCE-NEIGE / gist:6e4403a433d535eceaf39b7e3e6ec668
Last active February 13, 2020 12:53 — forked from anonymous/gist:2717042
Google Apps Script Gistfile1.js
function onOpen() {
var ss = SpreadsheetApp.getActiveSpreadsheet();
var menuEntries = [ {name: "Get Stock", functionName: "getStock"}];
ss.addMenu("Finance", menuEntries);
}
function getStock() {
var sheet = SpreadsheetApp.getActiveSheet();
sheet.getRange(1, 1).setValue("Symbol");
@PERCE-NEIGE
PERCE-NEIGE / google-apps-script.md
Created February 5, 2020 16:26 — forked from labnol/google-apps-script.md
How to Learn Google Apps Script - The best resources for learning Google Apps Script, the glue that connects GSuite services including Gmail, Google Drive, Calendar, Maps, Analytics and more.

Learning Google Apps Script

The best place to learn more about Google Script is the official documentation available at developers.google.com. Here are other places that will help you get up to speed.

  1. Google Apps Scripts - Snippets by +Amit Agarwal
  2. Apps Script Starter - Create Google Apps Script projects locally inside VS Code.
  3. Digital Inspiration by +Amit Agarwal - Google Addons
  4. Awesome Google Scripts by +Amit Agarwal
  5. Build with Google Apps Script - Setup a local development environment for Apps Script
  6. Apps Script Webinars - YouTube - by +Eric Koleda
@PERCE-NEIGE
PERCE-NEIGE / blogger.template
Created February 10, 2019 07:16 — forked from elubow/blogger.template
Blogger Standard Template
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html>
<html b:version='2' class='v2' expr:dir='data:blog.languageDirection' xmlns='http://www.w3.org/1999/xhtml' xmlns:b='http://www.google.com/2005/gml/b' xmlns:data='http://www.google.com/2005/gml/data' xmlns:expr='http://www.google.com/2005/gml/expr'>
<head>
<meta content='IE=EmulateIE7' http-equiv='X-UA-Compatible'/>
<b:if cond='data:blog.isMobile'>
<meta content='width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0' name='viewport'/>
<b:else/>
<meta content='width=1100' name='viewport'/>
</b:if>
@PERCE-NEIGE
PERCE-NEIGE / canamla.html
Created February 10, 2019 07:07 — forked from aaronstonedd/canamla.html
This is the XML code of my Blogger blog
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html>
<html b:version='2' class='v2' expr:dir='data:blog.languageDirection' xmlns='http://www.w3.org/1999/xhtml' xmlns:b='http://www.google.com/2005/gml/b' xmlns:data='http://www.google.com/2005/gml/data' xmlns:expr='http://www.google.com/2005/gml/expr'>
<head>
<meta content='IE=EmulateIE7' http-equiv='X-UA-Compatible'/>
<b:if cond='data:blog.isMobile'>
<meta content='width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0' name='viewport'/>
<b:else/>
<meta content='width=1100' name='viewport'/>
</b:if>
@PERCE-NEIGE
PERCE-NEIGE / .htaccess
Created February 5, 2019 15:37 — forked from crslade/.htaccess
.htaccess file to redirect Wordpress links to Blogger
Options +FollowSymLinks
RewriteEngine On
#index page
RewriteRule ^index.php http://www.christopherslade.com [R=301,L]
#About
RewriteRule ^author/crslade http://www.christopherslade.com/p/about_21.html [R=301,L]
RewriteRule ^about http://www.christopherslade.com/p/about_21.html [R=301,L]
# Feed
RewriteRule ^feed http://www.christopherslade.com/feeds/posts/default [R=301,L]
# Post URL
@PERCE-NEIGE
PERCE-NEIGE / scrape.py
Created September 6, 2017 04:46 — forked from rgegriff/scrape.py
A script to download all of the epubs from a calibre library
#!/bin/env python
#python scrape.py "http://some.url.nyud.net/"
import urllib, re, sys, time, shutil
url = sys.argv[1]
search_str = "mobile?search=;order=descending;sort=author;num=10000000;start=1"
epub_list = [l for l in re.findall('href=[\"\'](.[^\"\']+)[\"\']', urllib.urlopen(url+search_str).read(), re.I) if l[-4:] == "epub"]
if len(sys.argv) == 3:
print "RESUMING AT #"+str(sys.argv[2])
count = int(sys.argv[2])