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
// Based on the gist thread from | |
// | |
// @amiantos Lambda S3 Zipper http://amiantos.net/zip-multiple-files-on-aws-s3/ | |
// | |
// and | |
// | |
// @RyanClementsHax TypeScript implementation in the same Gist thread | |
// | |
// Adapted into JavaScript by @tominal |
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 | |
require __DIR__ . '/../vendor/autoload.php'; | |
// This is a public sample test API key. | |
// Don’t submit any personally identifiable information in requests made with this key. | |
// Sign in to see your own test API key embedded in code samples. | |
\Stripe\Stripe::setApiKey('sk_test_key_here'); | |
header('Content-Type: application/json'); |
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
var isZero = false; | |
function btnPriceWindowClick(btnClick) { | |
if (btnClick == 'CLR') { | |
$("#customPrice").data("kendoNumericTextBox").value(0); | |
} | |
else { | |
var priceText = $("#customPrice").val(); | |
var priceLastText = priceText.slice(-2); | |
if (priceText == null) { | |
priceText = '0'; |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>Browser Size Calculator</title> | |
<style> | |
body { | |
margin: 0; | |
padding: 0; | |
background-color: #222; |