- Don't use a '$' prefix when naming your services and models, in order to avoid any possible naming collisions.
http://docs.angularjs.org/api/AUTO.$injector
| --- | |
| layout: nil | |
| --- | |
| CACHE MANIFEST | |
| # rev {{ site.time | date_to_xmlschema }} | |
| /index.html | |
| /css/main.css | |
| /css/syntax.css | |
| /favicon.ico | |
| {% for post in site.posts %}{{ post.id }}/ |
| { | |
| "id": 16823722, | |
| "created_at": "2011/06/09 15:44:01 +0000", | |
| "user_id": 355760, | |
| "duration": 328797, | |
| "commentable": true, | |
| "state": "finished", | |
| "sharing": "public", | |
| "tag_list": "Soosh Jumble Fuse Texture Rustle Lyric Deep Soothing Beats", | |
| "permalink": "upcoming-jumble-soosh-soosh-ep", |
| /* 3akai_Infusion.js | |
| * custom build for Sakai | |
| * built with: ant -lib lib/rhino customBuild -Dinclude="reorderer" -Dexclude="jQuery, jQueryUICore, jQueryUIWidgets, jQueryTooltipPlugin" -Djsfilename="3akai_Infusion.js" -DnoMinify="true" | |
| */ | |
| /* | |
| Copyright 2007-2010 University of Cambridge | |
| Copyright 2007-2009 University of Toronto | |
| Copyright 2007-2009 University of California, Berkeley | |
| Copyright 2010-2011 Lucendo Development Ltd. |
| def translate_errors(record) | |
| ret = {} | |
| record.errors.each do |key, message| | |
| keystring = key.to_s | |
| if keystring.include? '_content_type' | |
| keystring.gsub!('_content_type', '') | |
| key = keystring.to_sym | |
| end | |
| # Happens when you try to submit an invalid file (e.g. zip) as a screenshot | |
| if keystring.include? '.' |
| // Follow all people that someone follows | |
| // 1. Go to a following URL - https://twitter.com/denbuzze/following | |
| // 2. Run this script: | |
| (function() { | |
| var interval; | |
| var scrollToBottom = function() { | |
| interval = setInterval(function() { | |
| $(document).scrollTop($(document).height()); | |
| $('.not-following .follow-button').trigger('click'); |
| $('input[name="api_id"]').val('xxxxxx'); | |
| $('input[name="api_key"]').val('xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'); |
http://docs.angularjs.org/api/AUTO.$injector
| // Use on webplatform.org to show prototype of how live code could work. | |
| var el = document.querySelector('a[href="http://docs.webplatform.org/wiki/html"]'); | |
| el.href="http://denbuzze.com/code/webplatform_codepen/"; | |
| el.rel="lightbox"; | |
| el.target="_blank"; | |
| el.innerText="live example" | |
| // Reload the lightbox |
| h1 img { | |
| position:relative; | |
| width: 200px; | |
| -webkit-animation:spin 2.2s infinite; | |
| } | |
| h1 img:before{ | |
| position:absolute; | |
| content:''; |
| var forEach = Array.prototype.forEach; | |
| var div = document.createElement('div'); | |
| div.setAttribute('data-ng-bind', 'link.description') | |
| var cssDescription = 'font-size: 80%;margin: 0 0 3px 16px;line-height: 126%;clear:both;border-bottom: 1px solid #CCC;padding-bottom: 3px;'; | |
| var cssButtons = 'font-size: 80%; margin-left: 16px; line-height: 126%; font-weight: bold'; | |
| var cssButton = 'float:left; padding: 0 5px; border: 1px solid _border_; background-color: _background_; border-radius: 3px; margin-right: 1px'; | |
| var cssButtonColors = { |