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
| import java.io.FileInputStream; | |
| import java.io.FileOutputStream; | |
| import java.io.IOException; | |
| import java.io.InputStream; | |
| import java.util.Iterator; | |
| import org.apache.poi.hssf.usermodel.HSSFCell; | |
| import org.apache.poi.hssf.usermodel.HSSFRow; | |
| import org.apache.poi.hssf.usermodel.HSSFSheet; | |
| import org.apache.poi.hssf.usermodel.HSSFWorkbook; |
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
| /* JigsawImage.java | |
| * @author: Madan Chaudhary | |
| * @blog: javaxp.com | |
| * */ | |
| import java.awt.image.BufferedImage; | |
| import java.io.File; | |
| import java.io.IOException; | |
| import javax.imageio.ImageIO; |
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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title> Javascript : 2048 puzzle</title> | |
| </head> | |
| <body> | |
| <center> | |
| <a style="cursor: pointer; padding-left: 10%;" onclick="return load();">new game</a> | |
| <div id="canvas"></div> | |
| <h2>Score : <div style="display:inline;" id="score"></div></h2> |
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
| //ImageCreator.java | |
| import java.awt.Color; | |
| import java.awt.Font; | |
| import java.awt.Graphics2D; | |
| import java.awt.image.BufferedImage; | |
| import java.io.File; | |
| import java.io.IOException; | |
| import javax.imageio.ImageIO; |
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
| <HTML> | |
| <HEAD> | |
| <TITLE>Popup div with disabled background</TITLE> | |
| <style> | |
| .ontop { | |
| z-index: 999; | |
| width: 100%; | |
| height: 100%; | |
| top: 0; | |
| left: 0; |
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
| import java.io.BufferedReader; | |
| import java.io.IOException; | |
| import java.io.InputStreamReader; | |
| public class WindowsProcessKiller { | |
| // command used to get list of running task | |
| private static final String TASKLIST = "tasklist"; | |
| // command used to kill a task | |
| private static final String KILL = "taskkill /IM "; |
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
| <dependency> | |
| <groupId>org.mockito</groupId> | |
| <artifactId>mockito-core</artifactId> | |
| <version>2.21.0</version> | |
| </dependency> | |
| <dependency> | |
| <groupId>junit</groupId> | |
| <artifactId>junit</artifactId> | |
| <version>4.12</version> |
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
| import xlsxwriter | |
| import mysql.connector | |
| def fetch_table_data(table_name): | |
| # The connect() constructor creates a connection to the MySQL server and returns a MySQLConnection object. | |
| cnx = mysql.connector.connect( | |
| host='localhost', | |
| database='schema', | |
| user='user', |
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
| import DraggableFlatList, { ScaleDecorator } from 'react-native-draggable-flatlist' | |
| import SwipeableItem from 'react-native-swipeable-item' | |
| . | |
| . | |
| . | |
| const itemRefs = React.useRef(new Map()) | |
| <DraggableFlatList | |
| activationDistance={15} | |
| data={getCategoriesFromTaskList()} |
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
| import mysql.connector | |
| def fetch_table_data(table_name): | |
| # The connect() constructor creates a connection to the MySQL server and returns a MySQLConnection object. | |
| cnx = mysql.connector.connect( | |
| host='localhost', | |
| database='schema', | |
| user='user', | |
| password='password' |
NewerOlder