Ruby China
  • Topics
  • 招聘
  • Wiki
  • 酷站
  • Gems
  • Sign Up
  • Sign In
JustQyx
@hz_qiuyuanxin
VIP
NO. 2099 / 2012-05-06

[email protected]
DJI
深圳
22 Topics / 614 Replies
12 Followers
46 Following
195 Favorites
教育的目的,不是培养人们适应传统的世界,不是着眼于实用性的知识和技能,而要去唤醒学生的力量,培养他们自我学习的主动性,抽象的归纳力和理解力,以便使他们在目前无法预料的种种未来局势中,自我做出有意义的选择
Reward
GitHub Public Repos
  • affirm-ruby 1

    Ruby client library for integrating with Affirm financing payments

  • elasticsearch-with-ik 1

    Just some packages, not a project

  • gfwlist 1

    The one and only one gfwlist here

  • aliyun-oss-ruby-sdk 0

    Aliyun OSS SDK for Ruby

  • pdf_handler 0

    Replace text in pdf

  • ruby_torna_sdk 0

  • RSSHub 0

    🍰 Everything is RSSible

  • justqyx.github.io 0

  • node-torna-sdk 0

  • haoel.github.io 0

More on GitHub
  • Overview
  • Topics
  • Replies
  • Favorites
  • Following
  • Followers
  • 如何在服务器上实现 Rails 项目的的快速迭代,快速更新? at April 20, 2013

    Recommend:capistrano + unicorn

  • 依然是蛋疼的微信 API at April 17, 2013

    不错哦!这是个好想法!

  • Sinatra 微信机器人演示 at April 17, 2013

    写得好复杂!!!

    来点简单的

    require 'sinatra'
    module Weixin
      class App < Sinatra::Base
        before do
          timestamp, nonce = params[:timestamp].to_s, params[:nonce].to_s
          codes = ["bluelion", timestamp, nonce].sort.join("")
          halt(401, 'Go away!') unless Digest::SHA1.hexdigest(codes) == params[:signature]
        end
    
        get "/robot" do
          params[:echostr]
        end
    
        post "/robot" do
          // 在这里添加你的逻辑
        end
    
      end
    end
    
    ```ruby
    
  • 请问有没有专门介绍 Gem 测试的文章的? at April 12, 2013

    #1 楼 @zgm rspec 和 testunit 我都在 rails app 里写过,但我不知道 gem 里用 rspec 的话,原理之类的!

  • 初学者连载系列之六:Ruby 编程之正则表达式详解 at April 08, 2013

    请问,剔除一串字符串中非数字的正则表达式怎么写?

  • 贡献一个 Sublime 自动安装插件脚本 at April 07, 2013

    #5 楼 @ericguo 谢谢建议哈,待改进!

  • 贡献一个 Sublime 自动安装插件脚本 at April 07, 2013

    #1 楼 @ericguo 弄过几次之后你就会发现很烦了。

  • 贡献一个 Sublime 自动安装插件脚本 at April 07, 2013

    #2 楼 @hbin 用了啊,也是挺快的,但是有时候重装或者怎样地,就麻烦很多了

  • Linux 下相对较新的 Sublime Text 2 中文输入解决方法 at April 07, 2013

    #10 楼 @tailang ubuntu11.04

  • Linux 下相对较新的 Sublime Text 2 中文输入解决方法 at April 06, 2013

    好麻烦!搞了一下,还是不行!

    找不到 sublime 默认安装的位置

  • 推荐 2 本中高级的 Ruby 书籍 at March 20, 2013

    #19 楼 @neverlandxy_naix 原来是这两本啊,设计模式看了开头!元编程看了一半,罪过罪过!

  • 推荐 2 本中高级的 Ruby 书籍 at March 19, 2013

    求中文版 ...

  • [杭州][2013年03月19日] Ruby Tuesday 活动公告 at March 18, 2013

    欢迎欢迎😊

  • gem install pg 错误 问题出在哪里呢? at March 11, 2013

    冒昧问一下,pg 是什么来的?

  • [原创] Ruby 初学者水平自测代码 at March 10, 2013

    included里的代码可以更加简洁

    base.extend, ClassMethods # or base.send :extend, ClassMethods
    base.include, InstanceMethods
    
  • jQuery 少见的 bind 写法 at March 06, 2013

    #6 楼 @lgn21st 小弟那时候才刚接触 rails,而且相当长一段时间还是用 prototype,不过还是自己学习不够,让大侠见怪啦。。

  • jQuery 少见的 bind 写法 at March 06, 2013

    #3 楼 @lgn21st 原来是 jquery_ujs 的,吭啊!谢谢大侠指点啦!!

  • jQuery 少见的 bind 写法 at March 06, 2013

    #1 楼 @lgn21st 不是说找不到 bind,而是 "ajax:success",一般常见的都是 "click" 之类的,没见过 ajax 的 success 事件可以这样绑定的

  • rails_kindeditor 的问题 at February 04, 2013

    在显示内容时又遇到了问题,直接这样

    <div class='content'><%= @user1_safe %></div>
    

    这样就能显示文章的内容啦,嘿嘿

  • rails_kindeditor 的问题 at February 04, 2013

    还是自己解决了,在此分享一下 这是我的 form 表单

    <title><%= content_for :title do %>新建文章<% end %></title>
    <%= javascript_include_tag 'kindeditor' %>
    <%= stylesheet_link_tag 'web/article/new' %>
    <%= javascript_include_tag '/plugin/jquery.form.js' %>
    
    <script type="text/javascript" charset="utf-8">
      $(function(){
        KindEditor.ready(function(K){
          var contentEditor = K.create("textarea[name='content']",{
            height:400,
            width:"100%",
            allowFileManager:true,
            // 文件上传提交路径
            uploadJson:"/kindeditor/upload",
            fileManagerJson:"/kindeditor/filemanager",
            // 下面这两行最重要了,就是用来同步数据的
            afterCreate: function(){ this.sync(); },
            afterBlur: function(){ this.sync(); }
          });
        });
      });
    </script>
    
    <div class='placeholder'></div>
    <div class='page-container'>
      <form id='article'>
      <div class='title'><input name='title' placeholder='请填写标题...' /></div>
      <!--<div class='content'><%= kindeditor_tag :content, '', :height=>400 %></div>-->
      <div class='content'><textarea name='content'></textarea></div>
      <div class='submit'><input type='submit' value="保存"/></div>
      </form>
      <!--<%= form_for @article, { :url => "/web/article", :method => :post } do |f| %>-->
      <!--  <div class='title'><%= f.text_field :title, :class=>"title" %></div>-->
      <!--  <div class='content'><%= f.kindeditor :content, :height=>400 %></div>-->
      <!--  <div class='submit'><%= f.submit '保存' %></div>-->
      <!--<% end %>-->
    </div>
    

    取得数据的方法,自己可在 console 里试试

    $("textarea[name='content']").val();
    
  • 微信公众平台测试问题 at February 04, 2013

    #2 楼 @naitnix 我的也已经在跑了,不过就是玩玩。

  • 哪个富文本编辑器好一些? at February 04, 2013

    #25 楼 @Macrow 请问,为什么上传文件的控制器没有呢?

    Started POST "/kindeditor/upload?dir=image" for 127.0.0.1 at 2013-02-04 10:45:52 +0800
    Processing by Web::ApplicationController#render_not_found as */*
      Parameters: {"Filename"=>"image-1.jpg", "imgFile"=>#<ActionDispatch::Http::UploadedFile:0xc08742c @original_filename="image-1.jpg", @content_type="application/octet-stream", @headers="Content-Disposition: form-data; name=\"imgFile\"; filename=\"image-1.jpg\"\r\nContent-Type: application/octet-stream\r\n", @tempfile=#<File:/tmp/RackMultipart20130204-4078-1x5t406>>, "Upload"=>"Submit Query", "dir"=>"image", "path"=>"kindeditor/upload"}
    
  • 微信公众平台测试问题 at January 25, 2013

    同求,看了它的文档,都不明白它请求的 params 是什么,连调试都没有,这马化腾!

  • 如何在 CAE (盛大云引擎) 部署 Ruby-China? at January 15, 2013

    3.2.8 版本的,启动都不成功;

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