PHPPDX Meetup Talk 7/17/2018
Table of contents:
// Load plugins | |
var gulp = require('gulp'), | |
sass = require('gulp-ruby-sass'), | |
autoprefixer = require('gulp-autoprefixer'), | |
minifycss = require('gulp-minify-css'), | |
jshint = require('gulp-jshint'), | |
uglify = require('gulp-uglify'), | |
imagemin = require('gulp-imagemin'), | |
rename = require('gulp-rename'), | |
clean = require('gulp-clean'), |
class SampleModel extends \Eloquent | |
{ | |
use TypeCast; | |
protected $table = 'manufacturer'; | |
protected $fillable = []; | |
protected $guarded = [ | |
'id', |
PHPPDX Meetup Talk 7/17/2018
Table of contents:
#!/bin/bash | |
# SQL Server Driver Installer for Laravel Homestead | |
# | |
# This script downloads, compiles, and installs the PHP 7 extension | |
# files for both the native sqlsrv and the PDO pdo_sqlsrv drivers. | |
# Get the Microsoft Driver Source Code from Github | |
cd ~ | |
git clone https://github.com/Microsoft/msphpsql.git | |
cd msphpsql |
<?php | |
/* | |
* Google Font Importer | |
*/ | |
$fonts = "https://www.googleapis.com/webfonts/v1/webfonts?key=AIzaSyCpfnm5kVng8hhP_jnAnnTXVP7MEUM89-k"; | |
$fonts = file_get_contents($fonts, 0, null, null); | |
$fp = fopen('fonts.txt', 'w'); |
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
Vagrant.configure("2") do |config| | |
# All Vagrant configuration is done here. The most common configuration | |
# options are documented and commented below. For a complete reference, | |
# please see the online documentation at vagrantup.com. | |
# Every Vagrant virtual environment requires a box to build off of. | |
config.vm.box = "ubuntu1204_64" |
var cornify_count = 0; | |
var cornify_add = function() { | |
cornify_count += 1; | |
var cornify_url = 'http://www.cornify.com/'; | |
var div = document.createElement('div'); | |
div.style.position = 'fixed'; | |
var numType = 'px'; | |
var heightRandom = Math.random()*.75; | |
var windowHeight = 768; |
/** | |
* Changes value to past tense. | |
* Simple filter does not support irregular verbs such as eat-ate, fly-flew, etc. | |
* http://jsfiddle.net/bryan_k/0xczme2r/ | |
* | |
* @param {String} value The value string. | |
*/ | |
Vue.filter('past-tense', function(value) { | |
// Slightly follows http://www.oxforddictionaries.com/us/words/verb-tenses-adding-ed-and-ing | |
var vowels = ['a', 'e', 'i', 'o', 'u']; |
Because Travis CI can automatically execute scripts after successfully (or unsuccessfully!) executing tests, it is an obvious choice for a deployment tool. In order to deploy to a Git repository on a remote server, the process generally is as follows:
.fa-bounce { | |
display: inline-block; | |
position: relative; | |
-moz-animation: bounce 1s infinite linear; | |
-o-animation: bounce 1s infinite linear; | |
-webkit-animation: bounce 1s infinite linear; | |
animation: bounce 1s infinite linear; | |
} | |
@-webkit-keyframes bounce { |