This file contains hidden or 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 hidden or 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 hidden or 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 180x180 icon-180.png | |
convert icon-1024.png -resize 152x152 icon-152.png | |
convert icon-1024.png -resize 120x120 icon-120.png | |
convert icon-1024.png -resize 87x87 icon-87.png | |
convert icon-1024.png -resize 80x80 icon-80.png | |
convert icon-1024.png -resize 76x76 icon-76.png | |
convert icon-1024.png -resize 58x58 icon-58.png | |
convert icon-1024.png -resize 40x40 icon-40.png | |
convert icon-1024.png -resize 29x29 icon-29.png |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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; |
OlderNewer