To create an anchor to a heading in github flavored markdown.
Add - characters between each word in the heading and wrap the value in parens (#some-markdown-heading)
so your link should look like so:
[create an anchor](#anchors-in-markdown)
<?php | |
$root = $_SERVER['DOCUMENT_ROOT']; | |
chdir( $root ); | |
$path = '/'.ltrim( parse_url( $_SERVER['REQUEST_URI'] )['path'],'/' ); | |
if ( file_exists( $root.$path ) ) | |
{ | |
if ( is_dir( $root.$path ) && substr( $path,strlen( $path ) - 1, 1 ) !== '/' ) | |
{ |
// Source: https://groups.google.com/forum/#!topic/angular/hVrkvaHGOfc | |
// jsFiddle: http://jsfiddle.net/pkozlowski_opensource/PxdSP/14/ | |
// author: Pawel Kozlowski | |
var myApp = angular.module('myApp', []); | |
//service style, probably the simplest one | |
myApp.service('helloWorldFromService', function() { | |
this.sayHello = function() { | |
return "Hello, World!" |
/* Font Awesome | |
the iconic font designed for use with Twitter Bootstrap | |
------------------------------------------------------- | |
The full suite of pictographic icons, examples, and documentation | |
can be found at: http://fortawesome.github.com/Font-Awesome/ | |
License | |
------------------------------------------------------- | |
The Font Awesome webfont, CSS, and LESS files are licensed under CC BY 3.0: | |
http://creativecommons.org/licenses/by/3.0/ A mention of |
[user] | |
name = SengMing Tan | |
email = [email protected] | |
[alias] | |
b = branch | |
c = commit . | |
co = checkout | |
stat = status | |
s = status | |
h = log --pretty=format:'%Cblue%h %Cgreen %ar%Creset %s' |
<IfModule mod_rewrite.c> | |
Header add Access-Control-Allow-Origin "*" | |
Header add Access-Control-Allow-Methods: "GET,POST,OPTIONS,DELETE,PUT" | |
Header add Access-Control-Allow-Headers: "Content-Type" | |
RewriteEngine on | |
RewriteBase / | |
</IfModule> |
#!/bin/bash | |
for file in `find .` | |
do | |
EXTENSION="${file##*.}" | |
if [ "$EXTENSION" == "php" ] || [ "$EXTENSION" == "phtml" ] | |
then | |
RESULTS=`php -l $file` |
deCSS3 | |
http://davatron5000.github.com/deCSS3/ | |
Compatibility tables for support of HTML5, CSS3, SVG and more in desktop and mobile browsers. | |
http://caniuse.com/ | |
HTML 5 Please | |
http://html5please.com/ | |
media.io Online Audio Converter |
# See: http://draconianoverlord.com/2010/03/04/git-config.html | |
# See: https://github.com/rtomayko/git-sh | |
# See: https://gist.github.com/502434 | |
# REPO/.git/config | |
[remote "origin"] | |
# Generic by default. | |
fetch = +refs/heads/*:refs/remotes/origin/* | |
url = https://[email protected]/IET-OU/pd-open-ac-uk.git |
#!/usr/bin/php | |
<?php | |
$repos = array(); | |
exec('find -type d -name .git | sed -e "s/\.git//"', $repos); | |
foreach ($repos as $repo) { | |
$status = shell_exec("cd $repo && git status"); | |
if (false == strpos($status, 'nothing to commit (working directory clean)')) { | |
echo "$repo\n" . str_repeat('-', strlen($repo)) . "\n$status\n\n"; | |
} | |
} |