Skip to content

Instantly share code, notes, and snippets.

/*
Navicat MySQL Data Transfer
Source Server : lib
Source Server Version : 50505
Source Host : localhost:3306
Source Database : diemsv
Target Server Type : MYSQL
Target Server Version : 50505
private void jButton6ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton6ActionPerformed
JFileChooser fc = new JFileChooser();
fc.setAcceptAllFileFilterUsed(false);
fc.addChoosableFileFilter(new ImageFilter());
fc.setBounds(10, 10, 500, 500);
int value = fc.showOpenDialog(null);
File file = fc.getSelectedFile();
if(value == JFileChooser.OPEN_DIALOG){
file = fc.getSelectedFile();
}
----------------------------------
--BAI3----------------------------
----------------------------------
--A.6
SELECT TOP 1 CAST(SUBSTRING(HIEUSO, 1, 1) AS INT) AS BANTHANG, CAULACBO.TENCLB, TINH.TENTINH
FROM BANGXH JOIN CAULACBO ON BANGXH.MACLB = CAULACBO.MACLB
JOIN TINH ON CAULACBO.MATINH = TINH.MATINH
WHERE VONG=3
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package GUID;
import java.awt.Container;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;
----------------------------------
--BAI3----------------------------
----------------------------------
--A.6
SELECT TOP 1 CAST(SUBSTRING(HIEUSO, 1, 1) AS INT) AS BANTHANG, CAULACBO.TENCLB, TINH.TENTINH
FROM BANGXH JOIN CAULACBO ON BANGXH.MACLB = CAULACBO.MACLB
JOIN TINH ON CAULACBO.MATINH = TINH.MATINH
WHERE VONG=3
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package common;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileNotFoundException;
declare -a can=('Canh' 'Tan' 'Nham' 'Quy' 'Giap' 'At' 'Binh' 'Dinh' 'Mau' 'Ky')
declare -a chi=('Than' 'Dau' 'Tuat' 'Hoi' 'Ti' 'Suu' 'Dan' 'Mao' 'Thin' 'Ty' 'Ngo' 'Mui')
echo ${can[`expr $1 % 10`]} ${chi[`expr $1 % 12`]}
<!DOCTYPE html>
<html>
<head>
<script>
var i = 0;
function myFunction() {
var arr = ["https://scontent-hkg3-1.xx.fbcdn.net/v/t1.0-9/13614963_575086482664798_8883246360922577859_n.jpg?oh=b32359dce459fc119f53ddc98aeb0285&oe=57EB408A","https://scontent-hkg3-1.xx.fbcdn.net/v/t1.0-9/13614970_640455629436155_6508876143278195466_n.jpg?oh=feb612e4c3ff5a4a96b1f4483fc915e8&oe=582BAC5A"];
document.getElementById("myImage").src=arr[i];
i+=1;
}
@echo off
color 1e
:BEGIN
TITLE Phan mem tat may
Mode con: COLS=83 LINES=35
cls
echo.
echo. *****************************************************************************
echo. *****************************************************************************
echo. ***************************** Phan mem tat may *****************************
<html>
<head>
<style>
table {
border-collapse: collapse;
}
table td {
color: blue;
}
</style>