Search result of: ty so
Total 30 records
TypeScript Rails 的中后台解决方案,它使用了最新的前端技术栈,并提炼了典型的业务模型,页面,包括二次封装组件、动态菜单、权限校验、粒子化权限控制等功能,它可以帮助你快速搭建企业级中后台项目,该项目使用最新的前端技术栈,相信不管是从新技术使用还是其他方面,都能帮助到你。 我以 vite_javascript_tag vite_stylesheet_tag 各自代替了 javascript_include_tag stylesheet_link_tag helper,并把 vite.json 中的 sourceCodeDir
software." ^~~~~ In file included from ossl.h:219:0, from ossl_x509store.c:11: openssl_missing.h:79:35: error: macro "EVP_MD_CTX_create" passed 1 arguments, but takes just
source (1.1.3) daemon-spawn (0.4.2) dalli (1.1.1) database_cleaner (0.7.0) delorean (1.1.1) diff-lcs (1.1.3) erubis (2.7.0) execjs (1.2.9) factory_girl (2.3.2) factory_girl_rails (1.4.0) faraday (0.7.5) ffaker (1.10.1) hashie (1.2.0) highline (1.6.8) hike
soon) 安装 for Ubuntu Server $ sudo apt-key add nginx_signing.key 添加 /etc/apt/sources.list.d/unit.list deb https://packages.nginx.org/unit/ubuntu/ xenial unit deb-src https://packages.nginx.org/unit/ubuntu/ xenial unit 执行安装: $ sudo apt-get install unit $ sudo apt-get install
今天故事的主角还是大家熟识的二狗子。二狗子拿到了一笔项目奖金,在好好犒劳了自己一顿后,决定把剩下的钱在银行存个定期。 他用浏览器访问了 www.bank.com,输入了用户名和密码后,成功登录。 bank.com 返回了 cookie 用来标识二狗子这个用户。 不得不说,浏览器是个认真负责的工具,它会把这个
socket 、http 库等进行了测试发现确实可实现协程调度 require "fiber_scheduler" require "open-uri" Fiber.set_scheduler(FiberScheduler.new) Fiber.schedule do URI.open("https://httpbin.org/delay/2") end Fiber.schedule do URI.open("https://httpbin.org/delay/2") end 但是用基于 libcurl typhoeus
source = "terraform-aws-modules/vpc/aws" name = "test_vpc" cidr = "10.0.0.0/16" azs = ["us-west-2a"] public_subnets = ["10.0.1.0/24", "10.0.2.0/24"] private_subnets = ["10.0.101.0/24", "10.0.102.0/24"] enable_nat_gateway = true } ## 创建 Random 的动物名字 resource
socket' server = TCPServer.open('127.0.0.1', 8080) loop { Thread.start(server.accept) do | client | loop{ #puts client lines = [] while line = client.gets and line !~ /^\s*$/ lines << line.chomp end #puts lines resp = lines.join("") headers = ["HTTP/1.1 200 OK", "Date
sort expose(:section_name) {|model, opts| model.section.name.to_s rescue "" } end end end 于是乎,我就照着写了一个类似的 resource :rooms do get '/' do @rooms = Room.limit 30 present @rooms, :with => APIEntities::Room end end 以及 module APIEntities class Room < Grape
周五了,欢天喜地地准备部署一把,周末去 High 了。在内网的模拟生产环境的服务器 capstrano 一把,过了,于是,淡定地敲出线上的 cap 命令,回车后,就尿尿去了
虽然大环境下“分离先行”的今天 flash 越发淡出众人的视野,不过坚持用 ActiveAdmin 写后台的我跟它打交道还是蛮多的,今天就想简单聊聊它的内部实现。原文链接:https://www.lanzhiheng.com/posts/source-code-of-rails-flash Flash,中文可翻译成闪现
source ~/.zshrc # 如果使用 zsh 3. Windows 下如何设置 docked 别名? Windows 系统中,可以通过以下方式设置 PowerShell 别名: # 查看 PowerShell 配置文件的路径 echo $PROFILE # 输出类似:C:\Users\用户名\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1 # 如果该文件不存在,可以使用命令创建 New-Item -Path $PROFILE -Type
typography, layout and colour Obsessed with the user experience and design with the user’s goals in mind, carefully considering all possible complications Has an opinion of what parts of HTML5 and CSS3 should really
type": "string", "index_options": "docs" } } } } } Inverse document frequency 某个关键词 (term) 在索引 (单个分片) 之中出现的频次. 出现频次越高, 这个词的相关度越低. 相对的, 当某个关键词 (term) 在一大票的文档下面都有出现, 那么这个词在计算得分时候所占的比重就要比那些只在少部分文档出现的词所占的得分比重要低. 说的那么长一句话, 用人话来描述就是 "物以稀为贵", 比如, '的', '得', 'the' 这些一般在一些文档中出现的频次都是非常高的, 因此, 这些词占的得分比重远比特殊一些的词 (如'Solr
Solution Presentation that precisely meets the needs of the prospect Demonstration Service Capability Demonstration internally and externally Request for Proposal (RFP) pre-sales have a detailed knowledge of the TW-Product Evolution Service, in addition
solution you can consider is to separate in two separate models what is content (ie: what we need to keep track of over time) and what’s immutable over time. | Post | | Post::Content | |======================| |=============| | author
因为是 Linux 新手,所以在 deploy ROR 项目中出现了很多乱七八糟的权限问题。大家帮忙看看看这中间到底是神马情况 注:文科专业转行自修,木有进过网络公司,木有入过团队。看到太 2 的地方
sort.each { |file| require file } 然后,在你的系统测试中,使用require "system_helper"来激活该配置。 我们为系统测试使用了一个单独的 helper 文件和一个 support 文件夹,以避免在我们只需运行一个单元测试时加载所有多余的配置。 capybara_setup.rb 这个文件包含针对 Capybara 框架的配置: # spec/system/support/capybara_setup.rb # Usually, especially when using Selenium, developers tend to increase the max wait time. # With
就像 Matz 说的, 现在处于静态类型的 hype 期. 就连动态语言比如 PHP, Python, Javascript(TS) 都弄出了所谓静态检查. 认为只有这样才能减少 bug. 今天看到篇文章对
socket' server = TCPServer.open('127.0.0.1', 8080) loop { Thread.start(server.accept) do | client | loop{ #puts client lines = [] while line = client.gets and line !~ /^\s*$/ lines << line.chomp end puts Thread.current puts lines #resp = lines.join("") resp="aaabbb123" headers = ["HTTP/1.0
source index from http://ruby.taobao.org/ Using rake (10.0.3) Using i18n (0.6.1) Using multi_json (1.5.0) Using activesupport (3.2.11) Using builder (3.0.4) Using activemodel (3.2.11) Using erubis (2.7.0) Using journey (1.0.4) Using rack (1.4.3) Using rack
Software 1 class MyClass 2 def foo(x,y,z) 3 if x 4 if (y && z) then bar(0) end 5 else
sort end end puts "----------" puts "基本设计模式" =begin 常用设计模式举例, 分别有什么典型应用? =end # 工厂模式 class CashBase def total raise "need implement" end end class Cash < CashBase def total(n) p n end end class CashVip < CashBase def initialize