Skip to content

Instantly share code, notes, and snippets.

View ngnguyen1's full-sized avatar
🏠
Working from home

Nga Nguyen ngnguyen1

🏠
Working from home
  • FPT - Silicon Labs
  • Hà Nội
  • 01:27 (UTC +07:00)
  • LinkedIn in/nga-nguyen
View GitHub Profile
@ngnguyen1
ngnguyen1 / unikey
Created February 29, 2012 23:05
Unikey hacking
Thu Mar 01 05:28 AM ~/download/ibus-unikey-0.6.1 $ ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking for style of include used by make... GNU
checking for gcc... gcc
@ngnguyen1
ngnguyen1 / array
Created March 1, 2012 04:41
Sắp xếp mảng tăng dần
import java.util.*;
class Array
{
public static void main(String[] args)
{
int n,i,j;
int a[];
Scanner input=new Scanner(System.in);
System.out.print("Nhap vao so phan tu mang: ");
n=input.nextInt();
@ngnguyen1
ngnguyen1 / README
Created March 4, 2012 16:44
README
Copyright (C) 2009 - 2011 Ubuntu-VN <http://www.ubuntu-vn.org>
Copyright (C) 2012 - 2012 Dương "Yang" ヤン Nguyễn <cmpitg@gmail.com>
Authors:
Lê Quốc Tuấn <mr.lequoctuan@gmail.com>
Dương "Yang" ヤン Nguyễn <cmpitg@gmail.com>
Home: http://ibus-unikey.googlecode.com
-------
@ngnguyen1
ngnguyen1 / so phuc
Created March 8, 2012 08:36
So phuc
package vidu1;
/**
*
* @author NgaNguyenDuy
*/
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
SoPhuc sp1=new SoPhuc(3,5);
sp1.inSoPhuc();
@ngnguyen1
ngnguyen1 / error
Created March 9, 2012 07:37
vim error
fchdir() to previous dir
sourcing "/usr/share/vim/vim72/plugin/spellfile.vim"
finished sourcing /usr/share/vim/vim72/plugin/spellfile.vim
chdir(/usr/share/vim/vim72/plugin)
fchdir() to previous dir
sourcing "/usr/share/vim/vim72/plugin/tarPlugin.vim"
finished sourcing /usr/share/vim/vim72/plugin/tarPlugin.vim
chdir(/usr/share/vim/vim72/plugin)
fchdir() to previous dir
sourcing "/usr/share/vim/vim72/plugin/tohtml.vim"
@ngnguyen1
ngnguyen1 / .gtkrc-2.0
Created March 9, 2012 07:53
.gtkrc-2.0
style "my-panel-clock"
{
fg[NORMAL] = "#FFFFFF"
font_name = "Terminus Bold 12"
}
widget "*.clock-applet-button.*" style "my-panel-clock"
@ngnguyen1
ngnguyen1 / tmux.conf
Created March 14, 2012 14:17
My config file tmux
# Make it use C-a, similar to screen..
unbind C-b
unbind l
set -g prefix C-a
bind-key a send-prefix
bind-key C-a last-window
# Remove default binding for split
unbind %
bind \ split-window -h
@ngnguyen1
ngnguyen1 / qt
Created March 24, 2012 05:42
lib error
$ ldd -d -r /usr/bin/okular
linux-gate.so.1 => (0x00f1b000)
libkparts.so.4 => /usr/lib/libkparts.so.4 (0x00110000)
libkio.so.5 => /usr/lib/libkio.so.5 (0x00a23000)
libkdeui.so.5 => /usr/lib/libkdeui.so.5 (0x005f1000)
libQtGui.so.4 => /usr/local/D-com_3G/libQtGui.so.4 (0x00f1c000)
libkdecore.so.5 => /usr/lib/libkdecore.so.5 (0x00336000)
libQtCore.so.4 => /usr/local/D-com_3G/libQtCore.so.4 (0x00c99000)
libQtDBus.so.4 => /usr/lib/libQtDBus.so.4 (0x0015e000)
libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x001d9000)
@ngnguyen1
ngnguyen1 / gist:2178752
Created March 24, 2012 05:47
Calculator
// Author Nduy.nga
import java.applet.*;
import java.awt.*;
import java.awt.event.*;
import java.util.*;
public class bai14 extends Applet implements ActionListener
{
@ngnguyen1
ngnguyen1 / CanBo.java
Created April 11, 2012 18:56
Quản lý cán bộ
/********************
author: nduy.nga
*********************/
package QLy;
public class CanBo
{
private String sHoTen,sGioiTinh,sDiaChi;
private int iNamSinh;
//Toan tu tao lap
CanBo()