Skip to content

Instantly share code, notes, and snippets.

@LucasLarson
LucasLarson / keybase.md
Created December 14, 2017 16:21
Voilà moi

Keybase proof

I hereby claim:

  • I am LucasLarson on github.
  • I am lucaslarson (https://keybase.io/lucaslarson) on keybase.
  • I have a public key whose fingerprint is 12B3 EE07 0B60 1C46 EBF7 0EAC 3DE2 E0C3 C34F EFC7

To claim this, I am signing this object:

@LucasLarson
LucasLarson / icons.scss
Last active November 10, 2018 17:59 — forked from mrmartineau/icons.scss
SVG social icons
// 3rd party brand colors - find more at brandcolors.net
$color-twitter : #55acee;
$color-facebook : #3b5998;
$color-youtube : #cd201f;
$color-pinterest : #bd081c;
$color-instagram : #e4405f;
$color-whatsapp : #25D366;
.socialCTA {
background-color: rgba(#fff, .2);
Verifying my identity on Peepeth.com 0x2b4ffc87584f860a17ec7f143819d18c6df81f39
@LucasLarson
LucasLarson / mars.asm
Created March 27, 2019 03:43
MIPS MARS blue-on-yellow bitmap
#-------------------\
# |
# MIPS MARS Bitmap |
# |
# Lucas Larson |
# 2019-03-26 |
# |
# # # # # # # # # # /
.data
@LucasLarson
LucasLarson / cspheader.php
Last active April 9, 2019 20:22 — forked from rattfieldnz/cspheader.php
Content Security Protocol: LAMP-flavored CSP header for Content-Security-Policy
<?php
/**
* @author Dave LaRonde
* @author Lucas Larson
* @link https://gist.github.com/phpdave/24d879514e7411047267
*/
// Content Security Protocol (CSP) works only in modern browsers Chrome ≥25,
// Firefox ≥23, Safari ≥7
@LucasLarson
LucasLarson / asciify-hexify.js
Last active April 16, 2019 02:13
ASCIIfy–Hexify: A bookmarklet to find a character’s ASCII and hexadecimal value
/**
* ASCIIfy–Hexify bookmarklet
* v.92
*
* Authors: Lucas Larson, 2017
* Steve Kangas, 1998
*
* Description: This is the JavaScript behind a bookmarklet to obtain the
* ASCII₁₀ value and hexadecimal value of any single character.
*
@LucasLarson
LucasLarson / www±.js
Last active November 25, 2019 23:13
www±: A bookmarklet to toggle between a website’s 𝚠𝚠𝚠 and 𝚗𝚘-𝚠𝚠𝚠 URIs
/**
* www±
* v. 0.1
*
* Description: This is the JavaScript behind a bookmarklet to move back and
* forth between the 𝚠𝚠𝚠 and 𝚗𝚘-𝚠𝚠𝚠 versions of a
* website’s URI.
*
* Installation: See bottom
*
// C++ includes used for precompiling -*- C++ -*-
// Copyright (C) 2003-2020 Free Software Foundation, Inc.
//
// This file is part of the GNU ISO C++ Library. This library 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, or (at your option)
// any later version.
@LucasLarson
LucasLarson / gtag.js
Last active October 11, 2020 15:20
Google Analytics local `gtag.js` but less unreadable
window.dataLayer = window.dataLayer || []
function gtag () {
window.dataLayer.push(arguments)
}
gtag(
'js',
new Date()
)
gtag(
'config',
@LucasLarson
LucasLarson / mementos.txt
Last active November 29, 2020 20:36
Find Mementos: a repaired bookmarklet to search the UK Web Archive, whose results include those of the Internet Archive
The UK Web Archive’s recommended bookmarklet no longer works because it escapes the referer’s address.
Then in 2020, they stopped serving their site over HTTPS (!).
Use this code instead as your bookmarklet’s address:
javascript:/* eslint-env browser */location.href='http://webarchive.org.uk/mementos/search/'+location.href