Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
48 commits
Select commit Hold shift + click to select a range
477e435
Update README.md
recall704 Jun 12, 2015
3d89094
create develop wechat
ggdkay Jul 26, 2016
cdd3051
init
ggdkay Aug 10, 2016
05a30aa
Create xcode_plugins.md
ggdkay Aug 12, 2016
d1e59d6
Create BMap_Btrace_note.md
ggdkay Aug 15, 2016
779da76
Create BMap_sport_trace_note.md
ggdkay Aug 15, 2016
f6e7fba
Create cocoapod_thing.md
ggdkay Aug 16, 2016
765e575
Update cocoapod_thing.md
ggdkay Aug 16, 2016
2afbc46
Create Um_Sina_devlop.md
ggdkay Aug 18, 2016
bb0eb27
Create develop_ble.md
ggdkay Aug 19, 2016
5e4c695
Create meituan_note.md
ggdkay Aug 25, 2016
c7f34f8
Create xcode_framework.md
ggdkay Oct 8, 2016
8df9314
Update xcode_framework.md
ggdkay Oct 8, 2016
3901eee
Update xcode_framework.md
ggdkay Oct 8, 2016
cc665cf
Update cocoapod_thing.md
ggdkay Oct 8, 2016
7c254c0
Update cocoapod_thing.md
ggdkay Oct 8, 2016
16b3d8b
Update xcode_framework.md
ggdkay Oct 9, 2016
a329b38
Update xcode_framework.md
ggdkay Oct 9, 2016
5b41bda
Create ios_bridging_header.md
ggdkay Oct 9, 2016
0506bf6
Update xcode_framework.md
ggdkay Oct 10, 2016
3b8d7ea
修改一个错别字
fanofxiaofeng Sep 19, 2017
396d393
Update iterator_generator.md
Oct 15, 2017
42dbc73
Update README.md
iscc7 Jan 5, 2018
3ce15b8
Create class_intrduction.md
iscc7 Jan 5, 2018
1b8f3ae
Update class_intrduction.md
iscc7 Jan 7, 2018
929d4ba
Create thearding
iscc7 Jan 29, 2018
4fa17e9
Create about "*args".md
iscc7 Feb 3, 2018
8b8b224
Update about "*args".md
iscc7 Feb 3, 2018
91c5dc5
Update about "*args".md
iscc7 Feb 3, 2018
288056c
Update about "*args".md
iscc7 Feb 3, 2018
d7c08af
Update about "*args".md
iscc7 Feb 3, 2018
47f41b9
Update about "*args".md
iscc7 Feb 3, 2018
25bfb1f
Create dict_note
iscc7 Apr 6, 2018
79af9b3
Update README.md
yao0759 Jun 3, 2018
0c4c6bf
update README.md
yao0759 Jun 3, 2018
449e1e1
Merge pull request #1 from iscc7/master
Rajpratik71 Nov 18, 2018
79f9afb
Merge pull request #2 from ggdkay/master
Rajpratik71 Nov 18, 2018
7ce5de2
old notes
Rajpratik71 Nov 18, 2018
abd793b
Delete about "*args".md
Rajpratik71 Nov 18, 2018
5b632c3
Merge branch 'test'
Rajpratik71 Nov 18, 2018
67b3322
Initial WhiteSource configuration file
Feb 4, 2019
422d854
Merge pull request #3 from yao0759/master
Rajpratik71 Feb 5, 2019
685153d
Merge pull request #4 from lvusyy/patch-1
Rajpratik71 Feb 5, 2019
1019145
Merge pull request #5 from fanofxiaofeng/patch-2
Rajpratik71 Feb 5, 2019
d9dbe0e
Merge pull request #7 from recall704/master
Rajpratik71 Feb 5, 2019
980621d
[ImgBot] Optimize images
ImgBotApp Jun 19, 2019
4cd8caa
Delete .whitesource
Rajpratik71 Jun 19, 2019
d0f6fd1
Merge pull request #8 from Rajpratik71/imgbot
Rajpratik71 Jun 19, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions BMap_Btrace_note.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#key
http://lbsyun.baidu.com/apiconsole/key

#BaiduTrace
http://lbsyun.baidu.com/index.php?title=yingyan/manage

#demo
http://lbsyun.baidu.com/index.php?title=ios-yingyan/sdkandev-download

main.c
```
//全局变量
int const serviceId = 123444; //此处填写在鹰眼管理后台创建的服务的ID
NSString *const AK = @"fqw667wRwVvKM3MFTsqn4bPewN1VwooR";//此处填写您在API控制台申请得到的ak,该ak必须为iOS类型的ak
NSString *const MCODE = @"YingYanSDKDemo";//此处填写您申请iOS类型ak时填写的安全码
double const EPSILON = 0.0001;

```

#tips_blog
http://bbs.lbsyun.baidu.com/forum.php?mod=viewthread&tid=106654&extra=page%3D1

6 changes: 6 additions & 0 deletions BMap_sport_trace_note.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#ios_map_sdk
baidu :
http://lbsyun.baidu.com/index.php?title=iossdk/sdkiosdev-download

#demo
https://github.com/orchan/BDTrackDemo/tree/alphaBranch
24 changes: 11 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
###学习笔记
### 学习笔记
既然不能做到过目不忘,索性把看到的记下来,做笔记的好处就是下次碰到问题时直接查看经过自己总结的笔记有事半功倍的效果,因此也养成了学习一点就记一点的习惯。以前喜欢用Evernote来记录,现在用GitHub。

####Python
#### Python
5. [collections学习笔记](./note/python/collections.md)
5. [函数式编程------序列处理函数](./note/python/function_programming_of_function_processing_functions.md)
6. [协程](./note/python/coroutine.md)
Expand All @@ -18,7 +18,7 @@
20. [理解WSGI](./note/python/wsgi.md)
21. [Flask之Hello world详解](./note/python/flask.md)

#####Django
##### Django
1. [Django测试指南](./note/python/a_guide_to_testing_in_django.md)
2. [Django模版语言](./note/python/django_template.md)
3. [使用django-simple-captcha遇到的坑](./note/python/captcha.md)
Expand All @@ -28,14 +28,14 @@
10. [Django signal](./note/python/signals.md)


#####Mako模板
##### Mako模板

5. [mako简介](./note/python/mako.md)

#####SQLAlchemy
##### SQLAlchemy
14. [SQLAlchemy学习笔记](./note/python/sqlalchemy.md)

####Java
#### Java
此系列文章绝大部分发布在[importnew.com](http://www.importnew.com)网站上

1. [JDBC批处理Select语句](./note/java/JDBC Performance Tips.md)
Expand All @@ -45,7 +45,7 @@
5. [范行实践](./note/java/Generic.md)
6. [类加载与初始化](./note/java/classloading and initialization.md)

####Vim
#### Vim
[Vim相关文章](./note/vim/目录.md),早期写的一些文章可以在我的旧博客:[liuzhijun.iteye.com](http://liuzhijun.iteye.com/category/270228)查看到

10. [正则表达式](./note/vim/10.md)
Expand All @@ -69,22 +69,20 @@
28. [Vim28 全局命令](./note/vim/28.md)
[我的vim配置](./note/vim/vimrc.md)

####memcached
#### memcached
1. [入门安装篇](./note/memcached/introduce_install.md)
2. [命令介绍篇](./note/memcached/telnet_command.md)

####redis
#### redis
1. [入门篇](./note/redis/introduce.md)

####RQ
#### RQ
1. [RQ简介](./note/rq/rq_getting_start.md)
2. [RQ Queue](./note/rq/rq.md)
3. [RQ Worker](./note/rq/rq_worker.md)


####sphinx/coreseek
#### sphinx/coreseek
1. [sphinx笔记](./note/python/sphinx/introduce.md)

不定时更新


3 changes: 3 additions & 0 deletions Um_Sina_devlop.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#Sina API (http://open.weibo.com/wiki/%E5%BE%AE%E5%8D%9AAPI#.E5.BE.AE.E5.8D.9A)

#UM (http://dev.umeng.com/social/ios/quick-integration#3_1)
18 changes: 18 additions & 0 deletions android_adb.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#adb

>* path : Android_sdk

>* adb logcat -c
>* adb logcat -s tag,tag2,tag3

#ndk
>* nkd-build
>* nkd-build clean

#inet c
```
char addr_tmp[INET_ADDRSTRLEN];
inet_ntop(AF_INET, &(peeraddr.sin_addr), addr_tmp, INET_ADDRSTRLEN);
LOGI("==> accept client %s:%d by socket %d\n",
addr_tmp, ntohs(peeraddr.sin_port), conn);
```
20 changes: 20 additions & 0 deletions class_intrduction.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# python class
## python staticmethod
静态方法和一般的函数十分相似,都不可访问class内部的变量和init里头的实例变量


## python classmethod
类方法把一个类作为第一个接受的函数值,可以访问class内部的变量但不能访问实例变量

普通方法(simple)类方法(classmethod)静态方法(staticmethod)的区别只需要抓住这一点他们都写在class类内.```
class A(object):
def f(self, x):
pass
@classmethod
def f(cls, x):
pass
@staticmethod
def f(x):
passa = A()
```
所以他们唯一的区别是函数的第一个参数绑定的对象不一样:普通方法(simple) def f(self, x): 的第一个参数 self 绑定的对象是实例对象 a, 第二个参数是 x ;类方法(classmethod) def f(cls, x): 的第一个参数 cls 绑定的对象是类 A , 第二个参数是 x ;静态方法(staticmethod) def f(x): 的第一个参数就是传参 x 自己.
192 changes: 192 additions & 0 deletions cocoapod_thing.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,192 @@
#ques :
如何下载和安装CocoaPods?
在本地安装好Ruby环境

OS X系统默认可以运行Ruby,运行sudo gem update --system 升级Ruby,

移除现有Ruby默认源

$ gem sources --remove https://rubygems.org/

//等有反应之后再敲入以下命令

$ gem sources -a https://ruby.taobao.org/

验证新源是否替换成功

$gem sources -l

#cocoapods
cocoapods

这时候,你再次在终端中运行:

$ sudo gem install cocoapods

苹果系统升级OS X EL Capitan 后安装改为:

$ sudo gem install -n /usr/local/bin cocoapods

等上一会,CocoaPods就可以在你本地下载并且安装好了,不再需要其他设置。

然后$ pod setup

等上一大会,Setting up CocoaPods master repo结束,就可以使用了。。。

使用CocoaPods

使用CocoPods和安装它一样简单,也是通过一两行命令就可以搞定。

小编在这里用两种使用场景来具体说明如何使用CocoaPods。

们可以尝试搜索一个第三方类库:

pod search AFNetworking

#pod libs
(cd命令)你项目所在目录,然后在当前目录下,利用vim创建Podfile,运行:

$ vim Podfile

然后在Podfile文件中输入以下文字:

platform :ios, '7.0'

pod "AFNetworking", "~> 2.0"

-------------------------------------

```
target 'MyApp' do
pod 'AFNetworking', '~> 3.0'
pod 'FBSDKCoreKit', '~> 4.9'
end
```

当前AFNetworking支持的iOS最高版本是iOS 7.0,要下载的AFNetworking版本是2.0。

关于Podfile文件编辑时,第三方库版本号的各种写法:

pod ‘AFNetworking’ //不显式指定依赖库版本,表示每次都获取最新版本
pod ‘AFNetworking’,‘2.0’ //只使用2.0版本
pod ‘AFNetworking’, ‘>2.0′ //使用高于2.0的版本
pod ‘AFNetworking’, ‘>=2.0′ //使用大于或等于2.0的版本
pod ‘AFNetworking’, ‘<2.0′ //使用小于2.0的版本
pod ‘AFNetworking’, ‘<=2.0′ //使用小于或等于2.0的版本
pod ‘AFNetworking’, ‘~>0.1.2′ //使用大于等于0.1.2但小于0.2的版本,相当于>=0.1.2并且<0.2.0
pod ‘AFNetworking’, ‘~>0.1′ //使用大于等于0.1但小于1.0的版本
pod ‘AFNetworking’, ‘~>0′ //高于0的版本,写这个限制和什么都不写是一个效果,都表示使用最新版本
然后保存退出。vim环境下,保存退出命令是:

:wq

小提示:(终端vim/vi文件 按 i 可编辑 ,esc 退出编辑,:wq 或者ZZ 可保存退出)

这时候,你会发现你的项目目录中,出现一个名字为Podfile的文件,

而且文件内容就是你刚刚输入的内容。注意,Podfile文件应该和你

的工程文件.xcodeproj在同一个目录下。

这时候,你就可以利用CocoPods下载AFNetworking类库了。还是

在终端中的当前项目目录下,运行以下命令:

$ pod install


(如果在pod install、或者pod update时,不想升级specs库,可以增加忽略参数

pod install --no-repo-update

pod update --no-repo-update)

因为是在你的项目中导入AFNetworking,这就是为什么这个命令需

要你进入你的项目所在目录中运行。

运行上述命令之后,小编的终端出现以下信息:

[i] From now on use ‘cocoaPodsDemo.xcworkspace’

注意最后一句话,意思是:以后打开项目就用CocoaPodsDemo.xcworkspace打开,而不是之前的.xcodeproj文件。

##注意
```
注意,这里有个小问题,如果刚刚你不是输入$ pod update,而是输入$ pod install,会发现类库导入不成功,并且终端出现下面

提示:

[!] Required version (UAAppReviewManager (from `../`)) notfound for `UAAppReviewManager`.

Available versions: 0.1.6这里的意思大概是Podfile文件过期,类库有升级,但是Podfile没有

更改。$ pod install只会按照Podfile的要求来请求类库,如果类

库版本号有变化,那么将获取失败。但是$ pod update会更新所有

的类库,获取最新版本的类库。而且你会发现,如果用了$ pod

update,再用$ pod install就成功了。

那你也许会问,什么时候用$ pod install,什么时候用$ pod

update呢,我又不知道类库有没有新版本。好吧,那你每次直接用$ pod update算了。或者先用$ pod install,如果不行,再用$

pod update。

终端 cocoapods 下载bug调试:

错误1:

Error fetching http://ruby.taobao.org/:

bad response Not Found 404 (http://ruby.taobao.org/specs.4.8.gz)

解决方案:把安装流程中 $gem sources -a http://ruby.taobao.org/---改为----> $gem sources -a https://ruby.taobao.org/

错误2:

ERROR: While executing gem ... (Errno::EPERM)

Operation not permitted - /usr/bin/pod

解决方案:苹果系统升级OS X EL Capitan后会出现的插件错误,将安装流程 4.安装CocoaPods 的 (1)sudo gem install cocoapods ——>改为sudo gem install -n /usr/local/bin cocoapods

错误3:

[!] Unable to satisfy the following requirements: - `AVOSCloud (~> 3.1.6.3)` required by `Podfile`

Specs satisfying the `AVOSCloud (~> 3.1.6.3)` dependency were found, but they required a higher minimum deployment target.

解决方案:安装流程:Podfile文件 中 platform:ios,‘6.0’后边的 6.0 是平台版本号 ,一定要加上

其他解决不了的

解决方案:

$ sudo rm -rf ~/.cocoapods/repos/master

$ pod setup

```

from :
http://www.th7.cn/Program/Ruby/201606/869773.shtml


# 强迫使用,暴力解决

```
$ mkdir -p $HOME/Software/ruby
$ export GEM_HOME=$HOME/Software/ruby
$ gem install cocoapods
[...]
1 gem installed
$ export PATH=$PATH:$HOME/Software/ruby/bin
$ pod --version
0.37.2
```



11 changes: 11 additions & 0 deletions develop_ble.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#introduce JLBLEctrl
>* 1 swift2.2
>* 2 xcode 7.3.1
>* 3 third party: babybluetooth
>* 4 demo third party: audioplayer,prettyruler,SVDH etc
>* 5 oc and swift
>* 6 Localizabl.string(Base,English,Simplified)
>* 7 custom ui for obsoulety,storyboard
>* 8

#first step
12 changes: 12 additions & 0 deletions develop_wechat.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
###wechat

[wechat info](https://open.weixin.qq.com/cgi-bin/frame?t=home/app_tmpl&lang=zh_CN)

[OAuth 2.0 Swift](https://github.com/OAuthSwift/OAuthSwift)

[prepare]9https://open.weixin.qq.com/cgi-bin/showdocument?action=dir_list&t=resource/res_list&verify=1&id=1417694084&token=e571d84f8ceec401d7be6be904177e7b4a0a8700&lang=zh_CN)

[login](https://open.weixin.qq.com/cgi-bin/showdocument?action=dir_list&t=resource/res_list&verify=1&id=open1419317851&token=e571d84f8ceec401d7be6be904177e7b4a0a8700&lang=zh_CN)


[share](https://open.weixin.qq.com/cgi-bin/showdocument?action=dir_list&t=resource/res_list&verify=1&id=open1419317332&token=e571d84f8ceec401d7be6be904177e7b4a0a8700&lang=zh_CN)
3 changes: 3 additions & 0 deletions dict_note
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
使用dict.fromkeys(range(100),[])初始化时 用append改编其中一个值其他的值也跟着改变 ————所以元素的地址全都指向一个[]
避免这种错误的方法 使用推导式初始化———— {k:[] for k in range(100)}

7 changes: 7 additions & 0 deletions ios_bridging_header.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
## Bridging-Header.h

1.项目名-Bridging-Header.h 的桥接文件

2、配置头文件:去BuildSettings --> Swift Compiler-Code Generation --> Objective-C Bridging Header 中设置桥接文件的路径:

3、在需要使用的swift文件中可以 **直接用swift语言** 的方式调用oc文件及其方法、属性
3 changes: 3 additions & 0 deletions meituan_note.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#link-(http://tech.meituan.com/archives)

#
Binary file modified note/java/monitor.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion note/python/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
16. [Python实用技巧](./useful_features.md)
17. [python测试](./testing.md)
18. [gevent简介](./gevent.md)
19. [Django应用部署(nginx、gunicorn、virtualenv、supervisor)](.\note\python\deploy_django_with_nginx.md)
19. [Django应用部署(nginx、gunicorn、virtualenv、supervisor)](./deploy_django_with_nginx.md)
20. [理解WSGI](./wsgi.md)
21. [Flask之Hello world详解](./flask.md)

Expand Down
2 changes: 1 addition & 1 deletion note/python/collections.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ namedtuple是在python2.6中开始出现的,在collections模块下面,它扩展
语法是这样的:

collections.namedtuple(typename, filed_names[, verbose])
地一个参数指定新类型的名字,第二个参数是字符串(用空格或者逗号隔开)它构成了这个类型的域. 如果verbose等于True.那么就会打印出类生成信息.
第一个参数指定新类型的名字,第二个参数是字符串(用空格或者逗号隔开)它构成了这个类型的域. 如果verbose等于True.那么就会打印出类生成信息. 

>>> People = namedtuple("People",'age name', True)
class People(tuple):
Expand Down
Loading