Keybase proof
I hereby claim:
- I am mathewbyrne on github.
- I am mathewbyrne (https://keybase.io/mathewbyrne) on keybase.
- I have a public key ASBeAW00p8JRympIF3NMKEWZ-7jWHQ14pnYiDQ-YO-aI9wo
To claim this, I am signing this object:
<?php | |
namespace Jb\AdminBundle\Http; | |
use Symfony\Component\HttpFoundation\Response; | |
class CsvResponse extends Response | |
{ | |
protected $data; |
function slugify(text) | |
{ | |
return text.toString().toLowerCase() | |
.replace(/\s+/g, '-') // Replace spaces with - | |
.replace(/[^\w\-]+/g, '') // Remove all non-word chars | |
.replace(/\-\-+/g, '-') // Replace multiple - with single - | |
.replace(/^-+/, '') // Trim - from start of text | |
.replace(/-+$/, ''); // Trim - from end of text | |
} |
I hereby claim:
To claim this, I am signing this object:
<!doctype html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>Navigation Test</title> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"> | |
<script> | |
var isTouchDevice = 'ontouchstart' in document.documentElement; | |
window.onload = function () { | |
var where = document.getElementById('where'); |
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8" /> | |
<title>Shadows Test</title> | |
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script> | |
<style> | |
* { |
interface User { | |
name: string, | |
id: number, | |
avatar?: string, | |
} | |
const user: User = { | |
name: 'Testing', | |
id: 1234, |
A quick jQuery plugin for asynchronously embedding a gist in an HTML document.
There are a couple of ways to use it. First is the direct method that will insert it into the current position in the document:
<script>$.gist(409808)</script>
Secondly, there is a more jQuery oriented method:
<div id="placeholder"></div>
#!/bin/zsh | |
# Requires zsh with zmv loaded | |
# autoload -U zmv | |