Skip to content

Instantly share code, notes, and snippets.

💭
Available for Hire

Houston McClung hmcclungiii

💭
Available for Hire
Block or report user

Report or block hmcclungiii

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@hmcclungiii
hmcclungiii / filename_with_exepath.cs
Created Nov 27, 2018
Filespec of file in the same directory as the current executable
View filename_with_exepath.cs
private const string ConfigFile_Filename = "ENTER FILENAME HERE";
private string GetExePath()
{
return(System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().Location));
}
private string GetFilespec()
{
return(System.IO.Path.Combine(GetExePath(), ConfigFile_Filename));
}
@hmcclungiii
hmcclungiii / install_minecraft
Created Sep 8, 2017
Commands to install Minecraft on Ubuntu 16.04
View install_minecraft
sudo add-apt-repository ppa:flexiondotorg/minecraft
sudo apt update
sudo apt install minecraft-installer
@hmcclungiii
hmcclungiii / dbo.Country.sql
Created Nov 13, 2016
MS SQL dump of countries along with their ISO codes, phone codes, and other related information. I took this from http://www.infomazing.net/blog/database-country-table-with-sql-insert-statements
View dbo.Country.sql
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [dbo].[Country](
@hmcclungiii
hmcclungiii / wp_terms-states.sql
Last active Mar 6, 2016
An SQL Query to Add the 50 US States into the Wordpress wp_terms (Categories) Table
View wp_terms-states.sql
INSERT INTO `wp_terms`(`name`, `slug`, `term_group`) VALUES
('AK - Alaska', 'ak', 0),
('AZ - Arizona', 'az', 0),
('AR - Arkansas', 'ar', 0),
('CA - California', 'ca', 0),
('CO - Colorado', 'co', 0),
('CT - Connecticut','ct', 0),
('DE - Delaware','de', 0),
('FL - Florida','fl', 0),
('GA - Georgia','ga', 0),
@hmcclungiii
hmcclungiii / states.sql
Last active Mar 6, 2016 — forked from JeremyMorgan/states.sql
An SQL Query to insert 50 U.S. States into a database.Make sure your auto increment is set in MySQL, and Identity_insert is set in MS-SQL.
View states.sql
CREATE TABLE [state](
[stateID] [int] IDENTITY(1,1) NOT NULL,
[stateCode] [nchar](2) NOT NULL,
[stateName] [nvarchar](128) NOT NULL,
CONSTRAINT [PK_state] PRIMARY KEY CLUSTERED
( [stateID] ASC )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY])
ON [PRIMARY]
@hmcclungiii
hmcclungiii / functions.php
Created Jan 19, 2016
Adds a custom stylesheet to your WordPress Login Page.
View functions.php
<?php
/* You can remove the above opening php tag
when pasting this code inside your
functions.php file.
*/
/* The following code adds your custom stylesheet
to the wordpress login screen, allowing you to
customize the background, colors and fonts of the
page to match your custom theme.
View gist:df345264901ed2dac905
<div class="container1"></div>
<div class="container2 zigzag"></div>
<div class="container3 zigzag"></div>
<div class="container4 zigzag"></div>
/* Zig-Zag Border
Credit to http://bradsknutson.com/blog/css-zig-zag-border/
*/
.container1 {
width: 100%;
@hmcclungiii
hmcclungiii / border.css
Created Mar 20, 2015
CSS to add borders to any box element.
View border.css
.borders {
-webkit-box-shadow: 0px 1px 3px #666666;
-moz-box-shadow: 0px 1px 3px #666666;
box-shadow: 0px 1px 3px #666666;
-webkit-border-radius: 10;
-moz-border-radius: 10;
border-radius: 10px;
}
@hmcclungiii
hmcclungiii / button.css
Created Mar 19, 2015
A nice clickable button in css.
View button.css
.button {
-webkit-border-radius: 10;
-webkit-box-shadow: 0px 1px 3px #666666;
-moz-border-radius: 10;
-moz-box-shadow: 0px 1px 3px #666666;
background: #F97878;
border-radius: 10px;
box-shadow: 0px 1px 3px #666666;
color: #ffffff;
font-family: Arial;
@hmcclungiii
hmcclungiii / AlternatingExcelRows
Created Jul 27, 2014
To alternate row colors in Excel ...
View AlternatingExcelRows
Select a range of cells to format ...
Click Conditional Formatting - Click New Rule
For the rule, enter this ...
=MOD(ROW(),2)=1
Click the format button and select your formatting.
Click OK twice and there you go!
You can’t perform that action at this time.