Skip to content

Instantly share code, notes, and snippets.

View themorgantown's full-sized avatar

Daniel themorgantown

View GitHub Profile
<?php
/**
* Template Name: Blank Template
*/
?><!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="profile" href="http://gmpg.org/xfn/11">
@themorgantown
themorgantown / hype-runtime.html
Last active August 31, 2020 18:17
Please note this is just an example -- you should re-export so that you have the most recent bundled runtime for the thin.min.js file.
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="chrome=1,IE=edge" />
<title>Default</title>
<style>
html {
height:100%;
}
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="chrome=1,IE=edge" />
<title>360spotz</title>
<style>
html {
height:100%;
}
@themorgantown
themorgantown / Info.plist
Last active October 26, 2018 15:07
Hype Dashboard Widget Example
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>AllowNetworkAccess</key>
<true/>
<key>CFBundleDevelopmentRegion</key>
<string>English</string>
<key>CFBundleDisplayName</key>
<string>1024</string>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="chrome=1,IE=edge" />
<title>FairwayFacebookPlayable5</title>
<style>
html {
height:100%;
}
body {
@themorgantown
themorgantown / index.js
Last active April 10, 2018 17:27
This simple package takes a local or live URL on the web and generates screenshots.
// Optional delay, JPG or PNG To run, place these two files in a folder, and run `npm install` within the folder then node index.js to run this example file after including your own local or remote URLs. To get the 'file:///' URL, open a html in Safari.
const Pageres = require('pageres');
// Learn more about Pageres here: https://github.com/sindresorhus/pageres
const pageres = new Pageres({delay: 1, filename: 'Default', format: 'png'})
// Load a file from URL and take a series of screenshots. Note that you need to remove the 'filename' above
// to create multiple formats.
//.src('https://tumult.com/hype/gallery/BootSale/BootSale.html', ['728x90', '1024x768', 'iphone 5s'], {crop: true})
@themorgantown
themorgantown / svgo.scpt
Created March 8, 2018 16:54
Folder Action for running SVG files through SVGO ( https://github.com/svg/svgo )
# To use this as a Folder Action, first place it within your
# Folder Actions Folder.
# In Terminal, insert this:
# open ~/Library/Scripts/Folder\ Action\ Scripts
# You may need to create that folder, by first running
# open ~/Library/Scripts/
# Then creating the Folder Action Scripts folder.
# This script requires SVGO, which can be installed with Homebrew:
# brew install svgo
@themorgantown
themorgantown / template-demo.php
Last active March 7, 2018 14:58
Starter Template: Wordpress
<?php /* Template Name: Demo Page Template */ get_header(); ?>
<style>
html {
height:100%;
}
body {
margin:0;
height:100%;
}
</style>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="chrome=1,IE=edge" />
<title>Default</title>
<style>
html {
height:100%;
}