上一页 1 ··· 3 4 5 6 7

2015年11月1日

正则表达式 零宽断言 负向零宽断言 平衡组/递归匹配

摘要: 零宽断言 用于查找在某些内容(但并不包括这些内容)之前或之后的东西,像\b,^,$那样用于指定一个位置,这个位置应该满足一定的条件(即断言),因此它们也被称为零宽断言。 (?<=exp)myexp(?=exp1) 负向零宽断言 与零宽断言类似 (?<!exp)myexp(?!exp1) 自己用上面的 阅读全文

posted @ 2015-11-01 15:12 明天有风吹 阅读(613) 评论(0) 推荐(0) 编辑

2015年10月19日

Mac 忘记密码

摘要: 今天早上到公司发现电脑被动过,马上查看浏览器的历史记录,果然发现了一些痕迹。虽然是公司的电脑,但是随便被人翻看,还是很不爽! 于是马上把原来公司给的默认密码改掉。 不料,中午出去吃了个饭,回来就把密码给忘了,试了N遍都无效。内心一度奔溃。。 幸运的是,上网搜 Mac忘记密码 教程还是很多的。只是有些 阅读全文

posted @ 2015-10-19 21:59 明天有风吹 阅读(218) 评论(0) 推荐(0) 编辑

2015年10月16日

双11,自动领取优惠券 js 代码

摘要: http://www.zhihu.com/question/36426051/answer/67690322本来我不熟悉 js,正好研究一下 1 (function(window, document) { 2 var interval = 800; 3 var closeDelay ... 阅读全文

posted @ 2015-10-16 01:55 明天有风吹 阅读(2485) 评论(0) 推荐(0) 编辑

学习 swift (1)

摘要: https://developer.apple.com/library/prerelease/ios/referencelibrary/GettingStarted/DevelopiOSAppsSwift/Lesson1.html#//apple_ref/doc/uid/TP40015214-CH3... 阅读全文

posted @ 2015-10-16 01:45 明天有风吹 阅读(201) 评论(0) 推荐(0) 编辑

2015年10月14日

Sbulime Text 2 修改选中字符串的颜色

摘要: Sublime Text 2 > Preferences > Browse Packages... 假设当前试用的 Color Scheme 是 Monokai,则在 Color Scheme - Default 路径下找到 Monokai.tmTheme 文件 打开 阅读全文

posted @ 2015-10-14 16:12 明天有风吹 阅读(276) 评论(0) 推荐(0) 编辑

2015年8月14日

js string 和 json 互转

摘要: 1 var o = JSON.parse('{"a": 8}');2 3 JSON. stringify(o); 阅读全文

posted @ 2015-08-14 15:28 明天有风吹 阅读(176) 评论(0) 推荐(0) 编辑

2015年8月11日

Mac OSX sublime text2 各种快捷键

摘要: Mac 快捷键 https://support.apple.com/zh-cn/HT201236 Preferences -> Key Bindings - User [ { "keys": ["end"], "command": "move_to", "args": { "to": "eol"} 阅读全文

posted @ 2015-08-11 15:46 明天有风吹 阅读(230) 评论(0) 推荐(0) 编辑

webstorm keymap

摘要: http://www.jetbrains.com/webstorm/documentation/WebStorm_ReferenceCard.pdf 阅读全文

posted @ 2015-08-11 15:09 明天有风吹 阅读(383) 评论(0) 推荐(0) 编辑

python http post json

摘要: 直接上代码吧 ## python3 1 #!/usr/bin/env python3 2 # -*- coding: utf-8 -*- 3 4 import json, gzip 5 from urllib import request, parse 6 7 def REQ(url, params 阅读全文

posted @ 2015-08-11 12:13 明天有风吹 阅读(7923) 评论(0) 推荐(0) 编辑

2015年8月5日

node.js async 几个函数

摘要: async.waterfallasync.seriesasync.parallelasync.autohttp://my.oschina.net/huangsz/blog/176203http://blog.csdn.net/jiangcs520/article/details/17350927ht... 阅读全文

posted @ 2015-08-05 16:29 明天有风吹 阅读(384) 评论(0) 推荐(0) 编辑

2015年7月27日

python 爬图 helloworld

摘要: 最近发现 吾志 上用户的头像都很个性,另外,对于没有把日记设为私密的用户,最后一天的日记是公开的,谁都可以查看。所以,如果每天把所有可查看的日记爬一遍,那么~~ 哈哈以前对爬虫只是了解一点点,没有真的玩过。既然今晚兴致来了,那就随便学一下咯~参考http://blog.csdn.net/please... 阅读全文

posted @ 2015-07-27 00:37 明天有风吹 阅读(446) 评论(0) 推荐(0) 编辑

2015年7月24日

合服导致 globalserver 起不来的问题

摘要: globalserver 报错RMIInitArmyBackObject InitError根据报错信息一路追查下来,发现某个帮派的数据解析 json 的时候报错。监视变量,找出这段字符串,大致结构如下:{ "army_name":"\u98ce\u4e91\u805a\u53d8", "army_... 阅读全文

posted @ 2015-07-24 16:30 明天有风吹 阅读(228) 评论(0) 推荐(0) 编辑

2015年5月21日

ssh 登陆 端口转发

摘要: https://www.timdbg.com/posts/fakers-guide-to-assembly/ man ssh ssh [-1246AaCfgKkMNnqsTtVvXxYy] [-b bind_address] [-c cipher_spec] [-D [bind_address:]p 阅读全文

posted @ 2015-05-21 00:49 明天有风吹 阅读(416) 评论(0) 推荐(0) 编辑

2015年5月18日

Linux 日常命令

摘要: http://www.linuxidc.com/Linux/2015-05/117414.htm 1. 命令行日常系快捷键 如下的快捷方式非常有用,能够极大的提升你的工作效率: CTRL + U - 剪切光标前的内容 CTRL + K - 剪切光标至行末的内容 CTRL + Y - 粘贴 CTRL 阅读全文

posted @ 2015-05-18 23:31 明天有风吹 阅读(257) 评论(0) 推荐(0) 编辑

2015年5月12日

内存对齐

摘要: C/C++内存对齐 一、什么是字节对齐,为什么要对齐? 现代计算机中内存空间都是按照byte划分的,从理论上讲似乎对任何类型的变量的访问可以从任何地址开始,但实际情况是在访问特定类型变量的时候经常在特 定的内存地址访问,这就需要各种类型数据按照一定的规则在空间上排列,而不是顺序的一个接一个的排放,这... 阅读全文

posted @ 2015-05-12 16:51 明天有风吹 阅读(163) 评论(0) 推荐(0) 编辑

2015年3月10日

libevent

摘要: http://www.open-open.com/lib/view/open1386510630330.html 阅读全文

posted @ 2015-03-10 09:37 明天有风吹 阅读(108) 评论(0) 推荐(0) 编辑

2015年3月4日

Bonjour Operations

摘要: https://developer.apple.com/library/ios/documentation/Cocoa/Conceptual/NetServices/Articles/NetServicesArchitecture.html 阅读全文

posted @ 2015-03-04 23:20 明天有风吹 阅读(160) 评论(0) 推荐(0) 编辑

2015年2月28日

bonjour browser 下载

摘要: 在Mac 上叫 Bonjour Browserhttp://www.macupdate.com/app/mac/13388/bonjour-browser/downloadIOS 上的 app 叫 DiscoveryBonjour Browser for Windowshttp://hobbyist... 阅读全文

posted @ 2015-02-28 23:24 明天有风吹 阅读(572) 评论(0) 推荐(0) 编辑

2015年2月25日

udid iphone6 获取

摘要: http://www.udidregistration.org/how-to-find-udid-of-iphone-6.html 阅读全文

posted @ 2015-02-25 13:44 明天有风吹 阅读(149) 评论(0) 推荐(0) 编辑

2015年2月10日

Core Data Tutorial for IOS: Getting Started

摘要: http://www.raywenderlich.com/934/core-data-tutorial-for-ios-getting-started 阅读全文

posted @ 2015-02-10 21:26 明天有风吹 阅读(144) 评论(0) 推荐(0) 编辑

2015年2月5日

What are rules about using an underscore in a c identifier

摘要: http://stackoverflow.com/questions/228783/what-are-the-rules-about-using-an-underscore-in-a-c-identifier 阅读全文

posted @ 2015-02-05 23:57 明天有风吹 阅读(132) 评论(0) 推荐(0) 编辑

2015年2月4日

clang 编译 OC

摘要: clang -fobjc-arc -framework Foundation helloworld.m -o helloworld.outOVERVIEW: clang LLVM compilerUSAGE: clang [options] OPTIONS: -### ... 阅读全文

posted @ 2015-02-04 22:13 明天有风吹 阅读(835) 评论(0) 推荐(0) 编辑

2015年2月1日

IOS 开发入门

摘要: 1.Getting Startedhttps://developer.apple.com/library/ios/navigation/#section=Resource%20Types&topic=Getting%20Started其中Start Developing iOS Apps Today... 阅读全文

posted @ 2015-02-01 01:08 明天有风吹 阅读(222) 评论(0) 推荐(0) 编辑

2014年11月19日

hello lua

摘要: http://manual.luaer.cn/http://www.lua.org/pil/contents.html 1 #include 2 #include 3 extern "C"{ 4 #include "lua.h" 5 #include "lauxlib.h" 6 #include... 阅读全文

posted @ 2014-11-19 23:57 明天有风吹 阅读(336) 评论(0) 推荐(0) 编辑

2014年10月14日

sublime-text-how-to-jump-to-file-from-find-results-using-keyboard

摘要: http://209.116.186.231/#newwindow=1&q=sublime+text+find+results+jump http://stackoverflow.com/questions/16767732/sublime-text-how-to-jump-to-file-from 阅读全文

posted @ 2014-10-14 13:13 明天有风吹 阅读(345) 评论(0) 推荐(0) 编辑

2014年10月3日

git install

摘要: wget -O git-master.zip https://codeload.github.com/git/git/zip/masterunzip git-master.zipcd git-master/autoconf./configuremake检查是否安装成功git --version 阅读全文

posted @ 2014-10-03 23:04 明天有风吹 阅读(194) 评论(0) 推荐(0) 编辑

2014年9月29日

sublime text 另一种对齐

摘要: 效果如下: http://sublime-text-unofficial-documentation.readthedocs.org/en/latest/extensibility/plugins.html 1 #coding=utf-8 2 import sublime, sublime_plug 阅读全文

posted @ 2014-09-29 18:55 明天有风吹 阅读(1887) 评论(0) 推荐(0) 编辑

2014年9月3日

sublime text 给选中项插入编号

摘要: 1 #coding=utf-8 2 import datetime, getpass 3 import sublime, sublime_plugin 4 import re 5 6 # 插数字 7 class InsertNumberCommand(sublime_plugin.TextComma 阅读全文

posted @ 2014-09-03 17:25 明天有风吹 阅读(1928) 评论(1) 推荐(0) 编辑

2014年7月21日

Text and Binary modes

摘要: http://perlmaven.com/what-is-a-text-filehttps://cygwin.com/cygwin-ug-net/using-textbinary.htmlText and Binary modesThe IssueOn a UNIX system, when an ... 阅读全文

posted @ 2014-07-21 18:06 明天有风吹 阅读(205) 评论(0) 推荐(0) 编辑

2014年5月12日

daemon_int

摘要: 摘自 UNP 1 #include "unp.h" 2 #include 3 4 #define MAXFD 64 5 6 extern int daemon_proc; // defined in error.c 7 8 int daemon_init(const char*... 阅读全文

posted @ 2014-05-12 14:58 明天有风吹 阅读(429) 评论(0) 推荐(0) 编辑

2014年5月9日

setuid和seteuid

摘要: http://hzzz.lengzzz.com/blog/1385 阅读全文

posted @ 2014-05-09 21:38 明天有风吹 阅读(335) 评论(0) 推荐(0) 编辑

用0x077CB531计算末尾0的个数

摘要: http://www.matrix67.com/blog/archives/3985 unsigned int v; // find the number of trailing zeros in 32-bit vint r; // result goes herestatic const int 阅读全文

posted @ 2014-05-09 16:25 明天有风吹 阅读(159) 评论(0) 推荐(0) 编辑

2014年3月27日

asp.net mvc 5 初体验

摘要: 参考:http://www.asp.net/mvc/tutorials/mvc-5/introduction/getting-started1. 新建 ASP.Net Web 应用程序,跟着向导一路 OK 下去。就有了最简单的架子。run 一下看看2. 添加 controller,添加 view 修改 ~/Views/Shared/_Layout.cshtml 等3. 添加 model class,貌似这个东西用来搞数据库那些事情 教程里,添加数据库连接是在 Web.config 的 里加一条 connectionString,这一串东西看起来好麻烦,改天要认真研究一下 我在这里通过向... 阅读全文

posted @ 2014-03-27 14:57 明天有风吹 阅读(278) 评论(0) 推荐(0) 编辑

2014年3月24日

webservice gsoap 小记

摘要: 参考http://www.cs.fsu.edu/~engelen/soap.html1. web service client application > wsdl2h -s -o MyHead.h http://www.genivia.com/calc.wsdl -s 不用 STL > ... 阅读全文

posted @ 2014-03-24 11:09 明天有风吹 阅读(785) 评论(0) 推荐(0) 编辑

2013年12月28日

http 协议 c++代码 获取网页

摘要: 最近接触了些 html 和 JavaScript,索性了解下 http 协议。在园子里找到了 HTTP协议详解,图文并茂,很爽!于是小小的尝试了下#include #include #include #include #pragma comment(lib, "ws2_32.lib")using n... 阅读全文

posted @ 2013-12-28 11:57 明天有风吹 阅读(884) 评论(0) 推荐(0) 编辑

2013年12月27日

win32 音视频相关 api

摘要: waveInGetNumDevswaveInGetDevCapswaveInOpenwaveInGetDevCapswaveInPrepareHeaderwaveInAddBufferwaveInStartwaveInStopwaveInResetwaveInUnprepareHeaderwaveInClosewaveOutGetNumDevswaveOutWrite// 其他的 Out 跟 In 相对应 阅读全文

posted @ 2013-12-27 23:22 明天有风吹 阅读(280) 评论(0) 推荐(0) 编辑

上一页 1 ··· 3 4 5 6 7

导航

+V atob('d2h5X251bGw=')

请备注:from博客园