A very basic regex-based Markdown parser. Supports the
following elements (and can be extended via Slimdown::add_rule()):
- Headers
- Links
- Bold
- Emphasis
- Deletions
| <!doctype html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8"> | |
| <title>Title</title> | |
| <link rel="stylesheet" href="style.css"> | |
| </head> | |
| <body> | |
| # Ben's Magical Perceptron | |
| def dot_product(a, b): | |
| return sum([a[i]*b[i] for i in range(len(a))]) | |
| def decision( x, w, theta ): | |
| return (dot_product(x, w) > theta) | |
| <?php | |
| /**Display Bitbucket wiki pages with SimpleWiki parser. | |
| * A rough script for refactoring. | |
| * | |
| * @copyright Copyright Nick Freear, 29 April 2011. | |
| * @uses http://simplewiki.org/language#patterns | |
| */ | |
| ini_set('display_errors', 1); | |
| header('Content-Type: text/html; charset=utf-8'); |
| var gulp = require('gulp'), | |
| gutil = require('gulp-util'), | |
| sass = require('gulp-sass'), | |
| csso = require('gulp-csso'), | |
| uglify = require('gulp-uglify'), | |
| jade = require('gulp-jade'), | |
| concat = require('gulp-concat'), | |
| livereload = require('gulp-livereload'), // Livereload plugin needed: https://chrome.google.com/webstore/detail/livereload/jnihajbhpnppcggbcgedagnkighmdlei | |
| tinylr = require('tiny-lr'), | |
| express = require('express'), |
| -use yii\helpers\Html | |
| -use yii\bootstrap\Nav | |
| -use yii\bootstrap\NavBar | |
| -use frontend\assets\AppAsset | |
| -use frontend\widgets\Alert | |
| -use yii\widgets\Breadcrumbs | |
| -AppAsset::register($view) | |
| -$view->beginPage() | |
| doctype html |
| #!/usr/bin/env bash | |
| # Allows you to test the create-project process using your local | |
| # checked-out copy of the skeleton as the source. You MUST commit the | |
| # changes you want to test to a git branch! You MUST name that branch | |
| # as the first argument and the destination path to set up the fresh | |
| # copy into as the second. | |
| # | |
| # Usage: | |
| # - Place this script in your package's root directory and make it executable. | |
| # - Set the PACKAGE_NAME variable below to match your composer.json's `name`. |
| 1. Open /Applications/XAMPP/etc/httpd.conf | |
| 2. Enable the following Modules by removing the # at the front of the line. | |
| - LoadModule rewrite_module modules/mod_rewrite.so | |
| - LoadModule proxy_module modules/mod_proxy.so | |
| - LoadModule proxy_http_module modules/mod_proxy_http.so | |
| 3. Copy and Paste below to the bottom of httpd.conf | |
| # Implements a proxy/gateway for Apache. |
If you love deploying websites using Github, but for some reason want to use your own server, this script might be exactly what you need.
github.php somewhere on your PHP-enabled web server, and make it
accessible for the outside world. Let's say for now the script lives
on http://example.com/github.php