Skip to content

Instantly share code, notes, and snippets.

View scottmagdalein's full-sized avatar

Scott Magdalein scottmagdalein

View GitHub Profile
@scottmagdalein
scottmagdalein / clickable-element.html
Last active March 15, 2023 18:01
Make the Mailchimp Subscriber popup appear on click
<!-- This is the HTML element that, when clicked, will cause the popup to appear. -->
<button id="open-popup">Subscribe to our mailing list</button>
@scottmagdalein
scottmagdalein / random.js
Created September 17, 2013 15:32
Should return random number between 1 and 3.
function getRandom() {
var num = Math.floor((Math.random()*3)+1);
return num;
};
@scottmagdalein
scottmagdalein / fibsum.rb
Last active December 11, 2015 23:48
My answer to Project Euler Fibonacci problem here: http://projecteuler.net/problem=2
x = 1
y = 2
fib = Array.new
while x < 4_000_000 && y < 4_000_000
fib << x if x % 2 == 0
fib << y if y % 2 == 0
x += y
y += x
end
sum = 0
<html>
<head>
<title>{Title} | Team</title>
<link rel="shortcut icon" href="{Favicon}">
<link rel="alternate" type="application/rss+xml" href="{RSS}">
{block:Description}
<meta name="description" content="{MetaDescription}" />
{/block:Description}
<link href='http://fonts.googleapis.com/css?family=Karla:400,700|Bitter:400,700,400italic' rel='stylesheet' type='text/css'>
<html>
<head>
<title>{Title} | Services</title>
<link rel="shortcut icon" href="{Favicon}">
<link rel="alternate" type="application/rss+xml" href="{RSS}">
{block:Description}
<meta name="description" content="{MetaDescription}" />
{/block:Description}
<link href='http://fonts.googleapis.com/css?family=Karla:400,700|Bitter:400,700,400italic' rel='stylesheet' type='text/css'>
<html>
<head>
<title>{Title}</title>
<link rel="shortcut icon" href="{Favicon}">
<link rel="alternate" type="application/rss+xml" href="{RSS}">
{block:Description}
<meta name="description" content="{MetaDescription}" />
{/block:Description}
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>{block:PostSummary}{PostSummary} - {/block:PostSummary}{Title}</title>
<meta name="description" content="{MetaDescription}"/>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>{block:PostSummary}{PostSummary} - {/block:PostSummary}{Title}</title>
<meta name="description" content="{MetaDescription}"/>
@scottmagdalein
scottmagdalein / gist:3698695
Created September 11, 2012 13:57
tumblr theme html/css
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>{block:PostSummary}{PostSummary} - {/block:PostSummary}{Title}</title>
<meta name="description" content="{MetaDescription}"/>
@scottmagdalein
scottmagdalein / gist:3231717
Created August 2, 2012 00:03
output from /usr/bin
Scotts-MacBook-Air:~ scottmagdalein$ cd /usr/bin
Scotts-MacBook-Air:bin scottmagdalein$ ls
2to3 msgs
2to3- mvn
2to3-2.7 nano
2to32.6 native2ascii
RSA_SecurID_getpasswd nbdst
a2p nc
a2p5.10 ncal
a2p5.12 ncurses5.4-config