A very basic regex-based Markdown parser. Supports the
following elements (and can be extended via Slimdown::add_rule()):
- Headers
- Links
- Bold
| var soundex = function (s) { | |
| var a = s.toLowerCase().split(''), | |
| f = a.shift(), | |
| r = '', | |
| codes = { | |
| a: '', e: '', i: '', o: '', u: '', | |
| b: 1, f: 1, p: 1, v: 1, | |
| c: 2, g: 2, j: 2, k: 2, q: 2, s: 2, x: 2, z: 2, | |
| d: 3, t: 3, | |
| l: 4, |
| ' Q B a s i c G o r i l l a s | |
| ' | |
| ' Copyright (C) IBM Corporation 1991 | |
| ' | |
| ' Your mission is to hit your opponent with the exploding banana |
| /** | |
| * Implementação do algorítimo SoundEx em Javascript. | |
| * @author João Batista Neto | |
| * | |
| * SoundEX é um algorítimo fonético para indexação de nomes pelo som segundo | |
| * sua pronúncia. O algorítimo foi desenvolvido por Robert C. Russell e | |
| * Margaret K. Odell e patenteado em 1918 e 1922. | |
| * {@link http://en.wikipedia.org/wiki/Soundex} | |
| * | |
| * @return {String} |
A very basic regex-based Markdown parser. Supports the
following elements (and can be extended via Slimdown::add_rule()):
| <!-- Fonte: mussumipsum.com --> | |
| <snippet> | |
| <content><![CDATA[ | |
| Mussum ipsum cacilds, vidis litro abertis. Consetis adipiscings elitis. Pra lá , depois divoltis porris, paradis. Paisis, filhis, espiritis santis. Mé faiz elementum girarzis, nisi eros vermeio, in elementis mé pra quem é amistosis quis leo. Manduma pindureta quium dia nois paga. Sapien in monti palavris qui num significa nadis i pareci latim. Interessantiss quisso pudia ce receita de bolis, mais bolis eu num gostis. | |
| Suco de cevadiss, é um leite divinis, qui tem lupuliz, matis, aguis e fermentis. Interagi no mé, cursus quis, vehicula ac nisi. Aenean vel dui dui. Nullam leo erat, aliquet quis tempus a, posuere ut mi. Ut scelerisque neque et turpis posuere pulvinar pellentesque nibh ullamcorper. Pharetra in mattis molestie, volutpat elementum justo. Aenean ut ante turpis. Pellentesque laoreet mé vel lectus scelerisque interdum cursus velit auctor. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam ac mauris lectus, non scelerisque augu |
Have you ever wanted to get a specific data from another website but there's no API available for it? That's where Web Scraping comes in, if the data is not made available by the website we can just scrape it from the website itself.
But before we dive in let us first define what web scraping is. According to Wikipedia:
{% blockquote %} Web scraping (web harvesting or web data extraction) is a computer software technique of extracting information from websites. Usually, such software programs simulate human exploration of the World Wide Web by either implementing low-level Hypertext Transfer Protocol (HTTP), or embedding a fully-fledged web browser, such as Internet Explorer or Mozilla Firefox. {% endblockquote %}
| find app/src -name "*.js" -exec sh -c 'mv "$0" "${0%.js}.ts"' {} \; |
| // http://stackoverflow.com/questions/11616630/json-stringify-avoid-typeerror-converting-circular-structure-to-json/11616993#11616993 | |
| var o = {}; | |
| o.o = o; | |
| var cache = []; | |
| JSON.stringify(o, function(key, value) { | |
| if (typeof value === 'object' && value !== null) { | |
| if (cache.indexOf(value) !== -1) { | |
| // Circular reference found, discard key | |
| return; |
When hosting our web applications, we often have one public IP
address (i.e., an IP address visible to the outside world)
using which we want to host multiple web apps. For example, one
may wants to host three different web apps respectively for
example1.com, example2.com, and example1.com/images on
the same machine using a single IP address.
How can we do that? Well, the good news is Internet browsers