Skip to content

Instantly share code, notes, and snippets.

@raviolicode
raviolicode / gist:2d56f19fbe4cd03aba6545e3d1ea0928
Last active March 27, 2018 10:04 — forked from afair/gist:2402068
Perl References for Kittens

Perl References

Simple Perl variables are called scalars. Examples of scalar values are

   $number      = 123;
   $string      = "String";
   $file_handle = open "<filename";
   $null_value  = undef;
 $reference = \"Reference of a String";
sudo yum groupinstall “Development tools”
mkdir -p ~/rpmbuild/{BUILD,RPMS,SOURCES,SPECS,SRPMS}
echo '%_topdir %(echo $HOME)/rpmbuild' >> .rpmmacros
echo '%debug_package %{nil}' >> .rpmmacros
@raviolicode
raviolicode / .zshrc
Last active August 29, 2015 13:56
Zshrc
# Path to your oh-my-zsh configuration.
ZSH=$HOME/.oh-my-zsh
# Set name of the theme to load.
# Look in ~/.oh-my-zsh/themes/
# Optionally, if you set this to "random", it'll load a random theme each
# time that oh-my-zsh is loaded.
ZSH_THEME="kafeitu"
# Example aliases
require 'abstract_unit'
class ParentController < ActionController::Base
protect_from_forgery
layout Proc.new { |controller| controller.request.xhr? ? '/layouts/xhr' : '/layouts/standard' }
end
class ChildController < ParentController
def render_implicit_html_template_from_xhr_request
render :template => "test/hello_world"