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
| #!/usr/bin/python | |
| #-*- coding: utf-8 -*- | |
| ''' | |
| http://segmentfault.com/q/1010000000174213 | |
| Python验证用户输入IP的合法性,有什么好方法吗? | |
| 如:<input type="text" name="ip" id="ip" /> 在text里表单输入的字符串 | |
| ''' |
| #!/usr/bin/env python | |
| """Simple HTTP Server With Upload. | |
| This module builds on BaseHTTPServer by implementing the standard GET | |
| and HEAD requests in a fairly straightforward manner. | |
| """ |
| #!/usr/bin/ruby | |
| ############# Day 1 ############# | |
| # Print the string “Hello, world.” | |
| puts 'Hello, world' | |
| # For the string “Hello, Ruby”, find the index of the word“Ruby”. | |
| puts 'Hello, Ruby'.index('Ruby') |