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
# humanstxt.org/ | |
# The humans responsible & technology colophon | |
# TEAM | |
FAMILIAR - familiar-studio.com | |
Keith Mancuso -- Tech Partner | |
Carl Williamson -- Design Partner | |
Ian Crowther -- Design Partner |
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] | |
;;;;;;;;;;;;;;;;;;; | |
; About php.ini ; | |
;;;;;;;;;;;;;;;;;;; | |
; PHP's initialization file, generally called php.ini, is responsible for | |
; configuring many of the aspects of PHP's behavior. | |
; PHP attempts to find and load this configuration from a number of locations. | |
; The following is a summary of its search order: |
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 | |
namespace Craft; | |
// This file could be placed into your public_html folder and visited to import a cheese product. | |
$craft = require '../craft/app/bootstrap.php'; | |
$craft->plugins->loadPlugins(); | |
$criteria = craft()->elements->getCriteria(ElementType::Entry); | |
$criteria->section = 'books'; |
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
{% set seomaticMeta = { | |
seoTitle: seoTitle ?? seomaticMeta.seoTitle, | |
seoDescription: seoDescription ?? seomaticMeta.seoDescription, | |
seoKeywords: seomaticMeta.seoKeywords, | |
seoImage: seoImage ?? seomaticMeta.seoImage, | |
canonicalUrl: canonicalUrl ?? seomaticMeta.canonicalUrl, | |
twitter: { | |
card: seomaticMeta.twitter.card, | |
site: seomaticMeta.twitter.site, | |
creator: seomaticMeta.twitter.creator, |
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
{% spaceless %} | |
{% set d = craft.request.getParam('d') %} | |
{% set date = d ? d : 'today' %} | |
{% set month = craft.calendar.month({ | |
date: date, | |
eventType: 'not spaceRental', | |
order: 'eventType desc', |
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
{% set classIds = craft.calendar.events({ loadOccurrences: false, dateRangeStart: today }).relatedTo( category ).ids() %} | |
{% for id in classIds %} | |
{% set event = craft.calendar.event(id, { | |
occurrenceRangeStart: "today", | |
occurrenceRangeEnd: "6 months", | |
occurrenceLimit: 1 | |
}) %} | |
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
PageReference pdf = Page.PrintSet; | |
pdf.getParameters().put('id',customerId); | |
pdf.setRedirect(true); | |
// Take the PDF contents | |
Blob b = pdf.getContent(); | |
// Create the email attachment | |
Messaging.EmailFileAttachment efa = new Messaging.EmailFileAttachment(); |
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
public PageReference nominate() | |
{ | |
try { | |
// check to see if anyone else has already nominated someone with this email addres in this same year | |
Application__c application = [select Id from Application__c where Nomination_Round__r.Grant_Round__c = :NominationRound.Grant_Round__c and email__c = :newapplicant.Email__c limit 1]; | |
// if so make a second instead of an application | |
Second__c Second = new Second__c(); |
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
if [ -d "releases/${execution.to_revision.revision}" ] && [ "${execution.refresh}" = "true" ]; then echo "Removing: releases/${execution.to_revision.revision}" && rm -rf releases/${execution.to_revision.revision}; fi | |
if [ ! -d "releases/${execution.to_revision.revision}" ]; then echo "Creating: releases/${execution.to_revision.revision}" && cp -dR deploy-cache releases/${execution.to_revision.revision}; fi | |
echo "Linking current to revision: ${execution.to_revision.revision}" | |
rm -f current | |
ln -s releases/${execution.to_revision.revision} current | |
echo "Removing old releases" | |
cd releases && ls -t | tail -n +11 | xargs rm -rf |
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
curl -L http://craftcms.com/latest.zip?accept_license=yes > craft.zip | |
unzip craft.zip -d .tmp | |
rsync -r .tmp/craft/app craft | |
rm -R .tmp | |
mkdir -p craft/storage | |
rm craft.zip |