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
| #!/usr/bin/env python3 | |
| """ | |
| apache_insights.py — Quick, practical insights from Apache/Nginx combined logs. | |
| Features | |
| - Parses (gz or plain) Combined Log Format lines like: | |
| 66.249.72.225 - - [24/Oct/2025:00:01:22 +0000] "GET /path HTTP/1.1" 200 123 "-" "UA" | |
| - Summaries: | |
| * Requests/time (minute & hour), spike detection | |
| * Status code distribution & 3xx/4xx/5xx leaders |
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
| //Finding Divisor of a number (efficient) | |
| #include "bits/stdc++.h" | |
| using namespace std; | |
| #define MAX 10000000 | |
| #define LL long long | |
| bool Mark[MAX+10]; | |
| vector<LL>prime; |
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
| <html> | |
| <title>CopyFileFromURL script</title> | |
| <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous"> | |
| <div class="container" style="margin-top:50px;" > | |
| <div class="row"> | |
| <div class="col-sm"> |
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 SavingAccount{ | |
| private long accountId; | |
| private String accountName; | |
| private String address; | |
| private double balance; | |
| public SavingAccount(long accountId, String accountName, String address, double balance) { | |
| this.accountId = accountId; | |
| this.accountName = accountName; |
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
| /* | |
| * File Chooser Homework | |
| * Text Analyzer Project | |
| * CSE2015 - Programming Language 2 Java (KMH) | |
| * Southeast University | |
| */ | |
| package text.analyzer; | |
| import java.io.File; | |
| import java.io.FileNotFoundException; |
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
| /* | |
| * CSE 2015 - Programming Language II (KMH) | |
| * Homework - March 5, 2018 | |
| */ | |
| import java.io.FileNotFoundException; | |
| import java.io.IOException; | |
| import java.io.RandomAccessFile; | |
| /** |
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 TextToInteger { | |
| public static void main(String[] args) { | |
| String text = "+1234"; | |
| int number = convertToInteger(text); | |
| //number++; | |
| System.out.println(number); | |
| } |