杭州简阅科技 http://easyread.ly 招聘Rails程序员一名。
职责:
主要是产品的开发
- 开发Web财经阅读平台(超过50w UV的日访问量)
- 开发CMS和CRM
/* GET /allocate.json HTTP/1.1 */ | |
{ | |
"api": ["124.250.3.102", "124.250.3.103", "101.201.175.228", "182.92.251.113"], | |
"expires": 300, | |
"fund": ["124.250.3.84", "124.250.3.85"], | |
"https": true, | |
"im": ["124.250.3.78:8080", "124.250.3.78:80", "124.250.3.78:8400", "124.250.3.79:8080", "124.250.3.78:443", "124.250.3.79:443", "124.250.3.78:8443", "124.250.3.79:8400", "124.250.3.79:8443", "124.250.3.79:80"], | |
"pingan": ["124.250.3.102", "124.250.3.101"], | |
"promo": ["124.250.3.102", "124.250.3.103"], | |
"stock": ["182.92.251.113", "101.201.175.228", "124.250.3.102", "124.250.3.103"], |
require "thread" | |
require "set" | |
Thread.abort_on_exception = true | |
# 调度器 | |
class Manager | |
def initialize | |
@job_queue = JobQueue.new | |
@workers = Set.new |
Rubygems:rails mem=0KB | |
Rubygems:i18n mem=0KB | |
Rubygems:activesupport-json_encoder mem=0KB | |
Rubygems:actionpack-action_caching mem=0KB | |
Rubygems:actionpack-page_caching mem=0KB | |
Rubygems:rails-observers mem=0KB | |
Rubygems:pg mem=1488KB | |
Rubygems:unicorn mem=0KB | |
Rubygems:unicorn-worker-killer mem=0KB | |
Rubygems:polyamorous mem=32KB |
SELECT 'normal' = 0 #=> 1 | |
SELECT 'disable' = 0 #=> 1 | |
SELECT 'disable1' = 0 #=> 1 | |
SELECT '1disable' = 0 #=> 0 | |
SELECT '123456' = 0 #=> 0 |
// 获得窗口宽高 | |
function getWindowWidthAndHeight() { | |
var width = window.innerWidth, | |
height = window.innerHeight; | |
if (width && typeof(width) == "number" && | |
height && typeof(height) == "number") { | |
return [width, height]; | |
} | |
if (document.body && document.body.offsetWidth) { |
杭州简阅科技 http://easyread.ly 招聘Rails程序员一名。
职责:
主要是产品的开发
- | |
province: 北京市 | |
cities: | |
- 北京市 | |
- | |
province: 天津市 | |
cities: | |
- 天津市 | |
- | |
province: 上海市 |
{ | |
"status":"success", | |
"lang":"", | |
"title":"\u5916\u4ea4\u90e8\u56de\u5e94\u65e5\u9a7b\u534e\u5927 | |
\u4f7f\u5750\u8f66\u60ac\u6302\u7684\u56fd\u65d7\u88ab\u62a2\uff1a\u4e2d\u65b9\u6b63\u5728 | |
\u8ba4\u771f\u8c03\u67e5[\u770b\u4e1c\u65b9]", | |
"weburl":"http://v.youku.com/v_show/id_XNDQ0MDQzMTgw.html", | |
"videoid":"XNDQ0MDQzMTgw", | |
"results":{ | |
"3gphd":[ |
#!/usr/bin/env bash | |
apt-get -y update | |
apt-get -y install build-essential zlib1g-dev libssl-dev libreadline5-dev libyaml-dev | |
cd /tmp | |
wget http://ruby.taobao.org/mirrors/ruby/1.9/ruby-1.9.3-p194.tar.gz | |
tar -xvzf ruby-1.9.3-p194.tar.gz | |
cd ruby-1.9.3-p194/ | |
./configure --prefix=/usr/local --disable-install-rdoc | |
make |
# encoding: utf-8 | |
require 'fileutils' | |
class MachineGun | |
class_attribute :page_cache_extension | |
self.page_cache_extension ||= '.html' | |
class_attribute :page_cache_directory | |
self.page_cache_directory ||= File.join(Rails.root, "public") |