Skip to content

Instantly share code, notes, and snippets.

View tomwayson's full-sized avatar
💭
Rockin' the dad jeans

Tom Wayson tomwayson

💭
Rockin' the dad jeans
View GitHub Profile
@tomwayson
tomwayson / portalUtils.js
Created July 10, 2013 18:03
An AMD utility module for working with ArcGIS portal items that including helper functions missing from other esri/arcgis classes (addItem, etc)
define([
"dojo/io-query",
"esri/request",
"esri/arcgis/utils"
],
function(
ioQuery,
esriRequest,
@tomwayson
tomwayson / index.html
Last active August 17, 2017 06:48
Custom ArcGISDynamicMapServiceLayer
<!DOCTYPE html>
<html>
<!--
Example of how to extend the ArcGISDynamicMapService layer to send custom parameters to exportMap.
Adapted from the Dynamic Map Service Example:
https://developers.arcgis.com/javascript/jssamples/map_dynamic.html
-->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<!--The viewport meta tag is used to improve the presentation and behavior of the samples
@tomwayson
tomwayson / index.html
Last active August 29, 2015 14:11
Dijit Dialog
<!DOCTYPE html>
<html >
<head>
<!-- Dojo claro theme for Dojo Dijits -->
<link rel="stylesheet" href="//ajax.googleapis.com/ajax/libs/dojo/1.10.3/dijit/themes/claro/claro.css">
<!-- esri stylesheet not used by Dojo widgets, but if there were a map on this page, you'd need it -->
<link rel="stylesheet" href="http://js.arcgis.com/3.12/esri/css/esri.css">
<script>dojoConfig = {parseOnLoad: true}</script>
@tomwayson
tomwayson / gruntfile.js
Last active August 29, 2015 14:11
grunt-amdcheck config
/*global module*/
module.exports = function(grunt) {
grunt.initConfig({
amdcheck: {
dev: {
options: {
// set this to true when you're ready to pull the trigger
removeUnusedDependencies: false, // justpreview changes that will be made in console
@tomwayson
tomwayson / angular-esri-map.js
Last active August 29, 2015 14:14
angular-esri-map base gist
(function(angular) {
'use strict';
angular.module('esri.map', []);
angular.module('esri.map').factory('esriLoader', function ($q) {
return function(moduleName){
var deferred = $q.defer();
require([moduleName], function(module){
@tomwayson
tomwayson / index.html
Last active August 29, 2015 14:21
Cedar AMD Example
<!DOCTYPE html>
<!--[if lt IE 7 ]> <html class="ie6"> <![endif]-->
<!--[if IE 7 ]> <html class="ie7"> <![endif]-->
<!--[if IE 8 ]> <html class="ie8"> <![endif]-->
<!--[if IE 9 ]> <html class="ie9"> <![endif]-->
<!--[if (gt IE 9)|!(IE)]><!--> <html class="not-ie"> <!--<![endif]-->
<head>
<meta charset="utf-8">
@tomwayson
tomwayson / 0_reuse_code.js
Created October 28, 2015 22:50
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@tomwayson
tomwayson / hack.hbs
Last active April 20, 2016 23:41 — forked from dbouwman/hack.hbs
{{page-layout }}
{{#each layoutRow as |row|}}
{{layout-row style=row.style}}
{{cards-layout}}
{{/layout-row}}
{{/each}}
{{/page-layout}}
{{page-layout-editor }}
{{#each layoutRow as |row|}}
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle'
});
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle'
});