Just sharing a vanilla JS tabs system i created for a personal use.
For this demo, the background is from http://www.oxygenna.com/news/free-new-set-of-material-design-backgrounds
Just sharing a vanilla JS tabs system i created for a personal use.
For this demo, the background is from http://www.oxygenna.com/news/free-new-set-of-material-design-backgrounds
require 'bunny' | |
b_con = Bunny.new(host: 'localhost', port: 5672, logging: true) | |
b_con.start | |
b_q = b_con.queue('events') | |
b_ex = b_con.exchange('events', type: :topic) | |
b_ex.publish('message!!', key: 'usermanager.user.login') |
var oldDistricts = require("./old-raw.geo.json"), | |
newDistricts = require("./new-raw.geo.json"), | |
_ = require("underscore"), | |
turf = require("turf"), | |
fs = require("fs"); | |
// Clean up GeoJSON, sort districts in order | |
prep(oldDistricts); | |
prep(newDistricts); |
Just sharing a vanilla JS tabs system i created for a personal use.
For this demo, the background is from http://www.oxygenna.com/news/free-new-set-of-material-design-backgrounds
license: gpl-3.0 |
/* | |
Chrome Developer Tools - Monokai Color Theme | |
Author: Béres Máté Csaba / bjmatt.com / @bjmatt / beres.mate@bjmatt.com | |
----------------------------------------------------------------------------------------------------------- | |
Installation: | |
1. Find your Chrome's user stylesheets directory: |
<html> | |
<head> | |
<title>Event Hub</title> | |
<script src="hub.js"></script> | |
<script> | |
var subscription = hub.subscribe('/go', function(params) { | |
console.log('one', params); | |
}); | |
var subscription2 = hub.subscribe('/go', function(params) { | |
console.log('two', params); |
#!/bin/bash | |
# Install required packages from Homebrew | |
brew tap homebrew/dupes | |
brew install coreutils binutils diffutils ed findutils gawk gnu-indent gnu-sed \ | |
gnu-tar gnu-which gnutls grep gzip screen watch wdiff wget bash gdb gpatch \ | |
m4 make nano file-formula git less openssh python rsync svn unzip vim \ | |
--default-names --with-default-names --with-gettext --override-system-vi \ | |
--override-system-vim --custom-system-icons | |
brew cleanup |
After some fiddling / experimenting with creating a Ruby-on-Rails (with a PostgreSQL database) that is testable locally on a mac, and also deployable remotely on Heroku, I thought it might be wise to jot down some notes just in case I forget how to repeat this again!
(Note: I'm not a pro in Ruby/Rails/Postgres just yet - this post is meant to be for my own "rescuing" purposes. I'd recommend you use the official Heroku Getting started with Ruby / Rails tutorial to begin with. Use this post only for additional info / resolving issues when you get stuck. I've included some handy links below).
# Useful Tutorials and Articles
Some really important tutorials / articles - highly recommend to use these frequently:
On installing Ruby, Rails, rbenv
You can configure esformatter by changing ~/.esformatter
See the esformatter default https://github.com/millermedeiros/esformatter/blob/master/lib/preset/default.json for configuration examples.
You will need the esformatter binary available in your path to run the indent command
npm install -g esformatter