What this will cover
- Host a static website at S3
- Redirect
www.website.com
towebsite.com
- Website can be an SPA (requiring all requests to return
index.html
) - Free AWS SSL certs
- Deployment with CDN invalidation
<!doctype html> | |
<html lang="en"> | |
<body> | |
<script src="https://www.gstatic.com/firebasejs/6.0.4/firebase-app.js"></script> | |
<script src="https://www.gstatic.com/firebasejs/6.0.4/firebase-database.js"></script> | |
<script> | |
// TODO: Replace the following with your app's Firebase project configuration | |
var firebaseConfig = { |
/* | |
From: https://forum.juce.com/t/script-to-convert-aupreset-to-fxp/7919 | |
Author: https://forum.juce.com/u/yairadix | |
I made a small Python script to convert .aupreset files to .fxp format (VST presets). | |
Hopefully others may find it useful too. | |
Our use case for it was creating our factory presets for SurferEQ once in Logic and then converting them to other formats. | |
This script could be easily adapted to convert the other way around. (it uses the Construct library to describe the fxb format declaratively for both parsing and building) | |
*/ |
$("a[rel=external], a[href^='http:']:not([href*='" + window.location.host + "']), a[href^='https:']:not([href*='" + window.location.host + "'])").each(function(){ | |
$(this).attr("target", "_blank"); | |
}); |
function is_touch_device() { | |
return !!('ontouchstart' in window) // works on most browsers | |
|| !!('onmsgesturechange' in window); // works on ie10 (apparently not) | |
}; |
/** | |
* BEHAVIOR: SLIDES | |
*/ | |
define(['jquery', 'libs/jquery.flexslider-min'], function($) { | |
InitSlides = { | |
container: null, | |
/* | |
PROJECT | |
LiamR | |
Usage: | |
<body data-controller="users" data-action="show"> | |
<div data-behavior="init_something"> |
@mixin vendor($property, $value...){ | |
-webkit-#{$property}:$value; | |
-moz-#{$property}:$value; | |
-ms-#{$property}:$value; | |
-o-#{$property}:$value; | |
#{$property}:$value; | |
} |
<?php | |
public function signup_cm($email, $name){ | |
$code = 'xxxx-xxxx'; | |
// The POST URL and parameters | |
$request = 'http://xxxx.createsend.com/t/j/s/xxxx/?callback=my_callback'; | |
$postargs = ''; | |
$postargs .= 'cm-name=' . $name . '&cm-' . $code . '=' . $email; | |
// Get the curl session object |
/*------------------------------------------------------------ | |
Start Main | |
Created by: Liam R | |
Contact: hello-at-liamr.com | |
Copyright 2013 | |
--------------------------------------------------------------*/ |