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
### First style | |
class Something | |
def foo | |
"foo" | |
end | |
protected | |
def bar | |
"bar" | |
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
1 2 3 4 5 6 7 8 9 | |
bit 01234567 01234567 01234567 01234567 01234567 01234567 01234567 01234567 01234567 | |
-------------------------------------------------------------------------------- | |
bin 01010011 01010010 11001010 10110010 11010101 00101100 10110011 01001010 11001101 | |
dec 83 82 202 178 213 44 179 74 205 | |
01010011 01010010 11001010 10110010 11010101 00101100 10110011 01001010 11010011 | |
211 | |
01010011 01010010 11001010 10110010 11010101 00101100 10110011 01001010 10110101 |
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
You're going to want to spend a minimum of 800 dollars on a paper shredder. Any | |
less than that and the quality is going to be so low you'll want to replace the | |
damn thing within 5 years, but you won't be able to because your identity will have | |
been stolen and your bank account emptied. | |
If you're serious about shredding, get something with carbide cutting heads and at | |
least a .5HP motor. I have a Rawlings-Chamberlain MK220 AKA "The Silver Knight". It | |
comes fully loaded with a dual rubber roller feeder and 6 layer hopper to separate | |
different kinds of paper, wood, metal, etc.. I can shred a New York telephone book | |
in under 15 seconds. The built in milling computer lets me customize the shred pattern |
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
ack gpsd libusb postgresql | |
ansible graphicsmagick libusb-compat proj | |
apple-gcc42 htop-osx libvo-aacenc protobuf | |
autoconf httpie libvorbis qt | |
automake iftop libvpx readline | |
avrdude imagemagick libxml2 redis | |
brew-cask ino libxslt s-lang | |
cmake irssi libyaml s3cmd | |
colordiff jbig2dec little-cms2 scons | |
coreutils jpeg lzlib sqlite |
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
util.puts: Use console.log instead | |
Didn't find a name for constructor | |
/usr/local/bin/jsctags:195 | |
throw e; | |
^ | |
Error: Didn't find a name for constructor | |
at errorWithCode (/usr/local/lib/cfa2/jscfa.js:157:11) | |
at Array.Aobj.toType (/usr/local/lib/cfa2/jscfa.js:1574:11) | |
at /usr/local/lib/cfa2/jscfa.js:1994:18 | |
at /usr/local/lib/cfa2/jscfa.js:2022:39 |
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
export ANSI_NORMAL="\[\e[0;37m\]" | |
export ANSI_YELLOW="\[\e[1;33m\]" | |
export ANSI_RESET="\[\e[0m\]" | |
export ANSI_CYAN="\[\e[0;36m\]" | |
export ANSI_BLUE="\[\e[0;34m\]" | |
export PS1="($ANSI_CYAN\u$ANSI_YELLOW@$ANSI_CYAN\h$ANSI_RESET):\w\$ " |
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
body { | |
background-color: #4B7399; | |
font-family: Verdana, Helvetica, Arial; | |
font-size: 14px; | |
} | |
a img { | |
border: none; | |
} |
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 SectionsController < ApplicationController | |
load_and_authorize_resource | |
expose(:section) | |
expose(:sections) { search.paginate(:page => params[:page]) } | |
expose(:search) { Section.search(params[:search]) } | |
def create | |
if section.save |
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
⨀_⨀ | |
⨂_⨂ | |
(/◔ ◡ ◔)/ | |
°ﺑ° | |
(¬_¬) | |
(´・ω・`) | |
(ʘ_ʘ) | |
(ʘ‿ʘ) | |
(๏̯͡๏ ) | |
(◕_◕) |
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_record/base' | |
require 'active_record/connection_adapters/abstract_adapter' | |
require 'active_record/connection_adapters/postgresql_adapter' | |
module ActiveRecord | |
module ConnectionAdapters | |
class PostgreSQLAdapter < AbstractAdapter | |
def next_sequence_value(sequence_name) | |
Integer(select_value("SELECT NEXTVAL('#{sequence_name}')")) | |
end |
OlderNewer