This file contains hidden or 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
:) cat /proc/self/status | |
Name: cat | |
State: R (running) | |
SleepAVG: 89% | |
Tgid: 13668 | |
Pid: 13668 | |
PPid: 24697 | |
TracerPid: 0 | |
Uid: <removed> | |
Gid: <removed> |
This file contains hidden or 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
$ make foo | |
... | |
$ ^foo^bar | |
make bar |
This file contains hidden or 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
# Sanitizing/Escaping HTML in the view is inefficient because it | |
# happens every time the view is rendered. This module forces | |
# text and string fields to be sanitized every time they are | |
# modified and saved to the database. | |
module Sanitizer | |
def sanitize_fields | |
columns = self.class.columns_hash | |
changes.each do |key,value| | |
if columns[key].type == :text | |
Sanitize.clean! value[1], Sanitize::Config::TEXTAREA |
This file contains hidden or 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
http://chart.apis.google.com/chart?cht=lc&chs=400x250&chd=t:24.4,28.1,25.6,24.3|26,26&chds=23.0,30.0&chco=ff0000,0000ff&chxt=y&chxr=0,23,30&chdl=Economy|Average&chf=bg,lg,90,888888,0.5,dddddd,0&chxs=0,ffffff&chma=25,25,25,25 |
This file contains hidden or 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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" | |
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
<html> | |
<head> | |
<style type="text/css"> | |
#sortable ul { | |
list-style: none; | |
display: inline; | |
padding: 0; | |
margin-left: 0; |
NewerOlder