Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
| if(/^([a-z]([a-z]|\d|\+|-|\.)*):(\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]) | |
| |(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?((\[(|(v[\da-f]{1,}\.(([a-z]|\d|-|\.|_|~)|[!\$&'\(\)\*\+,;=]| | |
| :)+))\])|((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\ | |
| d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900- | |
| \uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=])*)(:\d*)?)(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF | |
| \uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*|(\/((([a-z]|\d|-|\.|_|~|[\u00A0- | |
| \uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0- | |
| \uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)|((([a-z]|\d|-|\.|_|~|[ | |
| \u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~ | |
| |[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)|((([a-z]|\d|-|\. |
| We make Arch for ourselves, and for the ones that like it like we do. | |
| Whether we have a million users or one hundred users – | |
| we will keep making it the distro we like. | |
| Deal with it. | |
| - Brain0 |
| @implementation UITextView (RSExtras) | |
| static BOOL stringCharacterIsAllowedAsPartOfLink(NSString *s) { | |
| /*[s length] is assumed to be 0 or 1. s may be nil. | |
| Totally not a strict check.*/ | |
| if (s == nil || [s length] < 1) | |
| return NO; |
Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
git add HISTORY.md
git commit -m "Changelog for upcoming release 0.1.1."
bumpversion patch
| /* | |
| fmod for Javascript, will work with any ECMA-262 implementation. | |
| If you need a precision higher than 8, please use another implementation of fmod. | |
| 1.05 % 0.05 | |
| => 0.04999999999999999 | |
| Math.fmod(1.05, 0.05) | |
| => 0 |
| # coding=UTF-8 | |
| from __future__ import division | |
| import nltk | |
| from collections import Counter | |
| # This is a simple tool for adding automatic hashtags into an article title | |
| # Created by Shlomi Babluki | |
| # Sep, 2013 |
| export PATH | |
| cdls() { | |
| if [ -z "$1" ]; then | |
| cd && ls -G | |
| else | |
| cd "$*" && ls -G | |
| fi | |
| } | |
| alias cd=cdls | |
| alias pearp='/Applications/MAMP/bin/php/php5.4.4/bin/pear' |
| """ | |
| In [56]: a = [1,[2,3,4], 4,5,6, [7,8], 9, 10] | |
| In [57]: normalize = lambda x : x if type(x) == list else [x] | |
| In [58]: list(itertools.chain(*map(normalize, a))) | |
| Out[58]: [1, 2, 3, 4, 4, 5, 6, 7, 8, 9, 10] | |
| In [59]: a |