Skip to content

Instantly share code, notes, and snippets.

View AlanSimpsonMe's full-sized avatar

Alan Simpson AlanSimpsonMe

View GitHub Profile
@AlanSimpsonMe
AlanSimpsonMe / hideAngular2
Created July 18, 2017 13:47
Hide .map.js at all in VS Code Angular projects
"files.exclude": {
"**/.git": true,
"**/.DS_Store": true,
"**/*.js" : {
"when": "$(basename).ts"
},
"**/*.js.map": {
"when": "$(basename)"
}
}
@AlanSimpsonMe
AlanSimpsonMe / collapsible.html
Created July 22, 2017 16:31
Collapsible panels
<!DOCTYPE html>
<html>
<head>
<title>Collapsible Panel</title>
<!-- Use this code however you like. I am at https://AlanSimpson.me- ->
<!-- Load jQuery library (simplifies the JavaScript coding later)-->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
<script>
//jQuery code.
$(document).ready(function () {
<!DOCTYPE html>
<html>
<head>
<!-- Feel free to use and modify however you like http://AlanSimpson.me -->
<title>CSS Dot Leaders</title>
<style>
ul.dotleaders {
list-style: none;
padding: 0;
/* This width can be whatever you like */
@AlanSimpsonMe
AlanSimpsonMe / CrazySpinny.css
Created July 29, 2017 14:28
CSS code to make image under mouse pointer go crazy,
/* Put class="crazy" in an img to to which you want to apply this CSS */
img.crazy {
display: block;
margin: 10em auto;
/* That code is really just the opposite of the hover code. */
transform: scale(1) rotate(720deg);
/* How long transitions take */
transition: all 1s;
}
<!-- YouTube video link -->
[![ALT TEXT](http://img.youtube.com/vi/YOUTUBEID/0.jpg)](http://www.youtube.com/watch?v=YOUTUBEID "TOOLTIP TEXT")
@AlanSimpsonMe
AlanSimpsonMe / awsBucketPolicy.txt
Created August 4, 2017 20:14
Amazon Web Services Bucket Policy for Static Website 0 replace XXXX with your info
{
"Version":"2012-10-17",
"Statement":[{
"Sid":"PublicReadForGetBucketObjects",
"Effect":"Allow",
"Principal": "*",
"Action":["s3:GetObject"],
"Resource":["arn:aws:s3:::XXXXXXXX/*"
]
}
@AlanSimpsonMe
AlanSimpsonMe / Equal_Height_Columns.html
Created September 1, 2017 12:51
Simple equal-height columns
<!DOCTYPE html>
<html>
<head>
<title>Equal-Height Columns Example</title>
<style>
.columns {
display: table;
width: 90%;
border: solid 1px gray;
@AlanSimpsonMe
AlanSimpsonMe / CSS_Thumbnail_Gallery
Created September 11, 2017 14:04
Super simple CSS thumbnail gallery, no JavaScript.
<!DOCTYPE html>
<html>
<head>
<title>My Layout</title>
<style type="text/css">
#header {
background-color: #fe9900;
color: white;
}
@AlanSimpsonMe
AlanSimpsonMe / L07Layout.html
Created December 12, 2017 14:31
Intermediate CSS3 and HTML5 Lesson 7 html code
<!DOCTYPE html>
<html>
<head>
<title>MyTemplate2</title>
<!-- Link to external style sheet -->
<link href="styles.css" rel="stylesheet" type="text/css" />
</head>
<body>
<script>
//Make older browsers aware of new HTML5 layout tags