This is a list of advanced JavaScript learning resources from people who responded to this [Tweet][13] and this [Tweet][20].
-
[You Don't Know JS][3]
-
[Frontend Masters courses by Kyle Simpson][12]
-
[@mpjme][6]'s [YouTube videos][5]
| var r=/gif$/,b=document.body,i="",h="innerHTML";b[h].replace(/href="([^"]*?)"/g,function(m,u){if(r.test(u))i+="<img src='"+u+"'>"});b[h]=i; |
| if (typeof (AC) === "undefined") { | |
| AC = {} | |
| } | |
| AC.Detector = { | |
| getAgent: function () { | |
| return navigator.userAgent.toLowerCase() | |
| }, | |
| isMac: function (c) { | |
| var d = c || this.getAgent(); | |
| return !!d.match(/mac/i) |
#A simple Slideshow module wrapped in a Backbone View
Viewable in action in this jsfiddle
| /* | |
| * Property prefix hacks | |
| */ | |
| /* IE6 only - any combination of these characters */ | |
| _ - £ ¬ ¦ | |
| /* IE6/7 only - any combination of these characters */ |
| (function( jQuery ) { | |
| var getScript = jQuery.getScript; | |
| jQuery.getScript = function( resources, callback ) { | |
| var // reference declaration & localization | |
| length = resources.length, | |
| handler = function() { counter++; }, | |
| deferreds = [], |
| $ git clone github:lenary/guides.git | |
| Cloning into guides... | |
| remote: Counting objects: 255, done. | |
| remote: Compressing objects: 100% (216/216), done. | |
| remote: Total 255 (delta 111), reused 163 (delta 35) | |
| Receiving objects: 100% (255/255), 1.49 MiB | 564 KiB/s, done. | |
| Resolving deltas: 100% (111/111), done. | |
| $ cd guides | |
| $ git remote -v |
| function escapeString(string) { | |
| string = string.replace(/\\/g, "\\\\"). | |
| replace(/\n/g, "\\n"). | |
| replace(/\r/g, "\\r"). | |
| replace(/\t/g, "\\t"); | |
| if (string.indexOf("'") < 0) { | |
| return "'" + string + "'"; | |
| } | |
| string = string.replace(/"/g, "\\\""); | |
| return '"' + string + '"'; |
| import re | |
| # Some mobile browsers which look like desktop browsers. | |
| RE_MOBILE = re.compile(r"(iphone|ipod|blackberry|android|palm|windows\s+ce)", re.I) | |
| RE_DESKTOP = re.compile(r"(windows|linux|os\s+[x9]|solaris|bsd)", re.I) | |
| RE_BOT = re.compile(r"(spider|crawl|slurp|bot)") | |
| def is_desktop(user_agent): | |
| """ |