Skip to content

Instantly share code, notes, and snippets.

View mavieth's full-sized avatar

Michael Vieth mavieth

View GitHub Profile
@mavieth
mavieth / media-query-template.css
Last active April 18, 2024 21:53
Media Query Template for Basic CSS
/**
* Basic CSS Media Query Template
* TODO: I should probably use Sass...
* Author: Michael Vieth
* ------------------------------------------
* Responsive Grid Media Queries - 1280, 1024, 768, 480
* 1280-1024 - desktop (default grid)
* 1024-768 - tablet landscape
* 768-480 - tablet
* 480-less - phone landscape & smaller
@mavieth
mavieth / domains.json
Created January 25, 2020 18:19
Common Email Domains
[
"aol.com",
"att.net",
"comcast.net",
"facebook.com",
"gmail.com",
"gmx.com",
"googlemail.com",
"google.com",
"hotmail.com",
@mavieth
mavieth / colors.sh
Created February 26, 2016 19:36
Bash script color output
#!/bin/bash
DARKGRAY='\033[1;30m'
RED='\033[0;31m'
LIGHTRED='\033[1;31m'
GREEN='\033[0;32m'
YELLOW='\033[1;33m'
BLUE='\033[0;34m'
PURPLE='\033[0;35m'
LIGHTPURPLE='\033[1;35m'
@mavieth
mavieth / install-php-7.sh
Created May 2, 2017 01:38
Upgrade from PHP 5.X.X to PHP 7 on an AWS EC2 Linux Server
#!/bin/bash
echo "==============================="
echo "Installing PHP 7"
echo "==============================="
sudo yum install php70
echo "==============================="
echo "Installing PHP 7 additional commonly used php packages"
echo "==============================="
We can't make this file beautiful and searchable because it's too large.
date,low,high,open,close,volume,ds,y,price
2016-06-09 08:00:00,14.58,14.66,14.6,14.58,300,2016-06-09 08:00:00,14.58,14.58
2016-06-09 09:00:00,14.66,14.66,14.66,14.66,139,2016-06-09 09:00:00,14.66,14.66
2016-06-09 10:00:00,14.58,14.73,14.67,14.67,497,2016-06-09 10:00:00,14.67,14.67
2016-06-09 11:00:00,14.67,14.77,14.68,14.67,586,2016-06-09 11:00:00,14.67,14.67
2016-06-09 12:00:00,14.55,14.64,14.59,14.57,31,2016-06-09 12:00:00,14.57,14.57
2016-06-09 13:00:00,14.56,14.7,14.57,14.69,398,2016-06-09 13:00:00,14.69,14.69
2016-06-09 14:00:00,14.64,14.68,14.65,14.66,333,2016-06-09 14:00:00,14.66,14.66
2016-06-09 15:00:00,14.6,14.7,14.65,14.69,344,2016-06-09 15:00:00,14.69,14.69
2016-06-09 16:00:00,14.59,14.7,14.67,14.69,667,2016-06-09 16:00:00,14.69,14.69
<?php
function projects_init() {
register_post_type( 'projects', array(
'labels' => array(
'name' => __( 'Projects', 'twentytwenty-child' ),
'singular_name' => __( 'Project', 'twentytwenty-child' ),
'all_items' => __( 'All Projects', 'twentytwenty-child' ),
'new_item' => __( 'New Project', 'twentytwenty-child' ),
'add_new' => __( 'Add New', 'twentytwenty-child' ),
'add_new_item' => __( 'Add New Project', 'twentytwenty-child' ),
//
// MapHelper.swift
//
// Created by Michael Vieth on 1/6/20.
//
import Foundation
import GoogleMaps
import GoogleMapsBase
import MapKit
@mavieth
mavieth / setup.sh
Created March 13, 2019 04:48 — forked from rg3915/setup.sh
Shell script to create a simple Django project.
# Shell script for create a simple Django project.
# wget --output-document=setup.sh https://goo.gl/pm621U
# Type the following command, you can change the project name.
# source setup.sh myproject
# Colors
red=`tput setaf 1`
green=`tput setaf 2`
@mavieth
mavieth / npm-registry-client-fix.sh
Last active April 17, 2019 15:08
Error: Cannot find module 'npm-registry-client'
# Update Node to latest version
brew upgrade
# Find potential problems
brew doctor
# Remove Node and prune libraries
brew uninstall node
brew prune
@mavieth
mavieth / AppDelegate.swift
Created April 1, 2019 00:23
Swift TabsController
import UIKit
import Material
@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {
var window: UIWindow?
func applicationDidFinishLaunching(_ application: UIApplication) {
window = UIWindow(frame: Screen.bounds)