- 进入你的
home
目录
cd ~
- 编辑
.bashrc
文件
$(function(){ | |
var refresh_id; | |
var scrollToBottom = function(){ | |
$("html, body").animate({ scrollTop: $(document).height() }, 1000); | |
} | |
var refreshDeploymentTrace = function(){ | |
var deployment_id = $('.deployment-show-page').data('id') |
# encoding: utf-8 | |
require 'redis' | |
require 'thread' | |
begin | |
require "active_model/model/validations" | |
rescue LoadError | |
end |
# a project have many steps | |
class Step | |
module ChainedList | |
extend ActiveSupport::Concern | |
included do | |
# DNode | |
field :prior_step_id, type: BSON::ObjectId | |
field :next_step_id, type: BSON::ObjectId | |
end |
# encoding: utf-8 | |
require 'redis' | |
require 'redis/connection/hiredis' | |
class RedisQueue | |
attr_reader :redis, :queue, :buffer, :timeout | |
attr_accessor :buffer_max | |
def initialize(queue_name, options = {}) |