26 And God said, Let us make man in our image, after our likeness: and let them have dominion over the fish of the sea, and over the fowl of the air, and over the cattle, and over all the earth, and over every creeping thing that creepeth upon the earth. 27 So God created man in his own image, in the image of God created he him; male and female created he them.
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
/* | |
* Copyright (C) 2020 Jared Rummler | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* | |
* Unless required by applicable law or agreed to in writing, software |
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 java.io.File | |
import java.util.regex.Matcher | |
import java.util.regex.Pattern | |
fun String.toFile() = File(this) | |
operator fun Matcher.get(group: Int): String = group(group)!! | |
data class MountPoint( |
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
# Output a single frame from the video into an image file: | |
ffmpeg -i input.mov -ss 00:00:14.435 -vframes 1 out.png | |
# Output one image every second, named out1.png, out2.png, out3.png, etc. | |
# The %01d dictates that the ordinal number of each output image will be formatted using 1 digits. | |
ffmpeg -i input.mov -vf fps=1 out%d.png | |
# Output one image every minute, named out001.jpg, out002.jpg, out003.jpg, etc. | |
# The %02d dictates that the ordinal number of each output image will be formatted using 2 digits. | |
ffmpeg -i input.mov -vf fps=1/60 out%02d.jpg |
gifsicle --unoptimize --explode original.gif &&
find . -iname "*\.gif\.*" | sort > frame_list.txt &&
find . -iname "*\.gif\.*" | sort -r >> frame_list.txt &&
cat frame_list.txt | xargs gifsicle > reversed.gif
A few leet code like questions/answers from years ago. They aren't optimized but it's my code. I'm a work-in-progress 🙃. Wanted to save some of those old gists and hopefully will add to it in the future.
Copyright templates for JetBrains & Android Studio.
https://medium.com/@shan1024/managing-copyright-notices-in-intellij-idea-a3f0456267ba
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 java.lang.reflect.* | |
object Reflect { | |
private val cache = mutableMapOf<String, AccessibleObject>() | |
/** | |
* Get a method from a class | |
* | |
* @param obj |