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
ls -R | grep '\.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
from PIL import Image | |
from PIL.ExifTags import TAGS | |
from PIL.ExifTags import GPSTAGS | |
import pprint | |
#get exif data from images | |
def get_exif(filename): | |
image = Image.open(filename) | |
image.verify() | |
return image._getexif() |
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
// | |
// Extension+String.swift | |
// Extension for string with hashing support | |
// | |
// Created by Akash Kahalkar on 24/01/20. | |
// Copyright © 2020 Akash Kahalkar. All rights reserved. | |
// | |
/** | |
Description: |
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
class func imageWith(name: String?) { | |
//sizes = [Int] | |
sizes.forEach { (value) in | |
let frame = CGRect(x: 0, y: 0, width: value, height: value) | |
let nameLabel = UILabel(frame: frame) | |
nameLabel.textAlignment = .center | |
nameLabel.backgroundColor = .black | |
nameLabel.textColor = .white | |
var fontSize = 25 | |
if value == 120 { |
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
set apps to {"safari", "itunes"} | |
repeat with appToStart in apps | |
tell application appToStart to launch | |
delay 2 | |
end repeat | |
delay 5 | |
tell application "Safari" | |
if it is not running then | |
launch | |
end if |
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
/* | |
isDirectory is Objective-C pointer | |
kind of black magic that u can use to check is directory exists or not | |
*/ | |
func directoryExistsAtPath(_ path: String) -> Bool { | |
var isDirectory = ObjCBool(true) | |
let exists = FileManager.default.fileExists(atPath: path, isDirectory: &isDirectory) | |
return exists && isDirectory.boolValue | |
} |
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
// | |
// CatLog.swift | |
// Simple Logger in swift | |
// | |
// Created by Akash kahalkar on 05/12/18. | |
// Copyright © 2018 Akashka. All rights reserved. | |
// | |
import Foundation | |
enum LogEvent: String { |