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 / 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.
@CADbloke
CADbloke / VisualStudioProjectNPPStyler.xml
Last active Feb 13, 2018
Notepad++ Syntax highlighting Visual Studio Project Files (.csproj & .vbproj) and also .vstemplate files. I'm sure I didn't catch every keyword so you may have a little adding to do. Just make sure you add enough closing braces in the Styler. Also, no I'm not colour-blind. I'm not a designer either. Nyah.Instructions for the styler at http://udl…
View VisualStudioProjectNPPStyler.xml
<NotepadPlus>
<UserLang name="VS Projects" ext="csproj vbproj vstemplate targets proj" udlVersion="2.1">
<Settings>
<Global caseIgnored="yes" allowFoldOfComments="no" foldCompact="yes" forcePureLC="0" decimalSeparator="0" />
<Prefix Keywords1="no" Keywords2="no" Keywords3="no" Keywords4="no" Keywords5="no" Keywords6="no" Keywords7="no" Keywords8="yes" />
</Settings>
<KeywordLists>
<Keywords name="Comments">00 01 02 03&lt;!-- 04--&gt;</Keywords>
<Keywords name="Numbers, prefix1"></Keywords>
<Keywords name="Numbers, prefix2"></Keywords>
@CADbloke
CADbloke / VisualStudioSolutionSLNstyler.xml
Last active Jul 3, 2018
Notepad++ Syntax Highlighting for visual Studio .sln Solution files. Exported from NP++ 6.3.2To use, save this gist as an XML file, NP++ Language menu ==> Define your Language ==> click Import in the window that just popped up...then change the colo(u)rs in the pop-up window dialogues to something that offends you less.
View VisualStudioSolutionSLNstyler.xml
<NotepadPlus>
<UserLang name="SLN" ext="sln" udlVersion="2.1">
<Settings>
<Global caseIgnored="no" allowFoldOfComments="no" foldCompact="no" forcePureLC="0" decimalSeparator="0" />
<Prefix Keywords1="no" Keywords2="no" Keywords3="no" Keywords4="no" Keywords5="no" Keywords6="no" Keywords7="no" Keywords8="no" />
</Settings>
<KeywordLists>
<Keywords name="Comments">03 04 00# 01 02</Keywords>
<Keywords name="Numbers, prefix1"></Keywords>
<Keywords name="Numbers, prefix2"></Keywords>
@SimonSimCity
SimonSimCity / pagination.html.twig
Last active Aug 22, 2019
A gist for pagination in Twig, based on the total number of pages, the current page and some URL-settings.
View pagination.html.twig
{#
Source: http://dev.dbl-a.com/symfony-2-0/symfony2-and-twig-pagination/
Updated by: Simon Schick <simonsimcity@gmail.com>
Parameters:
* currentFilters (array) : associative array that contains the current route-arguments
* currentPage (int) : the current page you are in
* paginationPath (string) : the route name to use for links
* showAlwaysFirstAndLast (bool) : Always show first and last link (just disabled)
* lastPage (int) : represents the total number of existing pages
@adhipg
adhipg / countries.sql
Created Jan 12, 2012
Sql dump of all the Countries, Country Codes, Phone codes.
View countries.sql
CREATE TABLE IF NOT EXISTS `country` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`iso` char(2) NOT NULL,
`name` varchar(80) NOT NULL,
`nicename` varchar(80) NOT NULL,
`iso3` char(3) DEFAULT NULL,
`numcode` smallint(6) DEFAULT NULL,
`phonecode` int(5) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
You can’t perform that action at this time.