This script for Google Spreadsheets allows you to generate slugs for your data such as might be used for creating unique urls.
Use it like this!
# | A | B | C |
---|---|---|---|
1 | a | b | slug |
2 | foo | baz bing | =slugify(A2:B4) |
3 | bar | BAZ | |
4 | FOO | baz-bing |
{% if settings.homepage_slideshow %} | |
<section id="HomepageSlideshow" class="homepage--slideshow"> | |
<ul class="slides"> | |
{% if settings.homepage_slide_show_1 %} | |
<li data-id="1"> | |
<img src="{{ 'homepage_slide_image_1.jpg' | asset_url }}" alt="{{ settings.homepage_slide_title_1 }}"/> | |
<a href="{{ settings.homepage_slide_title_1 }}" class="vac"> | |
<h1>{{ settings.homepage_slide_title_1 }}</h1> | |
<h2>{{ settings.homepage_slide_text_1 }}</h2> | |
</a> |
var directs = [{ | |
old: "/i-am-an-old-url", | |
new: "/i-am-your-new-url" | |
}]; | |
var counter = 0; | |
var $addURLRedirect = jQuery('a[bind-event-click*="addUrlRedirectModal"]'); | |
var currentRedirect; | |
addRedirect = function() { |
.DS_Store | |
.git/ | |
.gitignore | |
deploy/ | |
*.sublime-* | |
plesk-stat/ | |
picture_library/ | |
node_modules/ | |
wp-includes/ | |
wp-admin/ |
I am line: 0 | |
I am line: 1 | |
I am line: 2 | |
I am line: 3 | |
I am line: 4 | |
I am line: 5 | |
I am line: 6 | |
I am line: 7 | |
I am line: 8 | |
I am line: 9 |
<?php | |
/* | |
Plugin Name: ReOrder Post Within Categories | |
Plugin URI: http://www.deefuse.fr/wordpress/nouveau-plugin-reorder-post-within-categories | |
Description: Arrange Post and Custom Post Type through drag & drop interface of selected category (or custom taxonomies). | |
Version: 1.1.6-patched | |
Author: Aurélien Chappard | |
Author URI: http://www.deefuse.fr/ | |
License: GPLv2 | |
Copyright: Aurélien Chappard |
This script for Google Spreadsheets allows you to generate slugs for your data such as might be used for creating unique urls.
Use it like this!
# | A | B | C |
---|---|---|---|
1 | a | b | slug |
2 | foo | baz bing | =slugify(A2:B4) |
3 | bar | BAZ | |
4 | FOO | baz-bing |
# Requires ffmpeg | |
function ffumbnail() { | |
file_name=$(basename "${1}") | |
file_name_no_ext="${file_name%.*}" | |
ffmpeg -i $file_name -vframes 1 $file_name_no_ext.jpg; | |
} |
<?php | |
class acf_update { | |
/* | |
* __construct | |
* | |
* A good place to add actions / filters | |
* | |
* @type functionac |
# Converts all tiffs to jpg | |
# | |
# Requires imagemagick: | |
# brew install libtiff | |
# brew install imagemagick --with-libtiff (or brew reinstall) | |
# | |
function tifftojpeg() { | |
for i in *.tif; | |
do convert $i "${i%.*}.jpg"; | |
done; |
<!DOCTYPE html> | |
<html> | |
<head> | |
<script src="http://code.jquery.com/jquery-1.11.1.min.js"></script> | |
<meta charset="utf-8"> | |
<title>JS Bin</title> | |
<style id="jsbin-css"> | |
body { | |