Skip to content

Instantly share code, notes, and snippets.

@fawx
fawx / symphony-extensions.markdown
Created October 10, 2012 19:19
symphony extension ideas

symphony extension ideas

easy contact forms

  • simple all-in-one interface
  • choose a section with relevant fields (name, email, phone, message, etc)
  • automatically generate an event
  • automatically generate a data source
  • automatically generate page template for etm
  • display markup for developer to paste into contact form (think event creation page), including error/success message, required fields, postback field data
@fawx
fawx / css3.scss
Last active October 13, 2015 21:48
css3 mixins
// ---- CSS3 SASS MIXINS ----
// https://github.com/madr/css3-sass-mixins
//
// Copyright (C) 2011 by Anders Ytterström
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
" bundles
filetype off
set rtp+=~/.vim/bundle/vundle
call vundle#rc()
Bundle 'gmarik/vundle'
Bundle 'kien/ctrlp.vim'
Bundle 'tpope/vim-haml'
Bundle 'JulesWang/css.vim'
.DS_Store
.DS_Store?
._*
.Spotlight-V100
.Trashes
ehthumbs.db
Thumbs.db
.sql
.log
def get_total_weight_in_oz(request, order_form):
# sort the shopping cart by skus so we can match it up with
# an actual queryset of product data (mostly for the weights)
cart_by_skus = sorted( request.cart , key=lambda item: item.sku )
skus = [item.sku for item in cart_by_skus]
quantities = [item.quantity for item in cart_by_skus]
products = ProductVariation.objects.filter(product__sku__in=skus).order_by('sku')
discount = ''
discounted_products = ''
tell application "Google Chrome"
make new window
end tell
tell application "iTerm"
set myterm to (make new terminal)
tell myterm
set mysession to (make new session at the end of sessions)
tell mysession
exec command "/bin/bash -l"
├── Dockerfile
├── README.md
├── _gulp
│   ├── config.js
│   ├── tasks
│   └── util
├── app
│   ├── __init__.py
│   ├── __init__.pyc
│   ├── __pycache__
# Copyright 2013 Thatcher Peskens
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
// Map Django language codes to valid TinyMCE language codes.
// There's an entry for every TinyMCE language that exists,
// so if a Django language code isn't here, we can default to en.
var language_codes = {
'ar': 'ar',
'ca': 'ca',
'cs': 'cs',
'da': 'da',
tell application "Google Chrome"
make new window
end tell
tell application "iTerm"
set myterm to (make new terminal)
tell myterm
set mysession to (make new session at the end of sessions)
tell mysession
exec command "/bin/bash -l"