Skip to content

Instantly share code, notes, and snippets.

//
// main.m
// sucksha1
//
// Created by Dagu on 2018/8/20.
// Copyright © 2018年 ORANCORP. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <CommonCrypto/CommonCrypto.h>
@GintokiS
GintokiS / regex.m
Created July 11, 2018 08:55
正则表达式一例
NSString *str = @"666666[url:mLbSZ9EFBHifL3QCnLAZ2Kw8r5z64x2LhhPoxiTSV+Y=]《恶魔总裁的祭品新娘》666666,666666[url:mLbSZ9EFBHhhhhhhhhhhh8r5z64x2LhhPoxiTSV+Y=]《龙娘777》666666,666666[url:mLbSZ9EFBHhhhshitshithhhh8r5z64x2LhhPoxiTSV+Y=]《😂神特么emoji里没有屎》666666";
NSString *regexStr = @"\\[url:[\\w+=]+]《.*?》";
NSError *error;
NSRegularExpression *regex = [NSRegularExpression regularExpressionWithPattern:regexStr options:NSRegularExpressionDotMatchesLineSeparators error:&error ];
NSArray *arr = [regex matchesInString:str options:NSMatchingReportProgress range:NSMakeRange(0, str.length)];;
for (NSTextCheckingResult *match in arr) {
NSRange range = [match range];
@GintokiS
GintokiS / gist:9e0126ec489d97920a841f87c7e835a7
Created June 9, 2018 14:31
My Electron + React + antd Project gitignore
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
# Runtime data
pids
*.pid
@GintokiS
GintokiS / index.html
Created January 12, 2017 14:27 — forked from anonymous/index.html
RKayRR
<div class="container">
<div class="jumbotron">
<h1 class="text-center">防火长城</h1>
<h2 class="text-center"><em>咱们俗称的“墙”</em></h2>
<div>
<div class="thumbnail">
<img class="img-responsive" src="https://upload.wikimedia.org/wikipedia/commons/thumb/7/78/Fang_binxing.jpg/220px-Fang_binxing.jpg" alt="被认为是防火长城主要设计者的方滨兴" />
<p class="text-center">据说是墙他爹</p>
</div>
@GintokiS
GintokiS / GAME_MASTER_v0_1.protobuf
Created July 18, 2016 05:10 — forked from anonymous/GAME_MASTER_v0_1.protobuf
Pokemon Go decoded GAME_MASTER protobuf file v0.1
Result: 1
Items {
TemplateId: "BADGE_BATTLE_ATTACK_WON"
Badge {
BadgeType: BADGE_BATTLE_ATTACK_WON
BadgeRanks: 4
Targets: "\nd\350\007"
}
}
Items {
@GintokiS
GintokiS / j
Created April 19, 2016 09:39
Just test b
I can create but can not read!