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/local/bin/php | |
<?php | |
/** | |
* @author Michael Moravec | |
*/ | |
$targetDir = $argc > 1 ? $argv[1] : getcwd(); | |
if (!is_dir($targetDir)) throw new \InvalidArgumentException("Invalid dir '$targetDir'."); |
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
for file in *.jpg; do | |
if grep $file /tmp/a.txt;then | |
echo "not moving $file" | |
else | |
echo "moving $file" | |
mv $file to_delete/$file | |
fi | |
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
data class Vertex( | |
val id: String, | |
) | |
data class Edge( | |
val vertexA: Vertex, | |
val vertexB: Vertex | |
) { | |
val vertices: List<Vertex> = listOf(vertexA, vertexB) | |