Skip to content

Instantly share code, notes, and snippets.

@micmath
micmath / index.html
Last active January 24, 2021 18:49
Pick-one form items - source https://jsbin.com/neyitin
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
<style id="jsbin-css">
.choice-set {
padding-top: 8px;
height:120px;

Is it installed already?

You will need Python and pip.

$ python --version
  Python 2.7.10
$ which aws
  /Users/michael/Library/Python/2.7/bin/aws
$ aws --version

Make a Bucket

Use the aws s3 mb command.

$ aws s3 mb s3://mycoolbucket --region eu-west-1
  make_bucket: mycoolbucket
$ aws configure --profile mycoolproject
$ aws configure list --profile mycoolproject
      Name                    Value             Type    Location
      ----                    -----             ----    --------
   profile                  mycoolproject     manual    --profile
access_key ****************FAKE shared-credentials-file 
var simpleCryptoJs = require("simple-crypto-js").default;
var secret = "FAKE-EXAMPLE-5rV4e!Wvso8%Yhbsq&*j639$7kys";
var simpleCrypto = new simpleCryptoJs(secret);
var plainText = "Hello Squirrel!";
var cipherText = simpleCrypto.encrypt(plainText);
var decipherText = simpleCrypto.decrypt(cipherText);
console.log("Plain Text : " + plainText);
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
<style id="jsbin-css">
* { box-sizing: border-box; }
body {
margin: 0;
@micmath
micmath / index.html
Last active August 29, 2015 14:24
sqxAe
<div class="article cf">
<div class="primary content">
<h2>Some Stuff</h2>
<p>Some content. Blah blah blah blah blah blah blah blah blah blah blah blah blah blah.</p>
</div>
<div class="secondary content">
<img class="responsive" src="http://placehold.it/350x150">
</div>
</div>
/** @class */
function A () {
}
/** Document me
@abstract
*/
A.prototype.m = function () {}
/**
<abbr>BBC</abbr>
<div>
<h2>Identity</h2>
<a href="id">ID</a>
</div>
<div>
<h2>BBC Sites</h2>
<ul>
<li><a href="#">Gnarl</a></li>
<li><a href="#">Trumpet</a></li>