This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> | |
<title></title> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<link rel="stylesheet" href="css/style.css"> | |
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script> | |
<!--[if lt IE 9]> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
RewriteBase / | |
RewriteCond %{HTTP_HOST} !=www.codehorse.co.uk | |
RewriteRule ^(.*)$ http://www.codehorse.co.uk/$1 [L,R=301] | |
</IfModule> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function log(logstring) { | |
console.log(logstring); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<link rel="stylesheet/less" type="text/css" href="/css/styles.less"> | |
<script src="/js/less.js" type="text/javascript"></script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// This takes a get of location and postcode to put into a json file for use with https://github.com/MrQwest/activity | |
/* Example use: | |
$.ajax({ | |
url: 'file.php', | |
type: 'GET', | |
data: { | |
location: [LOCATION - VARIABLE OR STRING], |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if which inotifywait >/dev/null; then # Checks to see if inotify tools exists | |
folder=`pwd`; # This is where it searches - pwd will run that command and run the rest based on your current folder | |
while true; | |
do | |
N=`find $folder -name "*.less"`; # Currently searches for all .less files in the folder above using a standard find command | |
if [[ -z $N ]]; then # If there is nothing found then it exits | |
echo There are no LESS files to be found - maybe cd to where there is some. | |
exit; | |
else | |
fileout=`inotifywait -qe modify $N`; # Gets the name of the file that was modified |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$dir = dirname(__FILE__); // Sets the dir you want to show images for | |
foreach(scandir($dir) as $item) : // for every item in the folder | |
if($item == '.') continue; // If it equals to any of these, don't show them | |
if($item == '..') continue; | |
if($item == 'index.php') continue; ?> | |
<?=$item?> <!-- echo the path --> | |
<?php endforeach; ?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ---- | |
// Sass (v3.3.0.rc.1) | |
// Compass (v0.13.alpha.10) | |
// ---- | |
@mixin font-face($font-name, $file, $svg-font-name: false, $weight: 100, $style: normal) { | |
@font-face { | |
$fonts: url('#{$file}.eot?#iefix') format('embedded-opentype'), url('#{$file}.woff') format('woff'), url('#{$file}.ttf') format('truetype'); | |
@if($svg-font-name) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ---- | |
// Sass (v3.3.0.rc.1) | |
// Compass (v0.13.alpha.10) | |
// ---- | |
@mixin font-face($font-name, $file, $svg-font-name: false, $weight: 100, $style: normal) { | |
@font-face { | |
$font-src: false; | |
$font-list: ( | |
'eot?#iefix' 'embedded-opentype', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ---- | |
// Sass (v3.3.0.rc.1) | |
// Compass (v0.13.alpha.10) | |
// ---- | |
.box { | |
background: red; | |
.heading { | |
font-size: 20px; | |
} |
OlderNewer