Skip to content

Instantly share code, notes, and snippets.

View jamcgrath's full-sized avatar
💬
Crushing it!

James jamcgrath

💬
Crushing it!
View GitHub Profile
@jamcgrath
jamcgrath / gist:5df22cf174c7a00ab5ec53eba08085da
Created August 10, 2020 03:10 — forked from jakubpawlowicz/gist:6fa7465b323486e8b89d
Regex matching single- and multiline CSS comments in Sublime Text
/\*((?!\*/).|\n)+\*/
@jamcgrath
jamcgrath / JapaneseRegex.js
Created October 3, 2017 07:29 — forked from ryanmcgrath/JapaneseRegex.js
Regex to test for presence of Japanese characters
// REFERENCE UNICODE TABLES:
// http://www.rikai.com/library/kanjitables/kanji_codes.unicode.shtml
// http://www.tamasoft.co.jp/en/general-info/unicode.html
//
// TEST EDITOR:
// http://www.gethifi.com/tools/regex
//
// UNICODE RANGE : DESCRIPTION
//
// 3000-303F : punctuation
function web_fonts() {
wp_register_style('google_fonts', 'http://fonts.googleapis.com/css?family=');
wp_enqueue_style( 'google_fonts');
}
add_action('wp_enqueue_style', 'web_fonts');