Skip to content

Instantly share code, notes, and snippets.

View nikolaswise's full-sized avatar
🌡

Nikolas Wise nikolaswise

🌡
View GitHub Profile
@nikolaswise
nikolaswise / markdown.jsx
Created June 1, 2016 20:38
markdown parser for idesign
#target indesign;
main();
function fuzzyIndex(list, string) {
for(var i = 0; i < list.length; i++) {
if(list[i].indexOf(string) != -1) {
return i;
}
}
<span class="filter-dropdown-active">Contributing<a class="filter-dropdown-remove" href="#" data-item-id="0"></a></span>
@nikolaswise
nikolaswise / code.js
Created October 6, 2016 21:35
Ceasar's component code
{
window.onload = (() => {
var sectorsArr = document.querySelectorAll('.squeezebox-sector');
var sectors = calcite.nodeListToArray(sectorsArr);
var sectorsUnderlayArr = document.querySelectorAll('.squeezebox-sector-underlay');
var sectorsUnderlay = calcite.nodeListToArray(sectorsUnderlayArr);
@nikolaswise
nikolaswise / babel-tape-runner
Created March 3, 2017 17:02
es6 module testing with babel tape runner ????
// add.js
export default function (a, b) {
return a + b
}
// test.js
var test = require('tape');
import add from './add';
// Get Nodes
var buttonA = document.getElementById('a');
var buttonB = document.getElementById('b');
// Define functions
var resultOne = function () {
alert('Thing One')
}
var resultTwo = function () {
alert('Thing Two')
  • Write photo list Immediately
  • Follow up with Morgan
  • Invite Paul to Studio
  • Print Thank You Cards
  • Get Money Out of Paypal
  • Hang SunSial
  • Hang Lights
  • Go to Footwise?
  • Buy Shoes
  • Buy Tie
// β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
// β”‚ Multi-Col: β”‚
// β”‚ Good for β”‚
// β”‚ Pinterest β”‚
// β”‚ Style. β”‚
// β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
.masonry {
column-count: 4;
column-gap: $gutter;
// β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
// β”‚ CSS Grid: β”‚
// β”‚ Good for β”‚
// β”‚ spanning β”‚
// β”‚ horizontal β”‚
// β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
.masonry {
display: grid;
grid-template-columns: repeat(4, 1fr);
@nikolaswise
nikolaswise / shopify-product-variants.html
Created March 12, 2018 18:23
`n` dimensional product variants
<div class="product-options">
{% for option in product.options_with_values %}
<div class="product-option">
<h4 class="txt-size-0">{{ option.name }}</h4>
<select class="product-option-select js-variant-select" data-axis="{{ option.name | downcase }}">
{% for value in option.values %}
<option {% if option.selected_value == value %}selected{% endif %}>
{{ value }}
</option>
@nikolaswise
nikolaswise / sample.html
Created March 15, 2018 17:16
simple boilerplate
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta content="IE=edge" http-equiv="X-UA-Compatible">
<meta name="viewport" content="width=device-width, user-scalable=no">
<title>Your Title</title>
<link rel="shortcut icon" href="/img/favicon.ico">
<!-- get calcite-web css from the cdn (use latest version) -->
<link rel="stylesheet" href="/style.min.css?v1.0.0">