Skip to content

Instantly share code, notes, and snippets.

./configure --prefix=/usr/local/php7/7.0.0 --localstatedir=/usr/local/var --sysconfdir=/usr/local/etc/php/7 --with-config-file-path=/usr/local/etc/php/7 --with-config-file-scan-dir=/usr/local/etc/php/7/conf.d --mandir=/usr/local/php7/7.0.0/share/man --enable-bcmath --enable-calendar --enable-dba --enable-exif --enable-ftp --enable-gd-native-ttf --enable-intl --enable-mbregex --enable-mbstring --enable-shmop --enable-soap --enable-sockets --enable-sysvmsg --enable-sysvsem --enable-sysvshm --enable-wddx --enable-zip --with-freetype-dir=/usr/local/opt/freetype --with-gd --with-gettext=/usr/local/opt/gettext --with-iconv-dir=/usr --with-icu-dir=/usr/local/opt/icu4c --with-jpeg-dir=/usr/local/opt/jpeg --with-kerberos=/usr --with-libedit --with-mhash --with-ndbm=/usr --with-pdo-odbc=unixODBC,/usr/local/opt/unixodbc --with-png-dir=/usr/local/opt/libpng --with-unixODBC=/usr/local/opt/unixodbc --with-xmlrpc --with-zlib=/usr/local/opt/zlib --with-apxs2=/usr/sbin/apxs --libexecdir=/usr/local/php7/7.0.0/libexec --with-bz
"use strict";
var _defineProperty = function (obj, key, value) { return Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); };
var a = "k",
b = (function () {
var _b = {};
_defineProperty(_b, a, "foo");
@tmoitie
tmoitie / gulpfile.js
Created June 30, 2014 09:18
Tom's bare minimum gulpfile
var gulp = require('gulp');
var args = require('yargs').argv;
var gulpif = require('gulp-if');
var rubysass = require('gulp-ruby-sass');
var nodesass = require('gulp-sass');
var prefix = require('gulp-autoprefixer');
var minifycss = require('gulp-minify-css');
var livereload = require('gulp-livereload');
var fs = require('fs');
var notify = require('gulp-notify');
angular.module('app').directive('closeEsc', ['$window', function($window){
return {
restrict: 'A',
link: function (scope, element, attrs) {
angular.element($window).bind('keyup', function(event){
if (event.keyCode === 27) {
scope[attrs.closeEsc] = false;
scope.$apply();
}
});
@tmoitie
tmoitie / gist:9808555
Last active April 18, 2024 18:56
Wordpress: Gravity Forms List to ACF Repeater post save
<?php
add_action('gform_after_submission', 'gfToAcfListToRepeater', 10, 2);
function gfToAcfListToRepeater($entry, $form)
{
foreach ($form['fields'] as $field) {
if (!($field['type'] == 'post_custom_field' && $field['inputType'] == 'list' && $field['enableColumns'] == true)) {
continue;
}
$id = $field['id'];
(function($) {
/*
* Replace image source by fading out, preloading and fading in
* usage: $('img').replaceImageSrc('http://example.com/kitten.jpg');
*/
$.fn.replaceImageSrc = function(newUrl, options) {
var settings = $.extend({
duration: 'slow'
}, options);
@tmoitie
tmoitie / gist:5575062
Created May 14, 2013 10:34
Trailing spaces keybinding
{ "keys": ["ctrl+shift+t"], "command": "delete_trailing_spaces" }