Skip to content

Instantly share code, notes, and snippets.

View dbouwman's full-sized avatar
😎
Hubbin it up @ Esri

Dave Bouwman dbouwman

😎
Hubbin it up @ Esri
View GitHub Profile
@dbouwman
dbouwman / app.scss
Created February 18, 2016 15:59
admin namespacing scss
/* Vars that are needed in some of the other imports and
would normally come from calcite, but we are not including it
in this site */
$Calcite_Gray_050: #ffffff; // white
$Calcite_Gray_700: #323232; // 80%, previously Esri_Gray160
/* set the output folder for fonts */
body{
@dbouwman
dbouwman / PATCH-payload.json
Last active February 16, 2016 23:39
Example payload to /api/v2/sites/:id
{
"data": {
"attributes": {
"draft": "{\"layout\":{\"cards\":[{\"x\":0,\"y\":0,\"width\":12,\"height\":5,\"component\":{\"name\":\"jumbotron-card\",\"minWidth\":12,\"editor\":\"jumbotron-card-editor\",\"settings\":{\"header\":\"Hello World!\",\"subheader\":\"This is our Open Data website\",\"imageUrl\":\"http://cdn.playbuzz.com/cdn/32046b2f-38d4-4a82-8634-e1a72dd8f6ac/3bd0af20-55a4-48d7-84ea-7ffb29680186.jpg\",\"showLocation\":true}}},{\"x\":0,\"y\":9,\"width\":6,\"height\":10,\"component\":{\"name\":\"markdown-card\",\"settings\":{\"markdown\":\"# Hello World \\n Lets not be stupid about this. But we need images and other things of goodness \\n \\n <img src=\\\"http://assets.pokemon.com/assets/cms2/img/pokedex/full/025.png\\\"/><hr>\\n### And Lists \\n - of good things\\n- and bad\"}}},{\"x\":4,\"y\":5,\"width\":6,\"height\":4,\"component\":{\"name\":\"placeholder-card\"}}],\"header\":{\"title\":\"My Super Site\",\"logoUrl\":\"http://omgnikki.com/wp-content/uploads/2015/03/sm-icon_pin.png\",\"ful
{
"version": "2",
"header": {
"title": "VizWit",
"description": "Lorem ipsum dolor sit amet"
},
"cards": [
{
"x": 0,
"y": 0,
@dbouwman
dbouwman / vizwit-test.json
Created January 5, 2016 20:22
Hacking with VizWit
{
"version": "2",
"header": {
"title": "VizWit",
"description": "Lorem ipsum dolor sit amet"
},
"cards": [
{
"x": 0,
"y": 0,
@dbouwman
dbouwman / notes.md
Last active December 4, 2015 16:57
Notes from Nodevember 2015

#Nodevember Nodes

Yahuda Keynote

  • basically a ember 101 walk-thru
  • fastboot early 2016 inc client-side re-hydration

Elijah Manor - Code Smells

  • switch statement --> strategy pattern
  • eslint allows custom plugins
  • enable/disabled rules @ file level, or block
@dbouwman
dbouwman / index.html
Last active October 15, 2015 22:37
Wells
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<link rel="stylesheet" href=
"http://js.arcgis.com/3.14/esri/css/esri.css">
<link rel="stylesheet" type="text/css" href=
"https://rawgit.com/benheb/legend/master/legend.css">
@dbouwman
dbouwman / .git-prompt.sh
Created October 2, 2015 15:21
Git Prompt
# bash/zsh git prompt support
#
# Copyright (C) 2006,2007 Shawn O. Pearce <spearce@spearce.org>
# Distributed under the GNU General Public License, version 2.0.
#
# This script allows you to see repository status in your prompt.
#
# To enable:
#
# 1) Copy this file to somewhere (e.g. ~/.git-prompt.sh).
@dbouwman
dbouwman / index.html
Last active September 24, 2015 03:29
water
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<link rel="stylesheet" href=
"http://js.arcgis.com/3.14/esri/css/esri.css">
<link rel="stylesheet" type="text/css" href=
"https://rawgit.com/benheb/legend/master/legend.css">
@dbouwman
dbouwman / webmap.json
Created September 24, 2015 03:25
Water
{
"item": {
"title": "New Map",
"snippet": "Water",
"extent": [
[
-110.79999999997013,
-52.646898262917986
],
[
@dbouwman
dbouwman / -full-header.hbs
Last active December 1, 2015 17:23
Ember Partials for Kick-starting an Esri App
<nav class='navbar navbar-default' id='main-nav'>
<div class='container'>
<div class='navbar-header'>
{{ partial 'partials/menu-btn' }}
{{# link-to 'index' class='navbar-brand' }}
{{ t 'application.title' }}
{{/ link-to }}
</div>
<div class='collapse navbar-collapse'>
<ul class='nav navbar-nav'>