首页
学习
活动
专区
工具
TVP
发布

码生

专栏作者
107
文章
242664
阅读量
24
订阅数
webstorm 模板变量
${PROJECT_NAME} - the name of the current project.
onety码生
2018-11-21
1.1K0
react-navigation tabBar 自动跳转(代码实现跳转)
需要 在 tabBar 中的第二个 界面(tab2)中的一个按钮,点击之后跳转到 tabBar 的第一个界面
onety码生
2018-11-21
1.9K0
nginx https wss 证书配置
首先你必须要有自己域名的证书 无论在那个平台颁发的证书,都会给你 bundle.crt 和 key 两个文件的 【注】颁发的证书有的是兼容二级域名的,有的是不兼容二级域名的 把如下配置放在 server { } 里面 ssl on; ssl_certificate 这里填写 bundle.crt 文件的绝对路径,例如:/etc/nginx/ssl/***bundle.crt; ssl_certificate_key 这里填写 .key 文件的绝对路径,例如:/etc/nginx/ssl/***key; s
onety码生
2018-11-21
2.3K0
ios OC 获取所有属性、变量 class_getProperty class_copyPropertyList class_copyIvarList
class_copyPropertyList 看到名字可以看出来他是来获取属性的 只能获取到 @property 声明的属性 class_copyIvarList 用来获取所有的变量的 获取所有的变量,当然包括因 @property 修饰而自动产生的变量 _name 总结 class_copyPropertyList 只能获取到 @property 声明的属性 class_copyIvarList 用来获取所有的变量的 但是以上两个方法都只能获取到当前类的属性和变量(也就是说获取不到父类的属性和变量) 验证
onety码生
2018-11-21
5.1K5
react-navigation 去除导航阴影
iOS 是通过设置 borderBottomWidth borderBottomColor 来实现的 可以看出iOS 中将 borderBottomWidth 设置为 0 即可
onety码生
2018-11-21
1.7K0
nginx python Django 集成总结之-nginx配置
1. 配置文件路径 (env) [root@centos nginx]# cd /etc/nginx/ (env) [root@centos nginx]# ls conf.d koi-utf mime.types nginx.conf uwsgi_params fastcgi_params koi-win modules scgi_params win-utf 2. nginx.conf 全局配置文件 # 运行用户 user root; worker_proces
onety码生
2018-11-21
9270
react native 无侵入 彻底解决键盘遮挡问题
iOS键盘防键盘遮挡库 KKInputAvoidKeyBoard 每个 UITextField 都可以自己控制
onety码生
2018-11-21
3.4K0
RN ReactNative 使用 MJRefresh 自定义刷新组件
RN 自带的 RefreshControl 是 UIRefreshControl,并且还自己写了自动偏移,存在有时不能回弹和不可以自定义视图的问题
onety码生
2018-11-21
1.7K0
ios 获取属性的类型
如何在运行的时候动态获取到该属性的类型呢? 此方法获取属性的特性:property_copyAttributeValue unsigned int a; objc_property_t * result = class_copyPropertyList(object_getClass(k), &a); for (unsigned int i = 0; i < a; i++) { objc_property_t o_t = result[i]; NSLog(@"name:
onety码生
2018-11-21
2.7K0
Chrome 浏览器最牛插件之一 Vimium
最近学习了一下,整理了一下官方的默认按键。其中我使用到的都进行了中文翻译,一些没有翻译的是我没有使用的,这部分理解不深,不想误导大家,所以将英文原文放在这里,还望大神指点。
onety码生
2018-11-21
8200
FlatList ListView SectionList 下拉刷新 上拉加载 彻底解决
至于 FlatList SectionList 自带的上拉加载功能,根本就是骗人的。
onety码生
2018-11-21
3.9K0
Chrome浏览器最牛插件之一 Vimium
常用使用:http://www.jianshu.com/p/2ac3c064ba9c
onety码生
2018-11-21
4060
Django 常用工具 import 常用模块
from rest_framework import routers, serializers, viewsets
onety码生
2018-11-21
9990
HHKB 键盘 使用攻略 && Karabiner
简单介绍下这个软件,主要是用来自定义按键的map,也即是键盘按键的替换,相信大家应该明白什么意思。
onety码生
2018-11-21
5.3K0
ios OC swift run-time objc_method
/// An opaque type that represents a method in a class definition. typedef struct objc_method *Method; /// An opaque type that represents an instance variable. typedef struct objc_ivar *Ivar; /// An opaque type that represents a category. typedef struct
onety码生
2018-11-21
3610
python socket websocket 三次握手 详解 服务器断开连接
自己研究 socket 然后按照度娘上和官方文档的那样起了一个服务 然后用 Python 写了一个客户端,然后可以连接成功 但是当我在 websocket 上连接时 总是服务器断开连接 然后就开始填坑 。。。 最后总结: Python 客户端连接 python 服务端不需要处理三次握手 而 websocket 连接时需要处理三次握手 汗颜 第一次收到请求时,是需要处理三次握手的 下面代码都是有详细注释的 data = self.connection.recv(1024) print 'first get
onety码生
2018-11-21
2.7K0
ios OC swift run-time isa 指针
@interface Object { Class isa; } Class #if !OBJC_TYPES_DEFINED /// An opaque type that represents an Objective-C class. typedef struct objc_class *Class; /// Represents an instance of a class. struct objc_object { Class _Nonnull isa OBJC_ISA_A
onety码生
2018-11-21
6390
Python socket 解析客户端数据
socket 发送和接受数据都是有一定要求的 socket 的数据其长度信息和真实内容都是需要解析才能得到的 如下解析数据,都有详细注释 def parse_data(self, msg): if len(msg) == 0: return '' # 去除二进制中的第1位 v = ord(msg[1]) & 0x7f # p 掩码的开始位 # 1位如果是 126 表接下来的两个字节才是长度 # 接下来两个是长度,加上0位和1位,就是 4
onety码生
2018-11-21
1.3K0
ios NSOperation & Queue 官方文档学习
The NSOperationQueue class regulates the execution of a set of NSOperation objects. After being added to a queue, an operation remains in that queue until it is explicitly canceled or finishes executing its task. Operations within the queue (but not yet executing) are themselves organized according to priority levels and inter-operation object dependencies and are executed accordingly. An application may create multiple operation queues and submit operations to any of them.
onety码生
2018-11-21
6150
Vue2.0 新手完全填坑攻略——从环境搭建到发布
Homebrew 1.0.6(Mac)、Node.js 6.7.0、npm 3.10.3、webpack 1.13.2、vue-cli 2.4.0、Atom 1.10.2
onety码生
2018-11-21
1.7K0
点击加载更多
社区活动
腾讯技术创作狂欢月
“码”上创作 21 天,分 10000 元奖品池!
Python精品学习库
代码在线跑,知识轻松学
博客搬家 | 分享价值百万资源包
自行/邀约他人一键搬运博客,速成社区影响力并领取好礼
技术创作特训营·精选知识专栏
往期视频·千货材料·成员作品 最新动态
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档