- 军军小站|张军博客
搜索到与相关的文章
编程技术

ViewBadger为其他View添加角标

项目地址:https://github.com/jgilfelt/android-viewbadger以前都是自己写的,一不小心网上找到这个,觉得不错,以后直接copy了,方便快捷!packagecom.readystatesoftware.viewbadger;importandroid.content.Context;importandroid.content.res.Resources;importandroid.graphics.Color;imp

系统 2019-08-29 22:17:55 1915

各行各业

github入门需知

github是一个有海量开源代码库的网站,同时也是一个软件开发管理软件,作为软件来说它集成了git这个分布式的版本控制系统,可以上传、下载和管理自己的代码。笔者刚接触不久,把认为入门应该知道的东西稍微总结一下。以后可能还会有补充。本文写于2015年6月4日,github可能有时效性。使用git需要有一定的命令行基础1.github注册注册很简单,有邮箱就能注册,要上传项目文件需要登录后点击右上角的加号创建一个Repository。Repository个数应

系统 2019-08-12 09:27:26 1915

各行各业

一个我用来上传代码到Github的 Shell 脚本

因为用git老是要敲许多命令。所以写了个小脚本。代码如下:1#!/bin/sh2echoGoingtosimpleWebtest...3cd~/softwaredevelopment/workspace/simpleWebtest4echocheckgitstatus...5gitstatus67echo"commit?(yes/no)"8readchoice910if[${choice}=yes]11thenechoPleaseEnterthecommi

系统 2019-08-12 09:27:23 1915

各行各业

jq使用手册

jq使用手册翻译整理:Young.J官方网站:http://jquery.comjQuery是一款同prototype一样优秀js开发库类,特别是对css和XPath的支持,使我们写js变得更加方便!如果你不是个js高手又想写出优秀的js效果,jQuery可以帮你达到目的!下载地址:Starterkit(http://jquery.bassistance.de/jquery-starterkit.zip)jQueryDownloads(http://jqu

系统 2019-08-12 09:27:12 1915

各行各业

超过130个你需要了解的vim命令

基础:efilenameOpenfilenameforedition:wSavefile:qExitVim:q!Quitwithoutsaving:xWritefile(ifchangeshasbeenmade)andexit:savfilenameSavesfileasfilename.Repeatsthelastchangemadeinnormalmode5.Repeats5timesthelastchangemadeinnormalmode在文件中移

系统 2019-08-12 09:27:11 1915

各行各业

[RK_2014_0923]wireshark捕捉到的Ethernet II数

一、关于wireshark中以太网数据包的最小长度,请看下面的文字:PacketformatAphysicalEthernetpacketwilllooklikethis:PreambleDestinationMACaddressSourceMACaddressType/LengthUserDataFrameCheckSequence(FCS)866246-15004AstheEthernethardwarefiltersthepreamble,itisn

系统 2019-08-12 09:27:00 1915

各行各业

Point结构体中Subtract和Add方法在拖曳控件时的

结构体Point中方法Subtract()和Add()可用于在同一个坐标系中2点之间相对位置的计算:publicstaticPointSubtract(Pointpt,Sizesz)publicstaticPointAdd(Pointpt,Sizesz)而Size可以通过Point转换,如下Size的一个构造函数:publicSize(Pointpt)下面以处于同一容器下(Form1)的2个组件label1,label2,当拖曳第一个组件label1时,l

系统 2019-08-12 09:26:48 1915

各行各业

Lexer and parser generators (ocamllex, ocaml

Chapter12Lexerandparsergenerators(ocamllex,ocamlyacc)Thischapterdescribestwoprogramgenerators:ocamllex,thatproducesalexicalanalyzerfromasetofregularexpressionswithassociatedsemanticactions,andocamlyacc,thatproducesaparserfromagram

系统 2019-08-12 09:26:46 1915

Python

个人实践,如何在vs2017或vs2019中搭建python环境,并与c#混合

通过VisualStudio安装程序选择和安装的数据科学和分析应用程序工作负载汇集了几种语言及其各自的运行时分发版本。⑥总结:微软已经给我们打包了这些东西,如果无需弄科学计算,也就不需要安装这些。SQLServersupportsusingbothPythonandRtodoadvancedanalyticsdirectlyinsideSQLServer.RsupportisincludedwithSQLServer2016andlater;Pythons

系统 2019-09-27 17:57:12 1914

Python

对Python _取log的几种方式小结

1.使用.logfile方法#!/usr/bin/envpythonimportpexpectimportsyshost="146.11.85.xxx"user="inteuser"password="xxxx"command="ls-l"child=pexpect.spawn('ssh-l%s%s%s'%(user,host,command))child.expect('password:')child.sendline(password)childlo

系统 2019-09-27 17:57:01 1914