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 | |
class User extends UserAbstract { | |
public $old_password; | |
public $auth_hash; | |
public $usernameOnForum; |
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
require 'active_support' | |
module Connectable | |
extend ActiveSupport::Concern | |
def connect | |
puts "connecting with #{self.class.params}" | |
end | |
class_methods do |
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
# put this file to $HOME/.oh-my-zsh/custom/plugins/chpwd_profiles | |
# and add plugin name to .zshrc: plugins=(... chpwd_profiles) | |
function chpwd_profiles() { | |
local -x profile | |
zstyle -s ":chpwd:profiles:${PWD}" profile profile || profile='default' | |
if (( ${+functions[chpwd_profile_$profile]} )) ; then | |
chpwd_profile_${profile} | |
fi |
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
#! /bin/sh | |
source "$HOME/.rvm/scripts/rvm" | |
app_name=$1 | |
rvm default | |
current_ruby=`rvm current` | |
echo "Creating gemset ${app_name}..." | |
rvm gemset create $app_name |
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
error = "<%= escape_javascript flash[:error] %>" | |
unless error | |
$('tr#<%= dom_id(@category) %>').fadeOut() | |
else | |
$('#content').prepend("<%= escape_javascript render(partial: 'flashes') %>") |
NewerOlder