`
orcl_zhang
  • 浏览: 234400 次
  • 性别: Icon_minigender_1
  • 来自: 杭州
社区版块
存档分类
最新评论
文章列表
引用 \documentclass[a4paper,10pt]{article} \usepackage[utf8x]{inputenc} \usepackage{graphicx} \usepackage{subfigure} %opening \title{} \author{} \begin{document} \makeatletter\def\@captype{figure}\makeatother \begin{minipage}{0.3\textwidth} \centering \section{ Standard } \includegraphics[scale=0.40] ...

calendar

http://fullcalendar.vinsol.com/ https://github.com/elevation/event_calendar

Toolkit

backup #!/bin/sh # Endysis application backup script RAILS_APP_PATH="/var/www/rails/webapp" BACKUP_PATH="/home/god/backup" DATE="$(date +%d-%m-%y)" YEAR="$(date +%Y)" MONTH="$(date +%m)" DAY="$(date +%d)" cd $BACKUP_PATH echo ...
原文在这里: http://fanqiang.chinaunix.net/system/linux/2005-06-13/3306.shtml cron是一个linux下的定时执行工具,可以在无需人工干预的情况下运行作业。由于Cron 是Linux的内置服务,但它不自动起来,可以用以下的方法启动、关闭这个服务:   /sbin/service crond start //启动服务   /sbin/service crond stop //关闭服务   /sbin/service crond restart //重启服务   /sbin/service crond reload //重新载 ...

ActiveRecord::Dirty

引用Track unsaved attribute changes. A newly instantiated object is unchanged: a=ManufacturingElement.new >> a.changed? => false >> a.uom= => "m" >> a.chan => true 在after save中,changed?不会重置为false,所有callbacks成保存成功后,changed?变为false。

rsync

    Performing an rsync .....     http://rsync.samba.org/

Metaprogramming Ruby

    博客分类:
  • ruby
P30 In a sense, the class keyword in Ruby is more like a scope operator than a class declaration.
    这个题目来自于《编程之美》第1.2节。题目的大致意思是说,棋盘上只有一将一帅,将帅都只能在各自的九宫格中移动,并且将帅不能对面。要求只使用一个变量输出将帅所有可能的位置组合。     对于A,B各有9个可以选择的位置.可以考虑A,B都是9进制,只要保证A,B除以9的余数不同,即使A,B不在同一纵列上就满足条件. (0..81).each do |i| puts "A:#{i/9+1},B:#{i%9+1}" if i/9%3 != i%9%3 end    
来源http://www.51testing.com/?uid-225738-action-viewspace-itemid-206878 当我修改了/etc/profile文件,我想让它立刻生效,而不用重新登录;这时就想到用source命令,如:source /etc/profile 对source进行了学习,并且用它与sh 执行脚本进行了对比,现在总结一下。 source命令: source命令也称为“点命令”,也就是一个点符号(.),是bash的内部命令。 功能:使Shell读入指定的Shell程序文件并依次执行文件中的所有语句 source命令通常用于重新执行刚修改的初始化文件,使之 ...

TinyTDS

tiny_tds https://github.com/rails-sqlserver/tiny_tds freetds http://www.freetds.org/

RVM Install

    博客分类:
  • ruby
http://beginrescueend.com/

json

    博客分类:
  • ruby
http://flori.github.com/json/

pandoc-ruby

https://github.com/alphabetum/pandoc-ruby 引用PandocRuby Wrapper for Pandoc, a Haskell library with command line tools for converting one markup format to another. Pandoc can read markdown and (subsets of) reStructuredText, HTML, and LaTeX, and it can write markdown, reStructuredText, HTML, LaTeX, Co ...
Rabbit MQ http://www.rabbitmq.com/ bunny https://github.com/ruby-amqp/bunny minion https://github.com/orionz/minion amq-protocol https://github.com/ruby-amqp/amq-protocol eventmachine https://github.com/eventmachine/eventmachine amq-client https://github.com/ruby-amqp/amq-client amqp https://gi ...
经常忘记这个函数.mark下. 引用end_of_day, end_of_month, end_of_quarter, end_of_week, end_of_year
Global site tag (gtag.js) - Google Analytics