Ruby China
  • Topics
  • 招聘
  • Wiki
  • 酷站
  • Gems
  • Sign Up
  • Sign In
Miclle Zheng
@miclle
VIP
NO. 250 / 2011-11-24

[email protected]
上海
52 Topics / 707 Replies
23 Followers
2 Following
171 Favorites
码农,骑公路自行车
GitHub Public Repos
  • qroom 2

  • space 2

  • linuxtools_rst 2

    Linux工具快速教程

  • miclle.github.io 1

    Miclle's web site

  • fox 1

    Fullstack web framework

  • godoc 1

  • thinking-in-crud 1

  • stack-go 1

  • api-guidelines 1

    Microsoft REST API Guidelines

  • gallery 1

    Get image info lib.

More on GitHub
  • Overview
  • Topics
  • Replies
  • Favorites
  • Following
  • Followers
  • [调查] 2015年 你会选 Angular.js 还是 Ember.js 呢? at March 05, 2015

    angular

  • 如何使用 Rails 建立可跨域访问的 API? at February 27, 2015

    #7 楼 @cassiuschen 前端都不可能解决跨域的问题必须要后端配合,只是看到你的代码后,给你推荐下 angular resource,与主题无关

    window.ApiBaseUrl 这个可以使用 angular constant 来做

  • 如何使用 Rails 建立可跨域访问的 API? at February 27, 2015

    #3 楼 @cassiuschen 省事 rails 天然就是支持 restful 的,如果用 angular resource 去对接的话相当方便,省了很多代码

    angular.module('app').factory 'Customer', [
      '$resource', 'SERVICE'
      ($resource, SERVICE) ->
    
        $resource "#{SERVICE.API}/customers/:id", {id: '@id'},
          update:
            method: 'PUT'
    ]
    
    $scope.customers = Customer.query()
    

    https://docs.angularjs.org/api/ngResource/service/$resource

  • 如何使用 Rails 建立可跨域访问的 API? at February 27, 2015

    rack-cors

    angular resource 很不错啊,可以试试

  • Rails 使用 Mongoid 出现 Cant canonicalize query at February 16, 2015
    session[:user_id] = user.id.to_s
    
  • 有人用七牛来存图片吗? at February 11, 2015

    #8 楼 @cqcn1991 自己可以写代码迁移, 或者用七牛的同步工具 http://developer.qiniu.com/

  • 使用 AngularJS 从零构建大型应用 at February 11, 2015

    #22 楼 @debugger 理由呢?

  • 有人用七牛来存图片吗? at February 10, 2015

    #6 楼 @huihen python 好用还是 rails 好用?

  • 有人用七牛来存图片吗? at February 09, 2015

    直接在七牛后台定义好就可以了

    
    class ImageUploader < CarrierWave::Uploader::Base
    
      # eg. post.image.thumb
      %w(large medium thumb).each do |version|
        define_method version do
          "#{qiniu_protocol||"http"}://#{qiniu_bucket_domain}/#{model.class.to_s.underscore}/#{model.attributes["image"]}/#{version}" unless model.image.blank?
      end
    
    end
    
  • [上海][2015年02月10日] 年末聚会 at February 05, 2015

    #3 楼 @gene_wu 月度聚会我司可以提供场地,设备和零食

  • 使用 AngularJS 从零构建大型应用 at February 04, 2015

    #14 楼 @xhj6 一开始就用 Yeoman + Grunt 目录结果就是第一种,就保持下来了 Yeoman + Gulp 好像就是你那种

  • 使用 AngularJS 从零构建大型应用 at February 04, 2015

    #5 楼 @xhj6 两种都差不多,各有特点 http://stackoverflow.com/questions/18542353/angularjs-folder-structure https://scotch.io/tutorials/angularjs-best-practices-directory-structure

  • 使用 AngularJS 从零构建大型应用 at February 04, 2015

    没有用 CoffeeScript , Yeoman, Grunt, angular-ui-router, angular-bootstrap 么?多好的东西啊!

    controllers 目录我会拆得更细,比如: │─ controllers │─│─ customes │─│─│─ index.js │─│─│─ new.js

    对应的 views 也是如此

  • 即将离职, 想买台苹果电脑, 不知道什么配置的合适,求大家指点 at January 30, 2015

    15 寸 RMBP 官网高配,内存,SSD,屏幕都够大,而且还有独立显卡!

    楼主要不要来我司 (七牛)? 我司自带设备可以报销 8K,维修基金 1K。这台 MAC 是我司年度旅游北海道时所买,比国内行货便宜 5K,比港行便宜 1K,报销完了后自己只出了 5K

  • 为何 Bootstrap 把编译生成的文件也上传到 GitHub 呢? at January 25, 2015

    用 bower 管理的时候需要

  • [北京 / 远程] 墨刀 (MockingBot) 招聘 Rails 全栈工程师 at January 20, 2015

    :plus1:

  • [上海][2015年01月20日] 2015年 第一次月中聚会 技术聚会 at January 17, 2015

    想参加

  • [前端知识] Flexbox,更优雅的布局 at January 16, 2015

    :plus1:

  • [上海][2014年12月20日] 上海及长三角年度聚会 (12 月 19 日 求借移动投影屏幕) at December 17, 2014

    公司组织旅游,遗憾错过

  • [上海][2014年12月20日] 上海及长三角年度聚会 (12 月 19 日 求借移动投影屏幕) at November 22, 2014

    :plus1:

  • 求更精简的写法 at November 20, 2014
    Number.prototype.to_char = function() {
      return (this >= 0 && this < 26) ? String.fromCharCode(this + 65) : "number >= 0 and < 25"
    };
    
    Number.prototype.to_char = function() {
      return String.fromCharCode(this + 65)
    };
    

    0..to_char() 1..to_char() 2..to_char()

  • 求更精简的写法 at November 20, 2014
    function i_to_char(z) {
        return (z >= 0 && z < 26) ? String.fromCharCode(z + 65) : "undefined z in i_to_char(z)"
    }
    
  • 写完了,天快亮了,81 页 at November 01, 2014

    很赞的分享,谢谢

  • 使用 qiniu 作为 carrierwave 的云存储,出现 401 unauthenticated at October 25, 2014

    没有日志啥的么?

  • [2014 年][10 月 20 日~11 月 12 日] 七牛三周年嘉年华,感恩有你! at October 22, 2014

    27

  • [上海][2014年10月21日] 2014 年 10 月 周中聚会 at October 19, 2014

    :plus1:

  • FFTS.IO [更新] at October 13, 2014

    #14 楼 @kenshin54 修改了上传界面,下载加了个二维码

  • FFTS.IO [更新] at October 08, 2014

    #9 楼 @hging 最大不超过 500MB

  • FFTS.IO [更新] at October 08, 2014

    #8 楼 @wikimo 暂时还没加,后面会写个定时任务去删除

  • Prev
  • 1
  • 2
  • 3
  • 4
  • 5
  • …
  • 22
  • 23
  • Next
关于 / RubyConf / Ruby 镜像 / RubyGems 镜像 / 活跃会员 / 组织 / API / 贡献者
由众多爱好者共同维护的 Ruby 中文社区,本站使用 Homeland 构建,并采用 Docker 部署。
服务器由 赞助 CDN 由 赞助
iOS 客户端 / Android 客户端 简体中文 / English