Skip to content

Instantly share code, notes, and snippets.

View nikolaswise's full-sized avatar
🌵

Nikolas Wise nikolaswise

🌵
View GitHub Profile
  • 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
// 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')
@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';
@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);
<span class="filter-dropdown-active">Contributing<a class="filter-dropdown-remove" href="#" data-item-id="0"></a></span>
@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;
}
}
@nikolaswise
nikolaswise / game.json
Created April 15, 2016 19:39
joseki party game server json
joseki-party: {
// name in url, generated on new game
ironrabbit-fancier: {
// Gets set when one player passes their turn. Reflects in the UI.
// Two passes end the game
pass: {
black: false,
white: false
}
// If a player resigns, this gets marked
@nikolaswise
nikolaswise / gameServer.json
Created April 15, 2016 18:15
joseki party game state
joseki-party: {
// name in url, generated on new game
ironrabbit-fancier: {
// Gets set when one player passes their turn. Reflects in the UI.
// Two passes end the game
pass: {
black: false,
white: false
}
// If a player resigns, this gets marked
@nikolaswise
nikolaswise / release.sh
Created September 16, 2015 15:20
releae process
git branch -D temp-release-branch
git checkout -b temp-release-branch
grunt prepublish
git add -f dist/
git commit -m "Release"
git push upstream temp-release-branch
npm run gh-release
git checkout master
git branch -D temp-release-branch
git push upstream :temp-release-branch
@nikolaswise
nikolaswise / markdown-it.js
Last active August 29, 2015 14:24
static-site markdown helper
var md = require('markdown-it')({
html: true,
linkify: true,
typographer: true,
quotes: '“”‘’'
})
.use(require('markdown-it-highlightjs'))
.use(require('markdown-it-footnote'))
.use(require('markdown-it-emoji'))
.use(require('markdown-it-container'), 'figure')