Skip to content

Instantly share code, notes, and snippets.

View immanuelsun's full-sized avatar

Immanuel Sun immanuelsun

View GitHub Profile
@immanuelsun
immanuelsun / customizer.php
Created June 15, 2016 00:31
WordPress Customizer: add contact details section
// Add theme customizer controls, settings, etc.
function kingdom_customize_register($wp_customize)
{
/********************************************
! define genric controls
*******************************************/
/**
* create class to define textarea in Customizer
*/
class Kingdom_Customize_Textarea_Control extends WP_Customize_Control
@immanuelsun
immanuelsun / tab-trigger.js
Created September 27, 2016 18:20 — forked from wesbos/tab-trigger.js
How to properly get a TAB trigger working with Emmet inside of JSX
{
"keys": ["tab"],
"command": "expand_abbreviation_by_tab",
// put comma-separated syntax selectors for which
// you want to expandEmmet abbreviations into "operand" key
// instead of SCOPE_SELECTOR.
// Examples: source.js, text.html - source
"context": [
{
.monaco-workbench.no-workspace>.part.statusbar {
background-color: #333333 !important;
}
# strip out iBooks citation
sed -E -e 's/^[ ]?[0-9]* //g' | sed -E -e 's/“[ ]?[0-9]?[ ]?//g' | sed -E -e 's/”$//g' | sed -E -e 's/^(Excerpt From).*//g'