Skip to content

Instantly share code, notes, and snippets.

var UI = require('ui');
var Voice = require('ui/voice');
var ajax = require('ajax');
var main = new UI.Window({
fullscreen: true
});
main.on('show', function(e) {
Voice.dictate('start', true, function(e) {
<?php
include "./config.inc";
$result = mysql_query("SELECT * WHERE id=" . $_GET['id']);
if (!$result) {
die('Error: ' . mysql_error());
}
...
@fanatique
fanatique / bucket-policy.json
Created July 24, 2015 10:59
Amazon S3 Bucket Policy for Webhosting
{
"Version":"2012-10-17",
"Statement":[{
"Sid":"PublicReadGetObject",
"Effect":"Allow",
"Principal": "*",
"Action":["s3:GetObject"],
"Resource":["arn:aws:s3:::YOUR-BUCKET-NAME/*"
]
}