Skip to content

Instantly share code, notes, and snippets.

// 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 / 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 / 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);
@LucasLarson
LucasLarson / ShowAnchors.js
Last active December 2, 2022 15:16 — forked from inkarkat/ShowAnchors.js
Improved “Show Anchors” bookmarklet from Ingo Karkat’s https://gist.github.com/inkarkat/cd1d40996a1f818dfc71, which is an improvement on the bookmarklet here: http://sensefulsolutions.com/2009/12/show-anchors-bookmarklet.html
javascript:(function(){function%20a(n,t){return'<a%20href="'+loc+"#"+n+'"%20title="'+t+":%20"+n+'"%20style="text-decoration:none;padding:.2em;background:#fff;border:1px%20solid%20black;display:block;position:absolute;z-index:2147483647;border-radius:3px;-webkit-box-shadow:0%203px%207px%20rgba(0,0,0,0.3);box-shadow:0%203px%207px%20rgba(0,0,0,0.3)">#'+n+"</a>"}var%20$,loc=location.href,anchorPos=location.href.lastIndexOf("#");anchorPos>-1&&(loc=loc.substring(0,anchorPos)),function(u,c){var%20h=document.getElementsByTagName("head")[0],s=document.createElement("script");s.src=u;var%20d=!1;s.onload=s.onreadystatechange=function(){d||this.readyState&&"loaded"!=this.readyState&&"complete"!=this.readyState||(d=!0,c(),s.onload=s.onreadystatechange=null,h.removeChild(s))},h.appendChild(s)}("//code.jquery.com/jquery-3.3.1.min.js",function(){$=jQuery,$("a[name]").each(function(i){$(a(this.name,"name")).insertBefore(this)}),$("[id]:not(input[type='hidden'])").each(function(i){switch(this.nodeName){case"TD":$(this).prepend