Skip to content

Instantly share code, notes, and snippets.

# mixture between C and Perl. See the mod_ssl documentation
# for more details.
#<Location />
#SSLRequire ( %{SSL_CIPHER} !~ m/^(EXP|NULL)/ \
# and %{SSL_CLIENT_S_DN_O} eq "Snake Oil, Ltd." \
# and %{SSL_CLIENT_S_DN_OU} in {"Staff", "CA", "Dev"} \
# and %{TIME_WDAY} >= 1 and %{TIME_WDAY} <= 5 \
# and %{TIME_HOUR} >= 8 and %{TIME_HOUR} <= 20 ) \
# or %{REMOTE_ADDR} =~ m/^192\.76\.162\.[0-9]+$/
#
# This is the main Apache HTTP server configuration file. It contains the
# configuration directives that give the server its instructions.
# See <URL:http://httpd.apache.org/docs/2.4/> for detailed information.
# In particular, see
# <URL:http://httpd.apache.org/docs/2.4/mod/directives.html>
# for a discussion of each configuration directive.
#
# Do NOT simply read the instructions in here without understanding
# what they do. They're here only as hints or reminders. If you are unsure
#
# This is the main Apache HTTP server configuration file. It contains the
# configuration directives that give the server its instructions.
# See <URL:http://httpd.apache.org/docs/2.4/> for detailed information.
# In particular, see
# <URL:http://httpd.apache.org/docs/2.4/mod/directives.html>
# for a discussion of each configuration directive.
#
# Do NOT simply read the instructions in here without understanding
# what they do. They're here only as hints or reminders. If you are unsure
graph = {
'S': ['A', 'B', 'D'],
'A': ['C'],
'B': ['D'],
'C': ['D', 'G'],
'D': ['G'],
# 'G': [] # we can write/ignore this (both are OK)
}
@mahmmoudkinawy
mahmmoudkinawy / gist:228248c7379808a0a29484f5956df842
Created April 25, 2022 14:42
دا الكود بتاع جمع العددين اللي انت طلبته مني
function add(n1, n2) {
return n1 + n2;
}
add(5, 6);
Scanner scan = new Scanner(System.in);
ArrayList<Integer> list = new ArrayList<>();
System.out.print("Enter Number of records you wanna add to ArrayList: ");
int num = scan.nextInt();
for (int i = 0; i < num; i++)
list.add(scan.nextInt());
#include <iostream>
using namespace std;
//8 4 2 1 3
void Sort(int array[], int length){
for(int i = 1 ; i < length ; i++){
int current = array[i]; //index[1] = 4
int j = i - 1; //1 - 1 = 0
while(j >= 0 && array[j] > current){ //8 > 4
array[j+1] = array[j];
#include <fstream>
#include <iostream>
#include <stdio.h>
#include <string.h>
using namespace std;
int main()
{
char data[15];
//To run this fucking code just pree right click then run code or Shift + F6
import java.util.Arrays;
public class QuickSort {
public void sort(int[] arr) {
sort(arr, 0, arr.length - 1);
}
#include <iostream>
#include <string>
#include <cctype>
#include <fstream>
#include <iomanip>
#include <cmath>
#include <cstdio>
#include <stdlib.h>
#define max 10