Skip to content

Instantly share code, notes, and snippets.

View justinbmeyer's full-sized avatar

Justin Meyer justinbmeyer

View GitHub Profile
<ul class="seasons">
  <li class="season" ng-repeat="season in seasons">
    Season {{season.seasonNumber}}
  </li>
</ul>
@justinbmeyer
justinbmeyer / prism-line-highlight.js
Created April 23, 2019 18:54
A faster version of prism line highlight.
(function(){
if (typeof self === 'undefined' || !self.Prism || !self.document || !document.querySelector) {
return;
}
function $$(expr, con) {
return Array.prototype.slice.call((con || document).querySelectorAll(expr));
}
show More Info

Todos

  • Inside vs outside sales numbers

Goal

Numbers

  • 95%/ Month retention (down from 99%)

tldr: Create a reoccurring online meetup for Bitovi's community.

The goal

  • Make Bitovi seem like the "cool" place it already is.
  • Meet other developers, get QSLs.

The problem

  • We have a lot of community outside just Chicago and LA
@justinbmeyer
justinbmeyer / can-bind.js
Last active October 30, 2018 14:54
can-bind.js
"use strict";
var canReflect = require("can-reflect");
var canSymbol = require("can-symbol");
var namespace = require("can-namespace");
var queues = require("can-queues");
var canAssign = require("can-assign");
//!steal-remove-start
if(process.env.NODE_ENV !== 'production') {
var canLog = require("can-log/dev/dev");

Intro

CanJS 5.0 (https://www.bitovi.com/blog/canjs-5) is out and it makes building CRUD apps easier than should be possible. In this talk, we'll learn the basics of CanJS and show how to build an app that Creates, Reads, Updates, and Deletes (CRUD) data. The app will handle all the things folks normally forget too. Things like server errors, slow loading, and disabling buttons to prevent repeat form submissions. Getting in the CRUD will never feel so good.

CRUD is all around us

The CodePen we are building. It has:

  • The ability to Create, Read, Update, and Delete data.
  • Most of the important mechanics work.

OS

  • Evangelist ... meetups, write, write, write (Brian)
  • Community Manager ... talk talk talk
  • Kevin & Matthew
  • Nils? Manuel?

Leadership

  • CEO - ME ... only doing people related things
var canViewParse = require("can-view-parser");
var someSortOfEach = /\{\{#\s*each\(/
var eachMatch = /\{\{#\s*each\(\s*([\w\.\(\)]+)\s*\)\s*\}\}/;
function processStache(source) {
canViewParse(source, {
start: function(){},
end: function(){},
close: function(){},