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
public class ZombieThreadTester { | |
public static void main(String[] args) { | |
Thread z1 = new Thread(new ZombieThread("WINDOWS")); | |
Thread z2 = new Thread(new ZombieThread("LINUX")); | |
Thread z3 = new Thread(new ZombieThread("UNIX")); | |
Thread z4 = new Thread(new ZombieThread("UNIX")); | |
System.out.println("Active Count"+Thread.activeCount()); |
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
import java.io.BufferedReader; | |
import java.io.IOException; | |
import java.io.InputStreamReader; | |
import java.io.OutputStream; | |
import java.net.ServerSocket; | |
import java.net.Socket; | |
import java.nio.charset.StandardCharsets; | |
public class MyServer { |
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
CREATE TABLE users ( | |
id INTEGER AUTO_INCREMENT PRIMARY KEY, | |
username VARCHAR(255) UNIQUE NOT NULL, | |
created_at TIMESTAMP DEFAULT NOW() | |
); | |
CREATE TABLE photos ( | |
id INTEGER AUTO_INCREMENT PRIMARY KEY, | |
image_url VARCHAR(255) NOT NULL, | |
user_id INTEGER NOT NULL, |
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
@mixin breakpointt ($size : 'sm') { | |
$all : (sm : "320px", | |
md :"768px", | |
lg : "1200px", | |
); | |
@if (map-has-key($all, $size )) { | |
$size : map-get($all, $size ); | |
@media screen and (min-width: $size ) { |
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
*{ | |
margin:0; | |
padding:0; | |
box-sizing:border-box; | |
text-decoration:none; | |
list-style : none; | |
font-family : 'apple' | |
} | |
a{ |
NewerOlder