Skip to content

Instantly share code, notes, and snippets.

View SamEureka's full-sized avatar
🏚️
Working from home - CA

Sam Dennon SamEureka

🏚️
Working from home - CA
View GitHub Profile
@SamEureka
SamEureka / index.html
Last active August 29, 2015 14:27 — forked from anonymous/index.html
Media Query Exercise // source http://jsbin.com/tuqenu
<!DOCTYPE html>
<html>
<head>
<title>Media Query Exercise</title>
<style id="jsbin-css">
@media (min-width: 25rem) {
.media-container {
color: red;
}
@SamEureka
SamEureka / index.html
Last active August 29, 2015 14:27 — forked from anonymous/index.html
Floats and Clearfixes Assignment // source http://jsbin.com/lilawu
<!DOCTYPE html>
<html>
<head>
<title>Floats and Clearfixes Assignment</title>
<style id="jsbin-css">
*, *:before, *:after {
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
box-sizing: border-box;
}
@SamEureka
SamEureka / index.html
Last active September 8, 2015 18:09 — forked from anonymous/index.html
Practice Refactoring to jQuery Practice Refactoring to jQuery // source https://jsbin.com/mawase
<!DOCTYPE html>
<html>
<head>
<meta name="description" content="Practice Refactoring to jQuery">
<script src="http://code.jquery.com/jquery-2.1.1.min.js"></script>
<meta charset="utf-8">
<title>Practice Refactoring to jQuery</title>
<style id="jsbin-css">
#refrigerator {
background-color: #FFFFFF;
@SamEureka
SamEureka / index.html
Last active September 29, 2015 18:20
Cog
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Cog</title>
<!-- Bootstrap CDN CSS-->
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css" rel="stylesheet" integrity="sha256-MfvZlkHCEqatNoGiOXveE8FIwMzZg4W85qfrfIFBfYc= sha512-dTfge/zgoMYpP7QbHy4gWMEGsbsdZeCXz7irItjcC3sPUFtf0kuFbDz/ixG7ArTxmDjLXDmezHubeNikyKGVyQ==" crossorigin="anonymous">
<!-- Icons and stuff -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css">
</head>
@SamEureka
SamEureka / app.css
Last active September 30, 2015 01:47
.jumbotron.vertical-center {
margin-bottom: 0;
}
.vertical-center {
min-height: 100%;
min-height: 100vh;
display: -webkit-box;
display: -moz-box;
display: -ms-flexbox;
@SamEureka
SamEureka / app.js
Last active October 4, 2015 20:05
d3.tutorial.2
var width = 420,
barHeight = 20;
var x = d3.scale.linear()
.range([0, width]);
var chart = d3.select('.chart')
.attr('width', width);
d3.csv('data.csv', type, function (error, data){
@SamEureka
SamEureka / app.js
Last active September 8, 2022 13:54
Testing localStorage with d3
// refactored - combined the retreive and set to one function.
d3.select("#cText").on("input", function() {
localStorage.setItem('cText', this.value);
d3.select('#textOut').text(localStorage.getItem('cText'));
});
d3.select("#nRange").on("input", function() {
localStorage.setItem('nRange', +this.value);
d3.select('#rangeOut').text(localStorage.getItem('nRange'));
@SamEureka
SamEureka / app.css
Last active October 9, 2015 04:15
Session Storage - Timer Test
div {
font-size: 10rem;
text-align: center;
}
.pointing {
cursor: pointer;
}
.bold {
@SamEureka
SamEureka / index.html
Created November 27, 2015 15:41
CSS/HTML Exercise - Login
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>CSS / HTML Exercise - Login</title>
<link rel="stylesheet" type="text/css" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css">
<link rel="stylesheet" type="text/css" href="style.css">
</head>
<body>
@SamEureka
SamEureka / index.css
Last active January 7, 2016 17:45
D3 - SpiroSlinky
body {
margin: 0;
background: #222;
min-width: 960px;
}
rect {
fill: none;
pointer-events: all;
}