- You can store a price in a floating point variable.
- All currencies are subdivided in 1/100th units (like US dollar/cents, euro/eurocents etc.).
- All currencies are subdivided in decimal units (like dinar/fils)
- All currencies currently in circulation are subdivided in decimal units. (to exclude shillings, pennies) (counter-example: MGA)
- All currencies are subdivided. (counter-examples: KRW, COP, JPY... Or subdivisions can be deprecated.)
- Prices can't have more precision than the smaller sub-unit of the currency. (e.g. gas prices)
- For any currency you can have a price of 1. (ZWL)
- Every country has its own currency. (EUR is the best example, but also Franc CFA, etc.)
This file contains hidden or 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
| https://jennamolby.com/how-to-use-cookies-to-capture-url-parameters/ | |
| let YOUR_DOMAIN = "YOUR_DOMAIN.TLD" // ex: scrapingbee.com | |
| function getParameterByName(name) { | |
| name = name.replace(/[\[]/, "\\[").replace(/[\]]/, "\\]"); | |
| var regex = new RegExp("[\\?&]" + name + "=([^&#]*)"), | |
| results = regex.exec(location.search); | |
| return results === null ? "" : decodeURIComponent(results[1].replace(/\+/g, " ")); | |
| } |
This file contains hidden or 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
| [ | |
| { | |
| "name": "Amsterdam Airport Schiphol", | |
| "description": "Free wifi; network name: Airport_Free_WiFi (1 hour time limit) -- British Airways Lounge password: singapore -- Crown Lounge 52 network name: KLM-Lounge - password (only phones need password): (your name)#KLM\n\nHere's how to unlock airport wireless time limits: (https://foxnomad.com/2014/05/22/unlock-unlimited-wifi-airports-time-restrictions/)\n", | |
| "long": 4.7682744, | |
| "lat": 52.3105386 | |
| }, | |
| { | |
| "name": "Frankfurt Airport", | |
| "description": "Free wireless extended throughout entire airport. Network name: Frankfurt Airport, Hotspot Telekom - Name and email required. (Password: Internet)", |
This file contains hidden or 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
| # To allow inline-C in VCL start varnishd with -p vcc_allow_inline_c=on | |
| C{ | |
| #include <sys/time.h> | |
| #include <stdio.h> | |
| static const struct gethdr_s VGC_HDR_REQ_reqstart = { HDR_REQ, "\020X-Request-Start:" }; | |
| }C | |
| sub vcl_recv { | |
| # Add X-Request-Start header for New Relic queue time analytics | |
| C{ |
This file contains hidden or 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
| Copyright 2014 Kickstarter, Inc. | |
| Released under an MIT License. |
This file contains hidden or 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
| polygon = [{:x=>0,:y=>0},{:x=>4,:y=>0},{:x=>2,:y=>2},{:x=>0,:y=>4}] | |
| point0 = {:x=>0,:y=>0} | |
| point1 = {:x=>0.00000000001,:y=>0.00000000001} | |
| point2 = {:x=>1,:y=>1} | |
| point3 = {:x=>2,:y=>2} | |
| point4 = {:x=>1.99999999999,:y=>1.99999999999} | |
| # http://www.visibone.com/inpoly/ | |
| # http://www.ecse.rpi.edu/Homepages/wrf/Research/Short_Notes/pnpoly.html | |
| # |