Skip to content

Instantly share code, notes, and snippets.

View hjoseph96's full-sized avatar

Herbert Joseph hjoseph96

  • Highland Park, NJ
View GitHub Profile
@hjoseph96
hjoseph96 / Pure CSS3 breadcrumb navigation.markdown
Created May 11, 2016 13:09
Pure CSS3 breadcrumb navigation
Notifications & At-Mentions
====
### Relevant Tech
1. [message_bus](https://github.com/SamSaffron/message_bus)
### Tasks
1. GoRails [1](https://gorails.com/episodes/in-app-navbar-notifications?autoplay=1), [2](https://gorails.com/episodes/at-mentions?autoplay=1)
Messaging
/* required styles */
.leaflet-map-pane,
.leaflet-tile,
.leaflet-marker-icon,
.leaflet-marker-shadow,
.leaflet-tile-pane,
.leaflet-tile-container,
.leaflet-overlay-pane,
.leaflet-shadow-pane,
/*
Leaflet, a JavaScript library for mobile-friendly interactive maps. http://leafletjs.com
(c) 2010-2013, Vladimir Agafonkin
(c) 2010-2011, CloudMade
*/
!function(t,e,i){var n=t.L,o={};o.version="0.7.3","object"==typeof module&&"object"==typeof module.exports?module.exports=o:"function"==typeof define&&define.amd&&define(o),o.noConflict=function(){return t.L=n,this},t.L=o,o.Util={extend:function(t){var e,i,n,o,s=Array.prototype.slice.call(arguments,1);for(i=0,n=s.length;n>i;i++){o=s[i]||{};for(e in o)o.hasOwnProperty(e)&&(t[e]=o[e])}return t},bind:function(t,e){var i=arguments.length>2?Array.prototype.slice.call(arguments,2):null;return function(){return t.apply(e,i||arguments)}},stamp:function(){var t=0,e="_leaflet_id";return function(i){return i[e]=i[e]||++t,i[e]}}(),invokeEach:function(t,e,i){var n,o;if("object"==typeof t){o=Array.prototype.slice.call(arguments,3);for(n in t)e.apply(i,[n,t[n]].concat(o));return!0}return!1},limitExecByInterval:function(t,e,i){var n,o;return function s(){var a=arguments;
no elegance, practicality
def self.practical
where("name LIKE ?", "%Practical%");
end
# in controller
@useful_items = Item.practical
@hjoseph96
hjoseph96 / RESTful_notes
Created November 10, 2014 21:40
RESTful Notes
POST -------> C reate
GET -------> R ead
PUT/PATCH -------> U pdate
DELETE -------> D estroy
@hjoseph96
hjoseph96 / mvc_notes
Created November 10, 2014 20:42
MVC Lecture Notes
Model * = Definition
View
Controller
Client -------> server |
request |
|
Client <------- server ▼
response