
开发技能
Mercy_liu
这个作者很懒,什么都没留下…
展开
-
浏览器访问远程服务器jupter notebook
安装anconda conda 安装jupter :conda install jupyter 生成jupter配置文件:jupyter notebook --generate-config 生成密码:进入python环境>>>from notebook.auth import passwd>>>passwd()#两次数据密码 #生成加密密码#exit()退出编辑jupter配置文件:将加密后密码填入c.NotebookApp.passwor.原创 2020-12-24 17:34:23 · 277 阅读 · 1 评论 -
shell单进程锁
#!/bin/bashSingletonCheck() { exec 7<>.$1.lock flock -n 7 || { echo Instance is running ... exit 1 }}SingletonCheckAndWait () { exec 7<>.$1.lock flock -n 7 || { ...原创 2019-09-27 15:53:11 · 519 阅读 · 0 评论 -
打印优快云文章
step1:打开Chrome浏览器step2:进入开发者模式(F12)step3:将一下代码copy到console中(可以先点击清理console内容),回车;(function(){$("#side").remove();$("#comment_title, #comment_list, #comment_bar, #comment_form, .announce,...转载 2019-05-31 11:58:38 · 2267 阅读 · 1 评论 -
常用Linux 命令
1.求两个文件差集:grep -F -v -f a.txt b.txt | sort | uniq注:b-a交集https://www.cnblogs.com/thatsit/p/6657993.htmlhttps://blog.youkuaiyun.com/autofei/article/details/6579320原创 2019-05-27 17:06:14 · 122 阅读 · 0 评论 -
SVN常用命令详解
命令的使用1、检出svncohttp://路径(目录或文件的全路径) [本地目录全路径]--username 用户名 --password 密码svncosvn://路径(目录或文件的全路径) [本地目录全路径]--username用户名 --password 密码svncheckouthttp://路径(目录或文件的全路径) [本地目录全路径] --userna...转载 2019-05-27 13:07:41 · 1478 阅读 · 0 评论 -
样本抽样
sample_ra = 0.04 random_scope = int(1/sample_ra) rand = random.randint(1,int(4/sample_ra)) if rand > (2*random_scope + 4) or rand < (2*random_scope): continue原创 2016-12-03 12:50:58 · 329 阅读 · 0 评论 -
打印数据schema
%pysparkimport jsonpath = '****/part-19999.gz'data = sqlContext.read.json(path)data.printSchema()原创 2016-12-05 19:15:20 · 1457 阅读 · 0 评论 -
tensorflow 警告处理
1、查看tf是gup版本还是cpu版本:import os from tensorflow.python.client import device_libos.environ["TF_CPP_MIN_LOG_LEVEL"] = "99"if __name__ == "__main__": print(device_lib.list_local_devices())2、查看...原创 2018-12-05 15:31:12 · 870 阅读 · 1 评论 -
tf学习
一.基础:使用图(graph)表示计算任务 任务在会话(session)中执行 使用(tensor)表示数据 使用(Variable)维护状态 使用feed和fetch进行操作的(op)赋值和数据获取 tf程序被构建成图,然后通过运行图被执行。定义op(constant常量也属于op)import tensorflow as tf#创建一个常量op 返回一个1*2的矩...原创 2018-12-06 18:52:44 · 219 阅读 · 0 评论 -
Hash算法碰撞率统计
转自https://blog.youkuaiyun.com/huangyueranbbc/article/details/84393060转载 2019-01-29 09:14:39 · 1699 阅读 · 0 评论