\[(?:\[(?:(?:-|)\d+?(?:(?:\.\d+?|))\,(?:(?:-|)\d+?(?:(?:\.\d+?|))))\](?:\,(?!\])|))+?\]
[[-80.190262,25.774252],[-66.118292,18.466465],[-64.75737,32.321384],[-80.190262,25.774252]]
| window.dammitIE = do -> | |
| is_internet_explorer = -> | |
| window.navigator.appName is "Microsoft Internet Explorer" | |
| get_internet_explorer_version = -> | |
| matches = new RegExp(" MSIE ([0-9].[0-9]);").exec(window.navigator.userAgent) | |
| return parseInt(matches[1].replace(".0", "")) if matches? and matches.length > 1 | |
| true |
| plainChars = (str) -> | |
| if not str? then return throw(new Error("plainChars needs a param")) | |
| specialChars = "ąàáäâãåæćęèéëêìíïîłńòóöôõøśùúüûñçżź" | |
| plain = "aaaaaaaaceeeeeiiiilnoooooosuuuunczz" | |
| regex = new RegExp '[' + specialChars + ']', 'g' | |
| str += "" | |
| str.replace regex, (char) -> plain.charAt (specialChars.indexOf char) |
| O táxi que tomei era velho pra chuchu e cheirava como se alguém tivesse acabado de vomitar ali mesmo. Sempre que tomo um táxi de madrugada, tem que estar fedendo a vômito. E o pior é que a rua estava um bocado silenciosa e deserta, embora fosse uma noite de sábado. Não se via quase ninguém. Aqui e ali tinha um homem e uma mulher atravessando a rua, abraçados pela cintura e tudo, ou um grupo de imbecis com as namoradas, todos rindo como umas hienas de qualquer coisa que, aposto, não tinha a menor graça. Nova York é terrível quando alguém ri de noite na rua; pode-se ouvir a gargalhada a quilômetros de distância. É o tipo do troço que faz a gente se sentir só e deprimido. Continuava com vontade de ir para casa e fazer um pouco de hora com a Phoebe. Mas afinal, depois de algum tempo no táxi, eu e o chofer começamos a conversar. O nome dele era Horwitz. Era um sujeito muito mais simpático do que o outro motorista com quem eu tinha andado antes. Seja como for, pensei que ele talvez soubesse alguma coisa sobre os pa |
| { | |
| "camel_case_classes": true, | |
| "indentation": 2, | |
| "line_endings": "linux", | |
| "no_empty_param_list": true, | |
| "no_implicit_braces": true, | |
| "no_stand_alone_at": true, | |
| "no_tabs": true, | |
| "no_trailing_semicolons": true, | |
| "no_trailing_whitespace": true, |
| #!/bin/sh | |
| killthis() { | |
| kill -9 `ps aux | grep $1 | awk '{print $2}'` | |
| } |
| <h1>Bar code scanner and credit card reader</h1> | |
| <p id="barcode" style="display:none;"><strong>Bar code:</strong> <span></span></p> | |
| <div id="card" style="display:none;"> | |
| <h3>Card</h3> | |
| <p><strong>Number</strong></p> | |
| <p id="card-number"></p> | |
| <p><strong>Due Date</strong></p> |
| private bool ValidateRUC(string ruc) | |
| { | |
| if (Regex.IsMatch(ruc, "^[0-9]{11}$|^[0-9]{8}$")) | |
| { | |
| //converte o array de caracteres em um array de inteiros | |
| int[] intArray = new int[ruc.Length]; | |
| for (int i = 0; i < ruc.Length; i++) | |
| { | |
| intArray[i] = Convert.ToInt32(ruc[i].ToString()); | |
| } |
| import React from 'react'; | |
| import SVGIcon from 'components/utils/SVGIcon'; | |
| import myIcon from 'assets/icons/myicon.svg'; | |
| class MyComponent extends React.Component { | |
| render() { | |
| return ( | |
| <div> | |
| <SVGIcon svg={myIcon} width={18} height={18} fill="#444"/> | |
| </div> |
| #!/bin/bash | |
| echo 'Installing node latest stable' | |
| echo 'export PATH=$HOME/local/bin:$PATH' >> ~/.bashrc | |
| . ~/.bashrc | |
| mkdir ~/local | |
| mkdir ~/node-latest-install | |
| cd ~/node-latest-install | |
| curl http://nodejs.org/dist/node-latest.tar.gz | tar xz --strip-components=1 | |
| ./configure --prefix=$HOME/local |