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 execa from 'execa' | |
import { BaseCommand } from '@adonisjs/core/build/standalone' | |
import Application from '@ioc:Adonis/Core/Application' | |
export default class DbReset extends BaseCommand { | |
/** | |
* Command name is used to run the command | |
*/ | |
public static commandName = 'db:reset' |
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 execa from 'execa' | |
import { BaseCommand, args } from '@adonisjs/core/build/standalone' | |
export default class MakeScaffold extends BaseCommand { | |
/** | |
* Command name is used to run the command | |
*/ | |
public static commandName = 'make:scaffold' | |
@args.string({ description: 'Name of the controller and model class' }) |
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
echo "\n \033[32m ###################### PNG ###################### \033[0m \n" | |
find './assets/build' -iname '*.png' -exec pngquant --verbose --ext .png --force 256 --strip {} \; | |
# find './build' -iname "*.png" -exec optipng -o5 -strip all {} \; | |
echo "\n \033[32m ###################### JPG ###################### \033[0m \n" | |
find './assets/build' -iname "*.jpeg" -exec jpegoptim -m80 --all-progressive --strip-all {} \; | |
find './assets/build' -iname "*.jpg" -exec jpegoptim -m80 --all-progressive --strip-all {} \; |
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 <UIKit/UIKit.h> | |
@interface UIWindow (KeyBoard) | |
+ (BOOL)isKeyBoardInDisplay; | |
@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
// | |
// NSString+Validator.h | |
// IRedmine | |
// | |
// Created by Jeremy on 29/08/12. | |
// Copyright (c) 2012 opsone. All rights reserved. | |
// | |
#import <Foundation/Foundation.h> |
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 <Foundation/Foundation.h> | |
@interface NSDate (date) | |
- (BOOL)isSameDay:(NSDate*)anotherDate; | |
@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
#import <Foundation/Foundation.h> | |
@interface NSRegularExpression (regularExpression) | |
- (NSArray*) matchWithString:(NSString*)data; | |
@end |