上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 19 下一页

2016年5月12日

摘要: 11.2 listing object’s method Oject.methods/singleton_methods/instance_methods 指定类名定义的方法在 singleton_methods MyClass.method_defined? :my_instance_method MyClass.respond_to? :my_singleton_method for... 阅读全文
posted @ 2016-05-12 17:03 anjuncc 阅读(116) 评论(0) 推荐(0)
摘要: 一 对象模型 kernel Module Kernel.private_instance_methods.grep(/^pr/) private method 1 如果一个方法接收者不是你自己,一定要指定一个接收者 2 私有方法 只能指定一个隐含接收者(可调超类的私有方法) 类本身是Class类的对象。类的名字是个常量 Class<Module,模块和类的名字扮演目录角色,... 阅读全文
posted @ 2016-05-12 12:13 anjuncc 阅读(221) 评论(0) 推荐(0)

2016年5月5日

摘要: rake -T 列出全部taskconfig.active_record.schema_format = :sql #remove the old db/schema.rb file, create db/structure.sql 阅读全文
posted @ 2016-05-05 13:48 anjuncc 阅读(185) 评论(0) 推荐(0)

2016年5月2日

摘要: symbol 不能有- 'data-turbolinks-track' => true stop rails –s kill -INT $(cat tmp/pids/server.pid) class A puts "foobar" end 装入A类时,输出foobar object.call_method === object.__send__(:call_m... 阅读全文
posted @ 2016-05-02 23:41 anjuncc 阅读(80) 评论(0) 推荐(0)

2016年4月28日

摘要: 1.excel composer require maatwebsite/excel ~2.0.0 Maatwebsite\Excel\ExcelServiceProvider::class, 'Excel' => Maatwebsite\Excel\Facades\Excel::class, php artisan vendor:publish use Excel 自动加载 阅读全文
posted @ 2016-04-28 17:10 anjuncc 阅读(102) 评论(0) 推荐(0)

2016年4月27日

摘要: 在项目的composer.json "barryvdh/laravel-ide-helper":"dev-master" 项目config/app.php composer.json,添加一行 php artisan ide-helper:generate 阅读全文
posted @ 2016-04-27 12:00 anjuncc 阅读(121) 评论(0) 推荐(0)

2016年4月23日

摘要: 在多文件中批量替换字符串grep -rl 'windows' ./ | xargs sed -i 's/windows/linux/g' 阅读全文
posted @ 2016-04-23 22:23 anjuncc 阅读(81) 评论(0) 推荐(0)

2016年4月22日

摘要: sudo sysctl -w kern.maxfilesperproc=1048576ulimit -n 1048576 阅读全文
posted @ 2016-04-22 23:32 anjuncc 阅读(253) 评论(0) 推荐(1)

2016年4月19日

摘要: http://dmlc.ml/ 阅读全文
posted @ 2016-04-19 15:38 anjuncc 阅读(82) 评论(0) 推荐(0)

2016年4月11日

摘要: ARMr0-r4 传递参数与返回值r7 帧指针 指向母函数被调用子函数在栈看中的交界栈帧指针(Frame Pointer).指向前一个保存的栈帧(stack frame)和链接寄存器(link register, lr)在栈上的地址R12:又叫IP(intra-procedure scratch ) 阅读全文
posted @ 2016-04-11 17:55 anjuncc 阅读(165) 评论(0) 推荐(0)
上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 19 下一页

导航