This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
for i in `ls` | |
do | |
for imgname in `ls $i | grep '^WM.*'` | |
do | |
echo $imgname | |
cp $i/$imgname /Users/jackyshan/Desktop/Project/PregnantMotherAte/PregnantMotherAte_Android/app/src/main/res/mipmap-hdpi/recipes/$imgname | |
done | |
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
convert icon-1024.png -resize 48x48 mipmap-mdpi/ic_launcher.png | |
convert icon-1024.png -resize 72x72 mipmap-hdpi/ic_launcher.png | |
convert icon-1024.png -resize 96x96 mipmap-xhdpi/ic_launcher.png | |
convert icon-1024.png -resize 144x144 mipmap-xxhdpi/ic_launcher.png | |
convert icon-1024.png -resize 192x192 mipmap-xxxhdpi/ic_launcher.png |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
# -*- coding: utf-8 -*- | |
import re, urllib2, threading, os | |
resp = urllib2.urlopen('https://goldetfprod.alipay.com/gold/queryChart.htm?productCode=000930') | |
respread = resp.read(); | |
pattern = re.compile(r'\[{"fundGoldPrice":\d+\.\d+'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import time | |
import thread | |
from datetime import datetime | |
cmd = """ | |
osascript -e 'tell application "System Events" to keystroke " "' | |
""" | |
def pressSpace(sign, sign1): | |
i = 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
import os | |
import urllib2 | |
import json | |
import time | |
from BaiduTrans import translate | |
while True: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-(UIImage *)boxblurImageWithBlur:(CGFloat)blur { | |
NSData *imageData = UIImageJPEGRepresentation(self, 1); // convert to jpeg | |
UIImage* destImage = [UIImage imageWithData:imageData]; | |
if (blur < 0.f || blur > 1.f) { | |
blur = 0.5f; | |
} | |
int boxSize = (int)(blur * 40); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#import "ViewController.h" | |
static CGFloat kImageOriginHight = 240.f; | |
@interface ViewController () | |
@property (strong, nonatomic) IBOutlet UIImageView *expandZoomImageView; | |
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (void)scrollViewDidEndDecelerating:(UIScrollView *)scrollView { | |
if (scrollView.tag == 318) { | |
self.currentPage = (NSInteger)((scrollView.contentOffset.x + FUll_VIEW_WIDTH / 2) / FUll_VIEW_WIDTH); | |
} | |
} | |
- (void)scrollViewDidScroll:(UIScrollView *)scrollView { | |
if (scrollView.tag == 318) { | |
NSInteger yourPage = (NSInteger)((scrollView.contentOffset.x + FUll_VIEW_WIDTH / 2) / FUll_VIEW_WIDTH); | |
CGFloat additionCount = 0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#import "ViewController.h" | |
#import <MediaPlayer/MediaPlayer.h> | |
#import <AVFoundation/AVFoundation.h> | |
@interface ViewController () | |
@property(nonatomic,strong)MPMoviePlayerController *moviePlayer; | |
@property(nonatomic ,strong)NSTimer *timer; | |
@property (weak, nonatomic) IBOutlet UIView *alpaView; | |
@property (weak, nonatomic) IBOutlet UIButton *regiset; | |
@property (weak, nonatomic) IBOutlet UIButton *login; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// JKJSPatchHelper.h | |
// YangTao | |
// | |
// Created by jackyshan on 16/10/11. | |
// Copyright © 2016年 linkcool. All rights reserved. | |
// | |
#import <Foundation/Foundation.h> |
OlderNewer