Skip to content

Instantly share code, notes, and snippets.

View clintconklin's full-sized avatar

Clint clintconklin

  • Los Angeles, CA
View GitHub Profile

Keybase proof

I hereby claim:

  • I am clintconklin on github.
  • I am clintconklin (https://keybase.io/clintconklin) on keybase.
  • I have a public key whose fingerprint is CC28 882B 4838 ADE3 E352 FB5C 2411 6444 A2D6 270A

To claim this, I am signing this object:

@clintconklin
clintconklin / gist:7904768
Last active December 30, 2015 23:59
Bootstrap 2.3.x popover with a few extra events and a close button.
/*
Extension of bootstrap-popover
- adds a close button
- if a title isn't initially present, the h3.popover-title element is removed; in can, however be readded via data('popoverextended').options.title
- set once post-init: include an addClass option to add extra classes to the popover div
- set once post-init: include a addCss option and pass an object in jquery's css format (e.g. "{ 'width': '550px' }") to have it applied to the popover div
*/
!function ($) {
"use strict"; // jshint ;_;
@clintconklin
clintconklin / gist:7904705
Last active December 30, 2015 23:59
jquery map plugin for retrieving json data and plotting the results in an arbitrary container; for more details, see http://blog.clintconklin.com/plotting-google-map-points-in-a-custom-arbitrary-element/
/*
options:
- datasource (requred): where to fetch the json data from
- bounds (required): the bounds option should come in like so:
{
'lat': {
'from': 36.32,
'to': 39.28
},
@clintconklin
clintconklin / gist:7393526
Last active February 6, 2017 15:12
Optimizing multiple files with grunt via grunt-contrib-requirejs: http://blog.clintconklin.com/optimizing-multiple-javascript-files-with-grunt-and-requirejs/
module.exports = function(grunt) {
var matches = grunt.file.expand('scripts/template-scripts/**/index.js');
var requirejsOptions = {};
if (matches.length > 0) {
for (var x = 0; x < matches.length; x++) {
var path = matches[x].replace(/\/index\.js/, '');
requirejsOptions['task' + x] = {
"options": {
"baseUrl": "./",