Skip to content

Instantly share code, notes, and snippets.

<cffunction name="filters" returntype="void" access="public" output="false"
hint="Tells Wheels to run a function before an action is run or after an action has been run. You can also specify multiple functions and actions."
examples=
'
<!--- Always execute restrictAccess before all actions in this controller --->
<cfset filters("restrictAccess")>
<!--- Always execute isLoggedIn and checkIPAddress (in that order) before all actions in this controller except the home and login action --->
<cfset filters(through="isLoggedIn,checkIPAddress", except="home,login")>
'
@mhenke
mhenke / heroku.md
Created July 14, 2012 19:49 — forked from jaymcgavren/heroku.md
A Code TV screencast on getting started with Heroku

Description

Heroku is a simple way to publish your Rails app, and a powerful platform that will allow it to scale. In this episode, Jay McGavren gets you started with your first Heroku app. http://www.codeschool.com/code_tv/heroku

Set up your Rails app

Isolate your gem environment

  • You WANT Rails to fail locally if a gem isn't in your Gemfile
  • Otherwise you're in for a surprise when it's missing on Heroku
@xaviershay
xaviershay / build_frontend.sh
Last active December 24, 2015 20:49
SASS + Coffee + Concatenation in prod
#!/bin/bash
set -exo pipefail
BUILD_ENV=$1
if [ `uname` == 'Darwin' ]; then
OSX=1
JSCOMPRESSOR="yuicompressor --type js"
else
OSX=
@iuliandita
iuliandita / alacritty.toml
Last active October 31, 2024 23:29
Alacritty TOML config file, with all defaults present (commented out), in the proper order. Color scheme is Catpuccin Mocha.
# alacritty.toml
# commented lines are the defaults
# man 5 alacritty (>0.13) for full config manual
#import = [
#"~/.config/alacritty/catpuccin-mocha.toml",
#"~/.config/alacritty/keybindings.toml",
#]
[shell]