This gist's comment stream is a collection of webdev apps for OS X. Feel free to add links to apps you like, just make sure you add some context to what it does — either from the creator's website or your own thoughts.
— Erik
| @echo off | |
| SET CMDER_ROOT=%~dp0 | |
| reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\Background\shell\Cmder" /ve /d "Cmder Here" /f | |
| reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\Background\shell\Cmder" /v "Icon" /d "\"%CMDER_ROOT%cmder.exe\"" /f | |
| reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\Background\shell\Cmder" /v "Extended" /f | |
| reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\Background\shell\Cmder\command" /ve /d "\"%CMDER_ROOT%cmder.exe\" \"%%V\"" /f | |
| pause |
| /* =========================================================== | |
| * bootstrap-tooltip.js v2.2.2 | |
| * http://twitter.github.com/bootstrap/javascript.html#tooltips | |
| * Inspired by the original jQuery.tipsy by Jason Frame | |
| * =========================================================== | |
| * Copyright 2012 Twitter, Inc. | |
| * | |
| * Licensed under the Apache License, Version 2.0 (the "License"); | |
| * you may not use this file except in compliance with the License. | |
| * You may obtain a copy of the License at |
| [ | |
| // Working in some additional Vim or Vim-like bindings; using 'g' as <leader> | |
| // because it's homerow and unused for most commands: | |
| { "keys": ["g", "t"], "command": "next_view", "context": [{"key": "setting.command_mode"}] }, | |
| { "keys": ["g", "r"], "command": "prev_view", "context": [{"key": "setting.command_mode"}] }, | |
| { "keys": ["g", "n"], "command": "focus_side_bar", "context": [{"key": "setting.command_mode"}] }, | |
| { "keys": ["g", "w"], "command": "focus_group", "args": { "group": 0 } }, | |
| { "keys": ["g", "m"], "command": "find_under_expand", "context": [{"key": "setting.command_mode"}] }, | |
| { "keys": ["g", "s"], "command": "sftp_browse_server", "context": [{"key": "setting.command_mode"}] }, |
| (function (root, factory) { | |
| if (typeof define === 'function' && define.amd) { | |
| // AMD. Register as an anonymous module. | |
| define(['bean', 'underscore'], function (bean, _) { | |
| // Also create a global in case some scripts | |
| // that are loaded still are looking for | |
| // a global even when an AMD loader is in use. | |
| return (root.Flotr2 = factory(bean, _)); | |
| }); | |
| } else { |
| /** | |
| * 理解RequireJS中的模块 | |
| * ================================ | |
| * 重点在于介绍RequireJS模块定义/运作/使用的基本原理, 不考虑依赖管理即其他方面的问题. | |
| * 看看define和require到底做了些什么. | |
| * | |
| * @author Sun | |
| * @version 2013-12-27 | |
| */ |
| { | |
| "alignment_chars" : ["=", ":"] | |
| } |
| /** | |
| * 分析豆瓣阅读查看电子书的逻辑 | |
| * | |
| * 主要用到的JavaScript为 | |
| * 1. OzJS(管理模块) | |
| * 2. jQuery(base库) | |
| * 3. Backbone.js(web application框架) | |
| * | |
| * 过程分析 | |
| * -------- |
| <!doctype html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8"> | |
| <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> | |
| <title>HTML5 camera test</title> | |
| <meta name="viewport" content="width=device-width,initial-scale=1"> | |
| </head> | |
| <body> | |
| <form> |