- 博客(109)
- 资源 (30)
- 收藏
- 关注
原创 Dos递归遍历目录文件(支持环境变量延迟扩展)
目前Internet上上充斥的dos递归遍历目录文件都不支持环境变量延迟扩展,从而导致在对遍历出的文件进行进一步处理的时候会出现问题。本文提供了一种支持环境变量延迟扩展的目录文件遍历方式。echo offsetlocal enabledelayedexpansion::指定起始文件夹set DIR="%cd%":: 参数 /R 表示需要遍历子文件夹,去掉表示不遍历子文件夹:: %%f 是一个
2018-01-02 18:25:09
1189
原创 Combination Sum (lintcode 135)
Given a set of candidate numbers (C) and a target number (T), find all unique combinations in C where the candidate numbers sums to T.The same repeated number may be chosen from C unlimited number of t
2017-12-21 18:20:12
198
原创 amazon phone interview
Reverse the word in a sentence. Like: input ”Hello world Amazon”, output “olleH dlrow nozamA”#include <string>#include <iostream>#include <cstdio>using namespace std;class Solution{public: stat
2017-12-21 18:11:02
482
原创 Two Sum
Given an array of integers, return indices of the two numbers such that they add up to a specific target.You may assume that each input would have exactly one solution, and you may not use the same ele
2017-12-15 13:16:41
218
原创 Rotate Image
You are given an n x n 2D matrix representing an image.Rotate the image by 90 degrees (clockwise).Note: You have to rotate the image in-place, which means you have to modify the input 2D matrix direct
2017-12-10 22:32:41
460
原创 Reverse Linked List
Reverse a singly linked list./** * Definition for singly-linked list. * struct ListNode { * int val; * ListNode *next; * ListNode(int x) : val(x), next(NULL) {} * }; */class Solutio
2017-12-07 13:05:51
188
原创 Triangle
Given a triangle, find the minimum path sum from top to bottom. Each step you may move to adjacent numbers on the row below.For example, given the following triangle[ [2], [3,4], [6,5,7],
2017-12-05 19:15:14
359
原创 全排列生成的迭代算法
Given a collection of distinct numbers, return all possible permutations.目前web上大多数解法都是递归解法,基于“所有的递归算法都存在对应的迭代算法”的基本原理,本文提出了一种迭代算法,通过online judge。class Solution {public: static vector<vector<int> >
2017-12-04 23:57:39
1657
原创 Trie树(字典树)的实现
Lintcode 442上实现Trie树 http://www.lintcode.com/zh-cn/problem/implement-trie/class TrieNode{public: TrieNode() { for(int i = 0; i < 26; i++) { children[i] = nullptr;
2017-11-28 18:47:28
310
原创 linux shell awk常用函数积累
去空格字符串处理函数function ltrim(s) { sub(/^[ \t\r\n]+/, "", s); return s }function rtrim(s) { sub(/[ \t\r\n]+$/, "", s); return s }function trim(s) { return rtrim(ltrim(s)); }
2017-11-24 18:51:20
351
原创 awk日期转时间函数实现
版本1function date2ms(params, param_len){ for(cursor=1; cursor <= param_len; cursor++) { printf params[cursor]" " } result = (params[1]-1973-(params[1]-19
2017-10-26 20:11:00
2073
原创 RFID、LoRa和NB-IoT相关总结
RFIDLoRaNB-IoTu-blox(符合3GPP R13 NB-IoT标准的SARA-N2模块)Boudica 120和Boudica 150(华为) 上海移远BC95集成开发Boudica 120模块(与该公司的M35 GPRS模块管脚兼容)北京传承互联开发的NB-IoT物理网DTU透传模块集成了移远的BC95模块
2017-06-22 19:45:11
6583
原创 基于SignalR的Web实时消息交互方式的原理、使用和调试工具
SignalR文档和手册 https://www.asp.net/signalrGithub上的SignalR相关Wiki https://github.com/SignalR/SignalR/wikiMicrosoft开源的dotnet中的SignalR实现原理的源码 https://github.com/Microsoft/dotnet在调试和验证SignalR的过程中使用的Web调试工具
2017-04-26 21:24:47
2397
转载 手机设计公司最基本的六个部门:ID、MD、HW、SW、PM、Sourcing、QA
用一个较简单的阐释,一般的手机设计公司是需要最基本有六个部门:ID、MD、HW、SW、PM、Sourcing、QA。1、ID(Industry Design)工业设计 包括手机的外观、材质、手感、颜色配搭,主要界面的实现与及色彩等方面的设计。 例如摩托罗拉“明”翻盖的半透明,诺基亚7610的圆弧形外观,索爱W550的阳光橙等。这些给用户的特别感受和体验都是属于手机工业设计的范畴,一部手机是否
2017-03-20 17:03:06
1929
原创 流程图设计工具开发
基于VS2010和QT5.5的流程图设计工具代码:http://download.csdn.net/download/liushaofang/9767610
2017-03-02 10:25:49
814
原创 Android绕过usb主机permision确认对话框framework修改方案
在Android平板上连接USB读卡器,每次启动应用程序时总是会出现USB权限确认对话框提示(如下图所示)。 即使点选“默认情况下用于该USB设备后”在设备重启后也会出现该权限提示,最后笔者通过修改Android Framework层的代码解决,解决方案的原理可以自行分析Android Framwork源码。 解决方案如下:修改 ($ANDROID_PROJ)\frameworks\ba
2017-01-11 21:08:21
3798
1
原创 android opengl es入门示例
自己依据https://developer.android.com/training/graphics/opengl/index.html写的一个直接使用opengl es操作示例。其中用到的shader使用的developer guide中的triangle shader,有时间再详细解释代码含义。下载链接为:http://download.csdn.net/detail/liushaofang/
2016-11-25 19:25:19
400
原创 分布式监控系统
美团CAT https://github.com/dianping/cat http://tech.meituan.com/CAT_in_Depth_Java_Application_Monitoring.htmlAkamai互联网实时监控 https://www.akamai.com/cn/zh/solutions/intelligent-platform/visualizing-akam
2016-11-10 18:14:19
544
原创 手机root后system file提示Read-only的解决办法
adb -s 设备名 shell 进入手机su切换为root账户mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system 重新挂载system文件系统Done!!!对于Android 6.0以上的系统,需要调用disable-verity,因此整个命令序列为: adb root adb disable-verity ...
2016-10-28 12:06:14
10005
原创 p2p网络架构
BitTorrent Client http://www.bittorrent.org/ http://www.utorrent.com/intl/zh/ https://github.com/qbittorrent/qBittorrent http://www.libtorrent.org/ https://transmissionbt.com/Tracker ServerDHT
2016-10-10 17:01:12
729
原创 mbed相关资源
mbed官网:https://www.mbed.com/zh-cn/ 开发者社区:https://developer.mbed.org/ 官方代码仓库https://github.com/ARMmbed/mbed-os 国内镜像 http://git.oschina.net/snikeguo/mbedOS源码阅读工具推荐:QT Creator、Source Insight
2016-09-19 19:51:35
789
原创 Keil uVision5 导入pack问题
从http://www.keil.com/dd2/Pack/#/eula-container上下载找到自己要下载的standalone的pack文件后,在安装过程中一定断网,不然Package Installer默认会先在线进行下载,断网后选择离线pack文件后才能够正常安装。
2016-08-21 00:03:53
40115
原创 小米盒子3的刷机方式
对于不能将小米盒子和PC连接到LAN中的同学,可以采用如下方式对小米盒子3进行刷机 1. 找一根公对公的标准USB接口数据线,并将小米盒子3和PC进行连接; 2. 通过adb发现设备后执行adb reboot recovery; 3. 迅速将小米盒子端连接的USB线拔下,将带有刷机包的U盘插入到小米盒子3中(这一步至关重要,速度一定要快,要赶在小米盒子正常启动前完成); 4. 系统能够正常进
2016-08-07 19:31:36
25605
8
原创 基于libfiber的高并发服务优化策略
在网络和IO访问并发程度较高的应用场景中,通过使用libfiber进行优化,通过ab压力测试工具和perf性能测试工具进行测试发现,使用fiber(协程)能够显著优化并发访问质量,原因是协程将操作系统基于线程的调度策略修改为基于IO资源的调度策略,一个线程中可以有多个协程,但是同时运行的只有一个协程,并且存在一个epoll协程,epoll协程的主要作用是进行协程间的调度。 libfiber的源码地
2016-07-27 18:35:00
1443
原创 Machine Vision知识积累
0. 视觉系统基本组成 (注.本部分转自以下链接http://www.cnblogs.com/yssongest/p/4524472.html) ①工业相机与工业镜头 ②光源 ③传感器 ④图像采集卡 ⑤PC平台 ⑥视觉处理软件 ⑦控制单元 1. 行业应用软件 汉王MVStudio 2. 机器视觉库 HALCON:大恒机器视觉库 visionPr
2016-06-02 15:20:03
685
原创 bypass android usb host permission confirmation dialog
http://stackoverflow.com/questions/13726583/bypass-android-usb-host-permission-confirmation-dialog http://blog.csdn.net/mlj1668956679/article/details/14122787
2016-05-24 12:42:54
1339
原创 Google I/O 2016 Keynote个人总结
Google I/O 2016于05月18~05月20日在Mountain View的Shoreline Amphitheatre举办,从Google CEO Sundar Pichai发布的Keynote presentation video中,个人进行对相关技术关键字进行了总结。 1. Google Search 2. Google Translation 3. Google AI
2016-05-22 12:18:39
1372
原创 OJ平台汇总
leetcode: https://leetcode.com/ 提交错误能够给出错误的数据,比较好调试。浙江大学 Online Judge(ZOJ): http://acm.zju.edu.cn/ 国内最早也是最有名气的OJ,打开速度快。北京大学 Online Judge(POJ): http://acm.pku.edu.cn/JudgeOnline/ 举行在线比赛比较多,数据比ZOJ上的
2016-05-22 11:22:02
19857
原创 Minimum Window Substring
Given a string S and a string T, find the minimum window in S which will contain all the characters in T in complexity O(n).For example, S = “ADOBECODEBANC” T = “ABC” Minimum window is “BANC”.Note:
2016-05-15 22:28:29
371
原创 Substring with Concatenation of All Words
You are given a string, s, and a list of words, words, that are all of the same length. Find all starting indices of substring(s) in s that is a concatenation of each word in words exactly once and wit
2016-05-15 16:29:37
494
原创 Longest Substring Without Repeating Characters
Given a string, find the length of the longest substring without repeating characters.Examples:Given “abcabcbb”, the answer is “abc”, which the length is 3.Given “bbbbb”, the answer is “b”, with the le
2016-05-08 22:36:22
615
原创 Intellij IDEA, Android Studio, Eclipse,Gradle, Maven, Ants关系概述
越来越多的Android项目开始抛弃Eclipse+ADT的开发环境采用Android Studio+Gradle进行开发,在Github上clone源码偶尔又会发现需要采用Maven进行构建,这些工具集之间到底存在什么关系呢?0. 为什么要引入这些IDE和Build Tools借用网上的一句话来回答引入这些IDE和Build Tools的原因: ”一般而言,一个比较正规的项目都不会基于IDE 进
2016-05-05 10:50:09
1130
原创 Add Two Numbers
You are given two linked lists representing two non-negative numbers. The digits are stored in reverse order and each of their nodes contain a single digit. Add the two numbers and return it as a linke
2016-05-04 23:08:00
471
原创 Partition List
Given a linked list and a value x, partition it such that all nodes less than x come before nodes greater than or equal to x.You should preserve the original relative order of the nodes in each of the
2016-05-04 22:12:01
366
原创 Minimum Depth of Binary Tree
Given a binary tree, find its minimum depth.The minimum depth is the number of nodes along the shortest path from the root node down to the nearest leaf node./** * Definition for a binary tree node.
2016-05-03 09:44:50
310
原创 Maximum Depth of Binary Tree
Given a binary tree, find its maximum depth.The maximum depth is the number of nodes along the longest path from the root node down to the farthest leaf node./** * Definition for a binary tree node.
2016-05-03 09:16:11
339
原创 Two Sum
Given an array of integers, return indices of the two numbers such that they add up to a specific target. You may assume that each input would have exactly one solution.Example: Given nums = [2, 7, 1
2016-05-03 08:37:00
334
Linux网络子系统
2011-05-01
git community book
2015-11-28
chromiumrenderingpipeline.pdf
2020-03-25
VC6.0串口编程实用教程
2009-02-17
mac pdfsplit command tool
2022-04-12
Mac的Visual Studio Code的CodeLLDB插件
2020-10-20
Concurrent Programming in Java Design Principles and Pattern
2018-07-27
基于Qt 5.5的流程图设计开发代码(QT自带)
2017-03-01
android opengl es sample
2016-11-25
嵌入式Linux ADC、串口GPRS、用户态操作GPIO接口、基于距离传感器的车辆通过性检测算法
2015-11-13
logtool Android系统日志抓取脚本
2016-04-23
apk反编译工具集合
2015-12-22
pdf password remover
2018-01-02
crack_tools.zip
2020-05-29
shell_detacher.7z
2020-02-18
VMwareTools9.9.0在32位Ubuntu 14.04中的安装补丁
2015-10-08
win7 64 python Scrapy安装库
2016-11-21
linux网络编程示例
2018-01-25
ios_jailbreak_tools.zip
2020-03-20
Computer Architecture-A Quantitative Approach (3ed & 4ed)
2012-03-26
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅