Skip to content

Instantly share code, notes, and snippets.

@jordanmaslyn
jordanmaslyn / app.html
Last active August 14, 2018 15:41 — forked from zewa666/app.html
Aurelia Store gist
<template>
<h1>Frameworks</h1>
<ul>
<li repeat.for="framework of state.frameworks">${framework}</li>
</ul>
</template>
@jordanmaslyn
jordanmaslyn / 0_reuse_code.js
Created March 6, 2017 22:23
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@jordanmaslyn
jordanmaslyn / gist:2854905
Created June 1, 2012 20:20 — forked from hmert/slug.php
PHP: Create Slug Function
function create_slug($string){
$string = preg_replace( '/[«»""!?,.!@£$%^&*{};:()]+/', '', $string );
$string = strtolower($string);
$slug=preg_replace('/[^A-Za-z0-9-]+/', '-', $string);
return $slug;
}