Skip to content

Instantly share code, notes, and snippets.

@DragonBe
DragonBe / Vagrantfile
Last active December 5, 2021 23:03
Quickly run PHP 7.2, MySQL 5.7 and Nginx 1.14 within Vagrant
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = "2"
Vagrant.require_version ">= 2.2.0"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vagrant.plugins = ["vagrant-vbguest"]
@DragonBe
DragonBe / Vagrantfile-php7.2
Created March 20, 2018 09:29
A quick Vagrant file to get started with PHP 7.2
# -*- mode: ruby -*-
# vi: set ft=ruby :
VAGRANTFILE_API_VERSION = '2'
@script = <<SCRIPT
# Fix for https://bugs.launchpad.net/ubuntu/+source/livecd-rootfs/+bug/1561250
if ! grep -q "ubuntu-xenial" /etc/hosts; then
echo "127.0.0.1 ubuntu-xenial" >> /etc/hosts
fi
@cnichols-git
cnichols-git / rollup_html
Last active December 29, 2015 18:39
Roll over animation with CSS3
<div class="view rollup one-third first">
<img alt="" src="http://robotlaserparty.com/wp-content/uploads/2013/11/bikes.jpg" width="259" height="194" />
<div class="mask">
<h2>Agent: Jon Smith</h2>
Contact me for any of your real estate questions..
<a class="info" href="#">Read More &gt;&gt;</a>
</div>
</div>
<div class="view rollup one-third">
@efoken
efoken / _linear-gradient.scss
Last active June 1, 2018 11:33
Sass mixin for CSS linear gradients with SVG fallback to support IE9.
@function inverse-side($side) {
@if $side == top {
@return bottom;
} @else if $side == bottom {
@return top;
} @else if $side == left {
@return right;
}
@return left;
}
@brianteachman
brianteachman / stop_words.php
Created January 13, 2013 08:21
A PHP array of common English stop words that can loaded by an include statement.
<?php
//http://www.ranks.nl/resources/stopwords.html
return $stop_words = array(
'a',
'about',
'above',
'after',
'again',
'against',
'all',