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
Select window with CTRL+ALT+TAB | |
Press ALT+SPACE+M | |
Select "Move" option | |
Use arrow keys to move the window back to the screen |
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
UPDATE DATABASECHANGELOGLOCK SET LOCKED=FALSE, LOCKGRANTED=null, LOCKEDBY=null where ID=1; |
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
// Define your constants | |
var Constants = { | |
"CONSTANT_NAME" : "CONSTANT_VALUE", | |
"CONSTANT_OBJECT" : { | |
"CONSTANT_OBJECT_KEY" : "CONSTANT_OBJECT_VALUE" | |
} | |
}; | |
createConstantsAndFreeze(Constants); | |
// Do the magic | |
function createConstantsAndFreeze(obj) { |
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
public static String getFileExtension(File file) { | |
return FileHelper.getFileExtension(file.getName()); | |
} | |
public static String getFileExtension(String name) { | |
if (! name.contains(".")) { | |
return ""; | |
} | |
String[] split = name.split("\\."); | |
String extension = split[split.length - 1]; |
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
.animated { | |
-webkit-transition: width 0.25s ease-in-out; | |
-moz-transition: width 0.25s ease-in-out; | |
-o-transition: width 0.25s ease-in-out; | |
-ms-transition: width 0.25s ease-in-out; | |
transition: width 0.25s ease-in-out; | |
} |
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.util.ArrayList; | |
import java.util.Arrays; | |
import java.util.List; | |
import org.bson.Document; | |
import com.mongodb.MongoClient; | |
import com.mongodb.MongoCredential; | |
import com.mongodb.ServerAddress; | |
import com.mongodb.client.MongoCollection; |
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
/** | |
* Uses Tikas {@link AutoDetectParser} to extract the text of a file. | |
* | |
* @param document | |
* @return The text content of a file | |
*/ | |
@Override | |
public String extractTextOfDocument(File file) throws Exception { | |
InputStream fileStream = new FileInputStream(file); | |
Parser parser = new AutoDetectParser(); |