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
# 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 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
# | |
# 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 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
# | |
# 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 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
graph = { | |
'S': ['A', 'B', 'D'], | |
'A': ['C'], | |
'B': ['D'], | |
'C': ['D', 'G'], | |
'D': ['G'], | |
# 'G': [] # we can write/ignore this (both are OK) | |
} |
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
function add(n1, n2) { | |
return n1 + n2; | |
} | |
add(5, 6); |
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
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()); | |
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
#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]; |
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
#include <fstream> | |
#include <iostream> | |
#include <stdio.h> | |
#include <string.h> | |
using namespace std; | |
int main() | |
{ | |
char data[15]; |
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
//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); | |
} |
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
#include <iostream> | |
#include <string> | |
#include <cctype> | |
#include <fstream> | |
#include <iomanip> | |
#include <cmath> | |
#include <cstdio> | |
#include <stdlib.h> | |
#define max 10 |
NewerOlder