Skip to content

Instantly share code, notes, and snippets.

<?php
require_once(TOOLKIT . '/class.datasource.php');
Class datasourceblog_tags extends SectionDatasource{
public $dsParamROOTELEMENT = 'blog-tags';
public $dsParamORDER = 'desc';
public $dsParamPAGINATERESULTS = 'no';
public $dsParamLIMIT = '20';
@fawx
fawx / symphony.sh
Created October 1, 2012 16:05
automatic symphony setup
#!/bin/bash
echo "creating project directory.."
mkdir $1
cd $1
git init
echo "downloading symphony files.."
git remote add core git://github.com/symphonycms/symphony-2.git > /dev/null
git pull core master > /dev/null
@fawx
fawx / install.markdown
Created October 1, 2012 16:12 — forked from landonlewis/install.markdown
New Machine Setup

New Machine

What I do after I do a fresh install. Things are sorta grouped by type.

First Things First

  1. Turn on TRIM if machine has a non-Apple SSD

General Config

@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
<?xml version="1.0" encoding="UTF-8" ?>
<!--
Name: RSS feed date format to Symphony date format
Version: 1.0
Author: Brian Zerangue <brian.zerangue@gmail.com>
URL: http://symphony21.com/downloads/xslt/file/20457/
Description:
Convert RSS feed date format to Symphony date format
Convert RFC 2822 timestamp format to ISO date format (Symphony CMS date format)
// 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',
" 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
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"