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
/////////////// | |
// gulpfile.js | |
/////////////// | |
import gulp from 'gulp'; | |
import sass from 'gulp-sass'; | |
const path = { | |
src: './src/scss/**/*.scss', | |
dest: './src/css' |
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
BEGIN { | |
c1 = 0; | |
c2 = 0; | |
p1 = 0; | |
p2 = 0; | |
t1 = 0; | |
t2 = 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
set stop 100; | |
set type gsm; | |
set minth 0; | |
set maxth 30; | |
set adaptive 1; | |
set flows 0; | |
set window 30; | |
set web 2; | |
set opt(wrap) 100; | |
set opt(srcTrace) is; |
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
set stop 100; | |
set type cdma; | |
set minth 0; | |
set maxth 30; | |
set adaptive 1; | |
set flows 0; | |
set window 30; | |
set web 2; | |
set opt(wrap) 100; | |
set opt(srcTrace) is; |
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
import java.util.Arrays; | |
import java.util.Scanner; | |
public class BellmanFord { | |
private int vertexCount; | |
private int[][] graph; | |
private final int INFINITY = Integer.MAX_VALUE; | |
BellmanFord(int vertexCount) { | |
this.vertexCount = vertexCount; |
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
import java.util.Scanner; | |
public class LeakyBucket { | |
public static void main(String[] args) throws InterruptedException { | |
Scanner sc = new Scanner(System.in); | |
System.out.print("Enter bucket size: "); | |
final int size = sc.nextInt(); | |
System.out.print("Enter output rate: "); | |
final int outRate = sc.nextInt(); |
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
import java.util.Scanner; | |
public class Crc { | |
static Scanner sc = new Scanner(System.in); | |
static void readArray(int[] arr) { | |
for (int i = 0; i < arr.length; i++) { | |
arr[i] = sc.nextInt(); | |
} | |
} |
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
import java.math.BigInteger; | |
public class Rsa { | |
public static void main(String[] args) { | |
BigInteger publicKey = new BigInteger(args[0]); | |
BigInteger secretKey = new BigInteger(args[1]); | |
BigInteger n = new BigInteger(args[2]); | |
BigInteger m = new BigInteger(args[3]); | |
BigInteger e = m.modPow(publicKey, 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
import java.io.*; | |
import java.net.Socket; | |
import java.util.Scanner; | |
public class TcpClient { | |
public static void main(String[] args) { | |
Socket socket; | |
while (true) { | |
Scanner sc = new Scanner(System.in); |
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
import java.io.IOException; | |
import java.net.*; | |
import java.util.Scanner; | |
public class UdpClient { | |
static StringBuilder data(byte[] buf) { | |
if (buf == null) return null; | |
StringBuilder message = new StringBuilder(); | |
int i = 0; |
OlderNewer