Skip to content

Instantly share code, notes, and snippets.

View mikewlange's full-sized avatar
💡
The dude abides

Mike Lange mikewlange

💡
The dude abides
View GitHub Profile
@mikewlange
mikewlange / index.html
Created May 25, 2019 08:23
Natural language search styled select menus
<div class="search-panel open">
<div class="left">
<div class="question">
<span class="text">Whats My Return with a</span>
<span class="select">
<select name="forum$ctl01$FirstDropDown" id="forum_ctl01_FirstDropDown">
<option value="diagnosis">$200</option>
<option value="treatment">$1000</option>
@mikewlange
mikewlange / index.html
Last active June 1, 2019 07:07
Styled "select" options using CSS3 and Flexbox
<div class="select" tabindex="1">
<input class="selectopt" name="test" type="radio" id="opt1" checked>
<label for="opt1" class="option">Oranges</label>
<input class="selectopt" name="test" type="radio" id="opt2">
<label for="opt2" class="option">Apples</label>
<input class="selectopt" name="test" type="radio" id="opt3">
<label for="opt3" class="option">Grapefruit</label>
<input class="selectopt" name="test" type="radio" id="opt4">
<label for="opt4" class="option">Bananas</label>
<input class="selectopt" name="test" type="radio" id="opt5">

Credit Card Payment Form

Wanted to work with some masking so made a payment form so, using vanilla JS and the imask.js library, made a fairly simply payment form that uses regex patterns to detect the credit card type as the user is inputting values and properly applies the relevant spacing associated with that brand. Also wanted to do a smidge of style flair so made a simple SVG card that changes as the user fills out the form.

A Pen by mike lange on CodePen.

License.

@mikewlange
mikewlange / index.haml
Created June 25, 2019 03:48
With a Baseball Bat
.pixelart-to-css
"use strict";
function _typeof(obj) {
if (typeof Symbol === "function" && _typeof(Symbol.iterator) === "symbol") {
_typeof = (function(_typeof2) {
function _typeof(_x) {
return _typeof2.apply(this, arguments);
}
_typeof.toString = function() {
return _typeof2.toString();
pragma solidity 0.5.7;
contract Ownable {
address public owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
constructor() public {
owner = msg.sender;
}
{
"globals": {
"jest": true,
"expect": true,
"mockFn": true,
"config": true,
"afterEach": true,
"beforeEach": true,
"describe": true,
"it": true,