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
<!-- Author: Johnneylee Jack Rollins; Email: [email protected]; --> | |
<html> | |
<head> | |
<title>{Title}{block:PostSummary} | {PostSummary}{/block:PostSummary}</title> | |
<link rel="shortcut icon" href="{Favicon}"> | |
<link rel="alternate" type="application/rss+xml" href="/rss"> | |
<link rel="stylesheet" href="http://hr1v.com/remote/black-tie/sIFR-screen.css" type="text/css" media="screen" /> | |
<link rel="stylesheet" href="http://hr1v.com/remote/black-tie/sIFR-print.css" type="text/css" media="print" /> |
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
class Role < ActiveRecord::Base | |
serialize :permissions | |
has_many :users | |
end |
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
set nocompatible " use vim defaults | |
set ls=2 " allways show status line | |
set tabstop=2 " numbers of spaces of tab character | |
set shiftwidth=2 " numbers of spaces to (auto)indent | |
set scrolloff=3 " keep 3 lines when scrolling | |
set showcmd " display incomplete commands | |
set hlsearch " highlight searches | |
set incsearch " do incremental searching | |
set ruler " show the cursor position all the time | |
set visualbell t_vb= " turn off error beep/flash |
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
#!/usr/bin/env bash | |
# This is an RVM Project .rvmrc file, used to automatically load the ruby | |
# development environment upon cd'ing into the directory | |
# First we specify our desired <ruby>[@<gemset>], the @gemset name is optional. | |
environment_id="ruby@gemset" | |
# | |
# First we attempt to load the desired environment directly from the environment |
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 "action_controller/railtie" | |
require "action_mailer/railtie" | |
require "active_resource/railtie" | |
require "rails/test_unit/railtie" | |
require "mongoid/railtie" |
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
desc "Sync the config directory." | |
task :configs do | |
run " if [ -d "#{shared_path}/config" ]; then mkdir -pv #{shared_path}/config; fi" | |
system "rsync -v config/database.yml #{user}@#{domain}:#{shared_path}/config/database.yml" | |
run "ln -nfs #{shared_path}/config/database.yml #{release_path}/config/" | |
end |
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
import _winreg | |
def DecodeKey(rpk): | |
rpkOffset = 52 | |
i = 28 | |
szPossibleChars = "BCDFGHJKMPQRTVWXY2346789" | |
szProductKey = "" | |
while i >= 0: | |
dwAccumulator = 0 |
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
Solve for i: 9x-7i > 3(3x-7u) | |
9x-7i > 3(3x-7u) | |
-9x-7i > 9x-21u | |
-7i > -21u | |
-i > -3u | |
i < 3u |
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
class Monoceros::Authentication::SessionsController < ApplicationController | |
def new | |
end | |
def create | |
user = User.authenticate(params[:login].downcase, params[:password]) | |
if user | |
session[:user_id] = user.id | |
redirect_to monoceros_dashboard_url, :notice => "Logged in!" |
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
- owner_only do | |
= link_to "My Control Panel", edit_bracket_path(@bracket), :title => 'Admin' |
OlderNewer