Skip to content

Instantly share code, notes, and snippets.

View kikohz's full-sized avatar
💭
I may be slow to respond.

x kikohz

💭
I may be slow to respond.
View GitHub Profile
@kikohz
kikohz / gist:0299c7a90c8820aaa7c7
Created July 9, 2015 06:47
获取进京证接口
http://182.92.232.86:8080/tramera/m/cam?m=get
@kikohz
kikohz / podspecfile
Last active August 29, 2015 14:09
HZWebViewController podspec file
Pod::Spec.new do |s|
s.name = "HZWebViewController"
s.version = "0.0.4"
s.summary = "Browser Control"
s.homepage = "https://github.com/kikohz/HZWebViewController"
s.license = { :type => 'MIT', :file => 'LICENSE' }
s.author = { "kikohz" => "kikohz@gmail.com" }
s.social_media_url = "http://twitter.com/H_z2"
s.platform = :ios, '5.0'
s.source = { :git => "https://github.com/kikohz/HZWebViewController.git", :tag => "#{s.version}" }
@kikohz
kikohz / Tool.m
Last active August 29, 2015 13:56
身份证号码验证
+ (BOOL)validateIDCardNumber:(NSString *)value {
//检查 去掉两端的空格
value = [value stringByTrimmingCharactersInSet:[NSCharacterSet whitespaceAndNewlineCharacterSet]];
//检查长度
int length = 0;
if (!value) {
return NO;
}else {
length = value.length;
@kikohz
kikohz / ImageBrowser.podspec
Created January 20, 2014 15:23
ImageBrowser podspec
Pod::Spec.new do |s|
s.name = 'ImageBrowser'
s.version = 'v0.2'
s.license = { :type => 'MIT', :file => 'LICENSE' }
s.summary = 'A simple picture viewer.'
s.homepage = 'https://github.com/kikohz/ImageBrowser'
s.author = { 'H_z' => 'kikohz@gmail.com' }
s.source = { :git => 'https://github.com/kikohz/ImageBrowser.git', :tag => 'v0.2' }
s.platform = :ios
s.source_files = 'Source'
@kikohz
kikohz / test
Last active January 3, 2016 16:09
kvo test file
{
data: [
{
ad_name: "测试",
ad_des: "这是一条测试数据",
ad_type: "web",
ad_image: "http://ww4.sinaimg.cn/bmiddle/b89e3f89gw1ecnm9ngyipj20c80ewad8.jpg",
ad_url: "http://xxx.com",
ad_location: 0,
ad_id: "0"
Pod::Spec.new do |s|
s.name = 'KNSemiModalViewController'
s.version = '0.4'
s.license = { :type => 'MIT',
:text => <<-LICENSE
UIViewController+KNSemiModal is licensed under MIT License
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell