Skip to content

Instantly share code, notes, and snippets.

View chyld's full-sized avatar
:electron:
import numpy

Chyld Medford chyld

:electron:
import numpy
View GitHub Profile
doctype html
html(lang='en')
head
meta(charset='utf-8')
title JS++
link(rel='stylesheet', href='./css/app.css')
body
h1 JS++
script(src='./js/vendor/traceur.js')
function initMap(lat, lng, zoom){
var mapOptions = {center: new google.maps.LatLng(lat, lng), zoom: zoom, mapTypeId: google.maps.MapTypeId.ROADMAP};
db.map = new google.maps.Map(document.getElementById('map-canvas'), mapOptions);
}
var geocoder = new google.maps.Geocoder();
geocoder.geocode({address: name}, function(results, status){
var location = {};
location.name = results[0].formatted_address;
location.coordinates = results[0].geometry.location;
});
function htmlAddMarker(location){
var latLng = new google.maps.LatLng(location.coordinates.lb, location.coordinates.mb);
var marker = new google.maps.Marker({map: db.map, position: latLng, title: location.name});
}
txtblk='\[\e[0;30m\]' # Black
txtred='\[\e[0;31m\]' # Red
txtgrn='\[\e[0;32m\]' # Green
txtylw='\[\e[0;33m\]' # Yellow
txtblu='\[\e[0;34m\]' # Blue
txtpur='\[\e[0;35m\]' # Purple
txtcyn='\[\e[0;36m\]' # Cyan
txtwht='\[\e[0;37m\]' # White
txtrst='\[\e[0m\]' # Text Reset
txtblk='\[\e[0;30m\]' # Black
txtred='\[\e[0;31m\]' # Red
txtgrn='\[\e[0;32m\]' # Green
txtylw='\[\e[0;33m\]' # Yellow
txtblu='\[\e[0;34m\]' # Blue
txtpur='\[\e[0;35m\]' # Purple
txtcyn='\[\e[0;36m\]' # Cyan
txtwht='\[\e[0;37m\]' # White
txtrst='\[\e[0m\]' # Text Reset
var httpProxy = require('http-proxy')
var proxy = httpProxy.createProxy();
var options = {
'chyld.io': 'http://localhost:3001',
'library.chyld.io': 'http://localhost:3002'
}
require('http').createServer(function(req, res) {
/* jshint unused:false, camelcase:false */
/* global AmCharts:true, google:true */
(function(){
'use strict';
$(document).ready(init);
let map;
let charts = {};
@chyld
chyld / oauth-url
Last active August 29, 2015 14:05
OAuth Provider URLs
https://github.com/settings/applications
https://console.developers.google.com/project
https://apps.twitter.com/app
- if(flash.error)
.alert.alert-danger.alert-dismissible(role='alert')
button.close(type="button", data-dismiss="alert")
span(aria-hidden="true") ×
span.sr-only Close
strong Warning!  
span= flash.error
- if(flash.notice)
.alert.alert-info.alert-dismissible(role='alert')
button.close(type="button", data-dismiss="alert")