Skip to content

Instantly share code, notes, and snippets.

View nihat-js's full-sized avatar
📑
Reading Documentation ...

Nihat nihat-js

📑
Reading Documentation ...
View GitHub Profile
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());
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 {
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,
@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 ) {
@nihat-js
nihat-js / reset.css
Created January 13, 2023 17:56
Reset CSS
*{
margin:0;
padding:0;
box-sizing:border-box;
text-decoration:none;
list-style : none;
font-family : 'apple'
}
a{