This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This is a template .gitignore file for git-managed WordPress projects. | |
# | |
# Fact: you don't want WordPress core files, or your server-specific | |
# configuration files etc., in your project's repository. You just don't. | |
# | |
# Solution: stick this file up your repository root (which it assumes is | |
# also the WordPress root directory) and add exceptions for any plugins, | |
# themes, and other directories that should be under version control. | |
# | |
# See the comments below for more info on how to add exceptions for your |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
file: { | |
url: "http://someimage.jpg", | |
title: "Some Image" | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
file: { | |
url: "http://someimage.jpg", | |
title: "Some Image" | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict' | |
data = ($injector) -> | |
init = -> | |
registerModels() | |
service = {} | |
registerModels = -> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict' | |
reviewProto = { | |
getTitle: -> | |
@fields.title if @fields and @fields.title | |
getAlias: -> | |
@fields.alias if @fields and @fields.alias | |
getSuperLabel: -> | |
@fields.category if @fields and @fields.category | |
getShortDescription: -> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
getResponse = (method, type, params) => | |
@promises ||= {} | |
promiseKey = (method + type + JSON.stringify params).replace(/[\{\}",:\-\._\[\] ]/g, '') | |
return @promises[promiseKey] if @promises[promiseKey] | |
console.log promiseKey | |
deferred = $q.defer() | |
params ||= {} | |
params.access_token = contentfulConfig.access_token |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict' | |
headConfig = [ | |
{ | |
name: 'title' | |
selector: 'title' | |
template: '<title></title>' | |
html: true | |
} | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Rename develop.sql to <version>.sql | |
# Exit if develop.sql is empty | |
if [ -s database/develop.sql ]; then exit 0; fi | |
# Get version tag from the latest commit | |
VER=`git tag --contains HEAD` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Load Joomla! config | |
if (!file_exists('httpdocs/configuration.php')) { | |
echo "Couldn't find configuration.php!\n"; | |
exit(); | |
} | |
include('httpdocs/configuration.php'); | |
$config = new JConfig(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Apply stash to restore local develop.sql (or other changes) | |
git stash apply | |
git stash drop | |
# Which branch are we on? | |
branch=`git rev-parse --abbrev-ref HEAD` | |
php -f setup.php "$branch" |
OlderNewer