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
/****************************** | |
Java Programing Language | |
Author: nduy.nga | |
******************************/ | |
package mTran; | |
//import java.; | |
public class MaTran | |
{ |
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
package qlysv; | |
public class Main { | |
/** | |
* @param args the command line arguments | |
*/ | |
public static void main(String[] args) { | |
int n,a=0,b=0,c=0; |
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
if has("syntax") | |
syntax on | |
endif | |
if has("autocmd") | |
au BufReadPost * if line("'\"") > 1 && line("'\"") <= line("$") | exe "normal! g'\"" | endif | |
au BufWritePost *.sh !chmod +x % | |
au BufWritePost *.py !chmod +x % | |
endif | |
" Uncomment the following to have Vim load indentation rules and plugins | |
" according to the detected filetype. |
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
/*+--------------------------+ | |
| Java Programing Language.| | |
| Author: nduy.nga. | | |
| ThaiNguyen University. | | |
+--------------------------+*/ | |
package DS; | |
import java.util.Scanner; | |
public class DaySo | |
{ |
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
#!/bin/sh | |
# | |
# fluxbox startup-script: | |
# | |
# Lines starting with a '#' are ignored. | |
# Change your keymap: | |
xmodmap "$HOME/.Xmodmap" | |
# Applications you want to run with fluxbox. |
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
! Filename: .Xmodmap | |
! Description: map key Ctr <-> Alt; Esc <-> Caps_Lock; | |
! Copy Right - 2012: [email protected] | |
remove control = Control_L | |
remove mod1 = Alt_L | |
remove mod1 = Meta_L | |
keysym Control_L = Meta_L | |
keysym Control_L = Alt_L | |
keysym Alt_L = Control_L |
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
- create new repository named repositoryname | |
- Then, on client, create new forder named repositoryname | |
- move to the folder and initialize git by command: git init | |
- create new file README | |
- add new file or folder by git add foldername(filename) | |
- git commit -m 'The first commit' to comment for file or folder | |
- create new connection to git server by command: "git remote add connection_name https://github.com/username/repositoryname.git" or [email protected]:username/repositoryname.git | |
- then push on git server by command: git push -u connection_name master | |
- if get error Permission denied(publickey), you can: | |
- check that you are connecting to correct server by command: ssh -vT [email protected] |
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
mpd_music_dir = "/home/anony/music" | |
user_interface = "alternative" (classic/alternative) | |
song_columns_list_format = "(22)[blue]{a} (7)[red]{n} (30)[white]{t} (29)[cyan]{b} (5)[blue]{y} (7)[white]{l}" | |
playlist_disable_highlight_delay = "0" | |
song_list_format = "{$8(%l)$9 }{%a - }{%t}|{$8%f$9}" | |
song_library_format = "{%n_}{%t}|{%f}" | |
media_library_album_format = "{(%y) }%b" | |
tag_editor_album_format = "{(%y) }%b" | |
browser_playlist_prefix = "$7playlist$9 " | |
selected_item_prefix = "$8" |
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
(defun java-class () | |
"Generate a skeleton source for a Java class." | |
(interactive) | |
(setq name (read-from-minibuffer "Class name: " nil nil nil nil nil nil)) | |
(setq pck (read-from-minibuffer "Package: " nil nil nil nil nil nil)) | |
(setq exts (read-from-minibuffer "Extends: " "extends " nil nil nil nil nil)) | |
(setq impl (read-from-minibuffer "Implements: " "implements " nil nil nil nil nil)) | |
(insert (format "package %s;\n" pck)) | |
(insert "\n") | |
(insert "/**\n") |
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
using System; | |
class Ngto { | |
public Boolean CheckNT (int n) { | |
bool t = false; | |
if (n > 1) { | |
t = true; | |
for (int i = 2; i <= Math.Sqrt(n); i++) | |
{ | |
if (n % i == 0) |