Skip to content

Instantly share code, notes, and snippets.

#encoding: UTF-8
class UploadController < ApplicationController
include CandidatesControllerHelper
skip_filter :authenticate_user!, only: [:callback]
layout false
def resume
@bucket = Qiniu::RESUME_BUCKET_NAME # bucket name
generate_upload_token @bucket
response.headers['Access-Control-Allow-Origin'] = '*'
@chaomao
chaomao / EventCountingQueueProcessor.java
Last active December 19, 2015 22:58
Disruptor performance test
package com.lmax.disruptor.support;
import com.lmax.disruptor.util.PaddedLong;
import java.util.Arrays;
import java.util.concurrent.BlockingQueue;
import static java.lang.Thread.sleep;

RSpec Style Guideline

Please follow this guideline to refine your rspec, make sure code is better after you modify anything

use :type and Rspec in declaration

RSpec.describe Api::UsersController, type: :controller do
	...
end

there are also some other types

@chaomao
chaomao / feature_test.md
Created July 24, 2016 10:37
list everything about feature test

Automation Test

  • End to End Test
  • Integration Test
  • Unit Test

In my mind, smoking test is end to end test, feature test is integration test. We want to enable everybody writing automation test.

End To End Test

{"lastUpload":"2022-04-05T09:24:01.108Z","extensionVersion":"v3.4.3"}