Skip to content

Instantly share code, notes, and snippets.

View tkarriem2's full-sized avatar

M. Todd Karriem tkarriem2

View GitHub Profile
@tkarriem2
tkarriem2 / index.html
Created March 27, 2023 19:10
Library lamp
<input type="checkbox" id="lib">
<label for="lib" class="lib">
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M8 20H12M16 20H12M12 20V11" stroke="#ACA6A9" stroke-width="2" stroke-linecap="round"/>
<path d="M17 11V16" stroke="#ACA6A9" stroke-width="1.5" stroke-linecap="round" class="onoff"/>
<path d="M15 4H9C6.23858 4 4 6.23858 4 9V9.5C4 10.3284 4.67157 11 5.5 11H18.5C19.3284 11 20 10.3284 20 9.5V9C20 6.23858 17.7614 4 15 4Z" stroke="#ACA6A9" stroke-width="2"/>
<path d="M3 21L5 12H19L21 21H3Z" fill="url(#paint0_linear_976_2597)" class="shine"/>
<path d="M9 3C5.68629 3 3 5.68629 3 9V9.5C3 10.8807 4.11929 12 5.5 12H18.5C19.8807 12 21 10.8807 21 9.5V9C21 5.68629 18.3137 3 15 3H9Z" fill="url(#paint1_radial_976_2597)" class="lamp"/>
<defs>
<linearGradient id="paint0_linear_976_2597" x1="12" y1="12" x2="12" y2="21" gradientUnits="userSpaceOnUse">
Verifying my Blockstack ID is secured with the address 18mfNmR4dMVDdV1YVub3F1pDMiGv7rci6P https://explorer.blockstack.org/address/18mfNmR4dMVDdV1YVub3F1pDMiGv7rci6P
@tkarriem2
tkarriem2 / chrome-internal-urls.markdown
Created January 11, 2019 03:05
Chrome Internal URLs
{
"Alabama": "AL",
"Alaska": "AK",
"American Samoa": "AS",
"Arizona": "AZ",
"Arkansas": "AR",
"California": "CA",
"Colorado": "CO",
"Connecticut": "CT",
"Delaware": "DE",
This file has been truncated, but you can view the full file.
[
{
"code": "AAA",
"lat": "-17.3595",
"lon": "-145.494",
"name": "Anaa Airport",
"city": "Anaa",
"state": "Tuamotu-Gambier",
"country": "French Polynesia",
"woeid": "12512819",
// classic
var numbers = [1, 5, 8, 13];
var doubledNumbers = [];
for (var i=0; i < numbers.length; i++) {
doubledNumbers[i] = numbers[i] * 2;
}
// functional
var numbers = [1, 5, 8, 13];
{
"TimeStamp" : "451517094537",
"CodeCount" : 46,
"LastUpdated" : "Never",
"ddCodes" : [
{
"ddCode" : "MCWNDF",
"ddAmt" : "250,000",
"ddID" : "17-1932",
"ddUsed" : 0
@tkarriem2
tkarriem2 / initsnip.js
Last active August 4, 2017 15:19
Snippet test
/*
log-globals
by Sindre Sorhus
https://github.com/sindresorhus/log-globals
MIT License
*/
(function () {
'use strict';
function getIframe() {
@tkarriem2
tkarriem2 / snipboot.js
Last active March 5, 2018 00:18
Browser Snippet Bootstrap
/*https://rawgit.com/tkarriem2/0fc4ed667c2d1963d1d28c2c112cb2ef/raw/a6a3c6b44c5a32b1d4ea8e3f97ea7db15031f729/snipboot.js*/
(function initSnipBoot() {
// form rawGit proxy url
var ghUrl = 'tkarriem2/22b3f1dc9ba68997e775df23994b27d4/raw/aa11f9f2229333ee94636f727ea64b6c69a4f3b1/initsnip.js';
var rawUrl = 'https://rawgit.com/' + ghUrl;
// download and run the script
var head = document.getElementsByTagName('head')[0];
var script = document.createElement('script');
script.type = 'text/javascript';
script.src = rawUrl;
@tkarriem2
tkarriem2 / designer.html
Last active June 3, 2017 02:16
designer
<link rel="import" href="../topeka-elements/theme.html">
<link rel="import" href="../topeka-elements/topeka-resources.html">
<link rel="import" href="../topeka-elements/topeka-app.html">
<link rel="import" href="../topeka-elements/topeka-datasource.html">
<polymer-element name="my-element">
<template>
<style>
:host {