Skip to content

Instantly share code, notes, and snippets.

@kevincolten
kevincolten / index.html
Created February 5, 2020 03:40
Matrix CSS
<div class="matrix">
<div class="d1 c1 de" style="left:6%;">circl<span>e</span>codingaca<span>d</span>emy</div>
<div class="d3 f1" style="left:12%;">circl<span>e</span>codingaca<span>d</span>emy</div>
<div class="d1 f2 c1" style="left:18%;">circl<span>e</span>codingaca<span>d</span>emy</div>
<div class="d2 f1" style="left:24%;">circl<span>e</span>codingaca<span>d</span>emy</div>
<div class="d4 c3 de" style="left:30%;">circl<span>e</span>codingaca<span>d</span>emy</div>
<div class="d2 c1" style="left:36%;">circl<span>e</span>codingaca<span>d</span>emy</div>
<div class="d3 f2 c1" style="left:36%;">circl<span>e</span>codingaca<span>d</span>emy</div>
<div class="d1 c1" style="left:42%;">circl<span>e</span>codingaca<span>d</span>emy</div>
<div class="d3 de" style="left:48%;">circl<span>e</span>codingaca<span>d</span>emy</div>
@kevincolten
kevincolten / areaCodes.json
Created October 24, 2019 20:52
Geocoded Area Codes
{
"date_updated": "2012-04-18",
"area_codes": [
{
"area_code": 201,
"city": "Jersey city, NJ",
"lat": 40.728157499999988,
"lng": -74.077641700000001
},
{
@kevincolten
kevincolten / index.html
Last active July 25, 2019 20:22
Calculator
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
<style>
html {
@kevincolten
kevincolten / Readme.md
Last active May 14, 2019 16:13
Compile arduino sketch to assembly on a Mac
  1. Export .ino file and rename to .cpp

  2. Add #include <Arduino.h> to top of the file

  3. run

    avr-g++    -I /Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/ -I /Applications/Arduino.app/Contents/Java//hardware/arduino/avr/variants/standard    -x c++  -MMD -c -mmcu=atmega328p -Wall -DF_CPU=16000000L  -Wall  -Os SR04_Example.cpp
  4. avr-objdump -S SR04_Example.o &gt;&gt; SR04_Example.lst

@kevincolten
kevincolten / links.md
Last active March 27, 2019 22:24
Graduate Class Links
@kevincolten
kevincolten / kevin-colten.md
Created March 19, 2019 18:13
Student Profile

layout: resume #don't touch categories: [ hire ] # don't touch

fullname: Kevin Colten jobtitle: Chief Technology Officer, Web Developer

location: Austin, TX blurb: 'A life-learner and new technology enthusiast, I work hard at the things I love: programming, teaching, and learning.'

@kevincolten
kevincolten / port-forwarding.txt
Created August 17, 2018 16:54
Localhost in Windows VirtualBox
In your wWindows VM admin powershell:
netsh interface portproxy add v4tov4 listenport=3000 connectport=3000 connectaddress=10.0.2.2 protocol=tcp
@kevincolten
kevincolten / .gitignore
Last active August 16, 2018 15:21
Insightly Scripts
.env
node_modules
@kevincolten
kevincolten / function.php
Created August 4, 2018 18:55
Return all events
function GetUpcomingEvents() {
$events = array();
$index = 0;
$today = date( "m/d/Y" );
$args = array(
'post_type' => 'events',
'post_status' => 'publish',
'posts_per_page' => - 1,
'meta_key' => 'event_start_date',
'orderby' => 'event_start_date',
@kevincolten
kevincolten / bookmarklet.txt
Created July 17, 2018 11:48
Export all form entries from WPForms
// Bookmarklet via https://mrcoles.com/bookmarklet/ (Add to bookmarks bar)
javascript:(function()%7BArray.from(document.querySelectorAll('.form-details-action-switch%20option')).slice(1).forEach(option%20%3D%3E%20window.open(%20option.getAttribute('value')%20%2B%20'%26export%3Dall%26'%20%2B%20document.querySelector('.form-details-actions-export').getAttribute('href').split('%26').find(str%20%3D%3E%20str.includes('_wpnonce'))%2C%20'_blank'))%7D)()