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
!function(e,t){var n=e.createElement("style");if(e.getElementsByTagName("head")[0].appendChild(n),n.styleSheet)n.styleSheet.disabled||(n.styleSheet.cssText=t);else try{n.innerHTML=t}catch(o){n.innerText=t}}(document,".padding_zero {\n padding: 0;\n}\n\n.ionic_datepicker_popup .font_bold {\n font-weight: bold;\n}\n.ionic_datepicker_popup .padding_top_zero {\n padding-top: 0;\n}\n.ionic_datepicker_popup .padding_left_5px {\n padding-left: 5px;\n}\n.ionic_datepicker_popup .padding_right_5px {\n padding-right: 5px;\n}\n.ionic_datepicker_popup .calendar_grid {\n height: 215px;\n}\n.ionic_datepicker_popup .today {\n border: 1px solid #009688;\n border-radius: 50%;\n}\n.ionic_datepicker_popup .selected_date {\n background-color: #009688;\n border-radius: 50%;\n color: #fff;\n font-weight: bold;\n}\n.ionic_datepicker_popup .popup-head {\n background-color: #009688;\n display: none;\n}\n.ionic_datepicker_popup .popup-head .popup-title {\n color: #ffffff;\n}\n.ionic_datepicker_popup .popup-head .popup-su |
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
func asanaColor(color string) string { | |
colors := map[string]string{ | |
"none": "#f6f8f9", | |
"dark-red": "#e8384f", | |
"dark-orange": "#fd612c", | |
"light-orange": "#fd9a00", | |
"dark-brown": "#eec300", | |
"light-green": "#a4cf30", | |
"dark-green": "#62d26f", | |
"light-teal": "#37c5ab", |
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
const res = await fetch('https://www.googleapis.com/youtube/v3/videos?part=statistics&id=VIDEO_ID&key=KEY') | |
const data = await res.json() | |
// Retrieve new data | |
const count = Number(data.items[0].statistics.viewCount) | |
// Format up to milions | |
const countFormatted = (count / 1000 / 1000).toFixed(2) | |
// Calculate stats |
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
[ | |
{ | |
"country": { | |
"de": "Italien", | |
"ar": "إيطاليا", | |
"default": "Italia", | |
"ru": "Италия", | |
"pt": "Itália", | |
"ja": "イタリア", | |
"en": "Italy", |
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
<?php | |
// $request comes from your Controller method, but you can adjust with whatever framework you use | |
$signature = $request->header(ZendeskSupport::WEBHOOK_SIGNATURE_HEADER), | |
$timestamp = $request->header(ZendeskSupport::WEBHOOK_SIGNATURE_TIMESTAMP_HEADER), | |
$rawBody = $request->getContent(); | |
$computedSignature = base64_encode(hash_hmac( | |
'sha256', |
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
[ | |
{"day": 1, "title": "Benvenuti in Mongolia", "description": "La nostra avventura inizia nella capitale Mongola: dopo le formalità di ingresso, siamo pronti per immergerci nella cultura locale, visiteremo la piazza centrale ed il museo di Gengis Khan, poi assisteremo ad uno spettacolo di arte tradizionale prima della nostra cena di benvenuto! I voli aerei da/per l'Italia non sono inclusi nel pacchetto, così potrai decidere da quale aeroporto partire, a che ora e con la compagnia aerea che preferisci... Questo per darti la massima libertà di scelta! Check-in in hotel a Ulan Bator, ecco qui come funziona il ritrovo! Transfer dall'aeroporto alla città, pranzo, cena di benevenuto e spettacolo folkloristico inclusi nella quota"}, | |
{"day": 2, "title": "A stretto contatto con i cacciatori di aquile", "description": "Iniziamo da subito ad immergerci nella vera essenza mongola! Con un volo interno raggiungiamo la città di Ulgii, la più occidentale del paese, e ci dirigiamo subito verso la famiglia kazaka che ci os |