A very basic regex-based Markdown parser. Supports the
following elements (and can be extended via Slimdown::add_rule()
):
- Headers
- Links
- Bold
- Emphasis
- Deletions
// CSS VARIABLES | |
:root { | |
--body-font-family: #{$site-body-font-family}; | |
--heading-font-family: #{$site-heading-font-family}; | |
--heading-font-weight: 500; | |
// Scale factors | |
@each $factor, $value in $scale-factors { | |
--scale-factor-#{$factor}: #{$value}; | |
} |
// SPACING VARIABLES | |
$margin-spacings: ( | |
xs: rem-calc(8px), | |
sm: rem-calc(16px), | |
md: rem-calc(32px), | |
lg: rem-calc(64px), | |
xl: rem-calc(128px) | |
); | |
$margin-pushes: ( |
/* eslint eol-last: ["error", "always"] */ | |
const contentful = require('contentful') | |
// Those are set via `env` property in nuxt.config.js or environment variables | |
const config = { | |
space: process.env.NUXT_ENV_CONTENTFUL_SPACE, | |
accessToken: process.env.NUXT_ENV_CONTENTFUL_ACCESS_TOKEN | |
} |
<?php | |
/* | |
Plugin Name: WP_Rewrite endpoints demo | |
Description: A plugin giving example usage of the WP_Rewrite endpoint API | |
Plugin URI: http://make.wordpress.org/plugins/2012/06/07/rewrite-endpoints-api/ | |
Author: Jon Cave | |
Author URI: http://joncave.co.uk/ | |
*/ | |
function makeplugins_endpoints_add_endpoint() { |
#!/bin/bash | |
###################################################################### | |
# Script to install Greenbone/OpenVAS on Ubuntu 20.04 | |
# | |
# Note: run as root | |
# | |
# Usage: sudo ./install_gvm.sh | |
# | |
# Based on: | |
# https://kifarunix.com/install-and-setup-gvm-11-on-ubuntu-20-04/?amp |
zend_extension = "xdebug.so" | |
; ----------------------------------------------------------------------------- | |
; xdebug.auto_trace | |
; | |
; Type: boolean, Default value: 0 | |
; | |
; When this setting is set to on, the tracing of function calls will be enabled | |
; just before the script is run. This makes it possible to trace code in the | |
; auto_prepend_file [1]. |
# Include your project-specific ignores in this file | |
# Read about how to use .gitignore: https://help.github.com/articles/ignoring-files | |
# Useful .gitignore templates: https://github.com/github/gitignore | |
.idea | |
./npm_modules | |
### Windows template | |
# Windows thumbnail cache files |
This guide shows how to set up a PHP and MySQL development environment using OSX's built-in Apache, using Homebrew to install necessary components. With this strategy, you can use different versions of PHP for certain virtual hosts.
VirtualHostX is a convenient way to manage development sites, but not required.
brew update
brew install php56
brew install php56-mcrypt
brew install mysql
<?php | |
/** | |
* WordPress Query Comprehensive Reference | |
* Compiled by luetkemj - luetkemj.com | |
* | |
* CODEX: http://codex.wordpress.org/Class_Reference/WP_Query | |
* Source: http://core.trac.wordpress.org/browser/tags/3.3.1/wp-includes/query.php | |
*/ | |
$args = array( |