Skip to content

Instantly share code, notes, and snippets.

View ademers's full-sized avatar
🧡

Andrea ademers

🧡
View GitHub Profile
@ademers
ademers / .gitignore
Created August 19, 2013 15:40
Statamic: .gitignore
# Statamic #
######################
# Ignore all files in _cache dir
_cache/
# Ignore all log files in _logs/ dir, if logging enabled
_logs/
# Ignore all files in transformed images dir
photos/resized/
@ademers
ademers / gist:6306887
Created August 22, 2013 13:08
Twitter: tweet embed
<blockquote class="twitter-tweet"><p>We can now embed Public Facebook Posts on websites.&#10;&#10;<a href="http://t.co/Bmqpq3GgSB">http://t.co/Bmqpq3GgSB</a></p>&mdash; Andrea DeMers (@ademers) <a href="https://twitter.com/ademers/statuses/370530357390888960">August 22, 2013</a></blockquote>
<script async src="//platform.twitter.com/widgets.js" charset="utf-8"></script>
@ademers
ademers / facebook-post-embed-js.html
Created August 26, 2013 23:12
Facebook: Post embed js
<div id="fb-root"></div>
<script>
(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/en_US/all.js#xfbml=1";
fjs.parentNode.insertBefore(js, fjs);
}
@ademers
ademers / craft-robots.txt
Created October 10, 2013 16:37
Craft: robots.txt
# Don't allow web crawlers to index Craft
User-agent: *
Disallow: /craft/
@ademers
ademers / app.scss
Created February 14, 2014 18:43
Zurb Foundation 5.x app.scss
@import "settings";
@import "foundation";
// Or selectively include components
// @import
// "foundation/components/accordion",
// "foundation/components/alert-boxes",
// "foundation/components/block-grid",
// "foundation/components/breadcrumbs",
// "foundation/components/button-groups",
@ademers
ademers / craft-cms-language-toggle.html
Last active October 17, 2017 11:49
Craft CMS: Language Toggle
{# Language switcher #}
{# Loop through all of the site locales, except the current one #}
{% set otherLocales = craft.i18n.getSiteLocaleIds()|without(craft.locale) %}
{% for locale in otherLocales %}
{# Is this an entry page? #}
{% if entry is defined %}
{# Find the current entry in the other locale #}
{% set localeEntry = craft.entries.id(entry.id).locale(locale).first %}
@ademers
ademers / set-project-perms.sh
Created April 21, 2016 15:29 — forked from khalwat/set-project-perms.sh
Properly set permissions for a Craft CMS install, including ensuring that files are all g-x. Set CHOWN_USER, CHOWN_GROUP, and BASE_DIR to whatever is appropriate, add directories that need to be writeable by the web server to DIRS[], then execute: sudo ./set-project-perms.sh PROJECT_NAME
#!/bin/bash
# Execute via: ./set-project-perms.sh PROJECT_NAME
# The paradigm is the entire project dir is owned by $CHOWN_USER with the group set to $CHOWN_GROUP
# $CHOWN_USER is an admin or user account that is used to edit files/templates, etc.
# $CHOWN_GROUP is the group of the webserver (e.g.: 'apache', 'nginx', 'httpd', etc.)
# The project dir permissions are set to 755 (-rwxr-xr-x) for directories and to 644 (-rw-r--r--) for files
# The permissions to $DIRS[] that need to be writeable are set to 775 (-rwxrwxr-x) for directories and
# 664 (-rw-rw-r--) for files. Add any assets directories, etc. as necessary.
# Change $BASE_DIR to the absolute path where your websites are stored (leaving it appended with '/$1')
Here are a few questions that will tee us up for a good conversation:
- Can you tell me about your project in a few sentences?
- What’s the timeframe? Does a certain event depend on this project launching?
- What are you looking for from us? Do you want us to design, build, and launch the whole site? Or do you have developers or other partners lined up and only need us for design?
- Have you already started on any part of the project? Do you have existing work? A new logo? Some rough designs or ideas for the site?
- How large is your team? What are the roles you envision on your end?
- How did you hear about our work? What specifically interests you about it? Any projects that you’re keen on?
- How much money have you set aside for this project?
- Are you talking to others about this project? Might we ask how many? What do you like about their work?
Verifying that "ademers.id" is my Blockstack ID. https://onename.com/ademers
@ademers
ademers / .gitignore
Created February 15, 2017 22:07 — forked from octocat/.gitignore
Some common .gitignore configurations
# Compiled source #
###################
*.com
*.class
*.dll
*.exe
*.o
*.so
# Packages #