The only cross-platform browser that fits in a Gist!
One line install. Works on Linux, MacOSX and Windows.
$> npm install https://gist.github.com/Zorgatone/880219845674e9a132b8/download
| /* File: regexutils.js */ | |
| /* Language: JavaScript */ | |
| /* http://scriptular.com/ */ | |
| // Match a standard email | |
| var email = /(?:[a-z0-9!#$%&'*+\/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+\/=?^_`{|}~-]+)*|"(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21\x23-\x5b\x5d-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])*")@(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?|\[(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?|[a-z0-9-]*[a-z0-9]:(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21-\x5a\x53-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])+)\])/i | |
| // Match an HTML comment | |
| var htmlComment = /<!--((?:(?!-->).)*)-->/; | |
| // Match the Host and page address from an URL | |
| var urlAndHost = /^(https?):\/\/((?:[A-Z0-9]*\.?)*)((?:\/?[A-Z0-9])*)/i; |
| >>>++++++++ | |
| [ | |
| <++++++++ | |
| [ | |
| <+<+ | |
| >+>-- | |
| ] | |
| >- | |
| ] | |
| <<+++. C 67 |
| # Archives and executables # | |
| *.jar | |
| *.rar | |
| *.tar | |
| *.zip | |
| *.exe | |
| *.dmg | |
| *.tar.gz | |
| *.xz | |
| *.tar.xz |
| #B01AFA | |
| #5B0CC0 | |
| #5BA770 | |
| #EDA77A | |
| #ADA71A |
| >>+++++++++++++ | |
| [ | |
| <+<+ | |
| >>- | |
| ]<---> (store CR & LF) | |
| +++[>++++++++++<-]>++ (storing space) | |
| >+++++++[ | |
| >++++++++++ | |
| <- | |
| ]>++. (H) |
| /** | |
| * Get random array element, directly from the object | |
| */ | |
| Array.prototype.random = Array.prototype.random || function random() { | |
| return this[Math.floor(Math.random() * this.length)]; | |
| }; |
| // Use Gists to store code you would like to remember later on | |
| console.log(window); // log the "window" object to the console |
| using System; | |
| using System.ComponentModel; | |
| using System.Runtime.InteropServices; | |
| using System.Windows.Forms; | |
| namespace Zorgatone.WindowsFormsCueComponents | |
| { | |
| public class CueComboBox : ComboBox | |
| { | |
| #region PInvoke Helpers |