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
#include <stdio.h> | |
#include <conio.h> | |
const int max=50; | |
//ham nhap mang | |
void input(int *a, int *b, int &hang, int &cot){ | |
int dem=0; | |
printf("Nhap so hang: "); scanf("%d",&hang); | |
printf("Nhap so cot: "); scanf("%d",&cot); | |
for(int i=0;i<hang;i++){ |
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
/* | |
* 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 model.bean; | |
/** | |
* | |
* @author dracu |
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
package multithreadedchat; | |
import java.io.BufferedReader; | |
import java.io.IOException; | |
import java.io.InputStreamReader; | |
import java.io.OutputStreamWriter; | |
import java.io.PrintWriter; | |
import java.net.Socket; | |
import java.net.UnknownHostException; |
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
package giaipt; | |
import java.io.File; | |
import java.io.FileNotFoundException; | |
import java.util.Scanner; | |
import bai1_2.KyPhapBaLan; | |
public class BieuThuc { | |
private String bieuthuc = ""; |
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
package matrixTCP; | |
import java.io.File; | |
import java.io.FileNotFoundException; | |
import java.util.Scanner; | |
public class Matrix { | |
private int rows; | |
private int cols; | |
private double[][] data; |
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
var currentClick = 0; | |
var num = 1; | |
// list of all connected users | |
var users = []; | |
io.on('connection', function(socket){ | |
var newUser = { | |
name: 'user'+(num++), | |
numOfClicks: 0 | |
} | |
// add newUser |
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
package com.company; | |
/** | |
* Created by tandat on 10/14/16. | |
*/ | |
public class ClockAngle { | |
public static void main(String[] args) { | |
System.out.println("Angle = " + countAngle(12, 15)); | |
} | |
public static double countAngle(int h, int m){ |
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
function group(arr){ | |
let result = []; | |
let j=0; | |
let tmp = arr; | |
while(tmp.length > 0){ | |
let cmp = tmp[0]; | |
result[j] = []; | |
for(let i=0; i<tmp.length;i++){ | |
if(isAnagram(cmp, tmp[i])){ | |
result[j].push(tmp[i]); |
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
rvm_current() { | |
rvm current 2>/dev/null | |
} | |
rbenv_version() { | |
rbenv version 2>/dev/null | awk '{print $1}' | |
} | |
local ret_status="%(?:%{$fg_bold[green]%}➜ :%{$fg_bold[red]%}➜ )" | |
PROMPT='${ret_status} %{$fg[cyan]%}$(shrink_path -l -t)%{$reset_color%} $(git_prompt_info)' |
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
function FindProxyForURL(url, host) { | |
switch (true) { | |
case shExpMatch(host, "localdev.*"): | |
return "PROXY localhost:3000"; | |
case shExpMatch(host, "jp.*.jobing.com"): | |
return "PROXY localhost:3000"; |
OlderNewer