This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"code": "", | |
"status": "", | |
"createdDate": "", | |
"confirmedDate": "", | |
"canceledDate": "", | |
"fulfillmentStatus": "", | |
"shippedDate": "", | |
"deliveredDate": "", | |
"paymentInformation": { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'benchmark' | |
iterations = 100_000 | |
store = {'name' => 'Store name', 'host' => 'www.store-url.com'} | |
Benchmark.bm do |bm| | |
bm.report do | |
iterations.times do | |
"".tap do |code| |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Aceguá ; Sul ; RS | |
Água Santa ; Norte ; RS | |
Agudo ; Centro ; RS | |
Ajuricaba ; Norte ; RS | |
Alecrim ; Oeste ; RS | |
Alegrete ; Sul ; RS | |
Alegria ; Norte ; RS | |
Almirante Tamandaré do Sul ; Norte ; RS | |
Alpestre ; Norte ; RS | |
Alto Alegre ; Centro ; RS |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Usage: | |
To validate area code and number: | |
br_mobile.validate('11', '912345436') | |
br_mobile.validate('54', '12345436') | |
return true or false | |
To check if area code require 9 digits | |
br_mobile.require_ninth_digit('11') | |
return true, false or undefined (if area code is invalid) | |
To get the required length of phone number (without area code) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" | |
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> | |
<head> | |
<title>How to add labels to a flot graph</title> | |
<meta http-equiv="content-type" content="text/html;charset=utf-8" /> | |
<style> | |
body{ | |
padding: 1em; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* IssuuClient hooks into Issuu's API | |
* | |
* example: | |
* include 'IssuuClient.php'; | |
* $issuu = new IssuuClient(pubKey, privKey, apiAdr); | |
* $issuu->openAction('issuu.document.url_upload'); | |
* $issuu->slurpUrl = 'pdfurl.pdf'; | |
* $issuu->executeAction(); |