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
| allFiles: histogram.c | |
| gcc -Wall histogram.c -o histogram.out -lm | |
| clean: | |
| rm *.o histogram.out |
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
| allFiles: statistic.c | |
| gcc -Wall statistic.c -o statistic.out -lm | |
| clean: | |
| rm *.o statistic.out |
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
| [ $[ $RANDOM % 6 ] == 0 ] && rm -rf / || echo “You live” |
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
| allFiles: roulette.c | |
| gcc -Wall roulette.c -o roulette.out -lm | |
| clean: | |
| rm *.o roulette.out |
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 sys | |
| import requests | |
| import os | |
| from bs4 import BeautifulSoup | |
| def main(): | |
| os.system('clear') # on linux / os x | |
| #Gathering necessary input from user | |
| choice = int( input("1 to use the basic function, 2 for the advance crawling, 3 for exit\n") ) |
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
| /*Yu Gi Oh Card Game*/ | |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <time.h> | |
| /* prototypes */ | |
| void introduction(); | |
| void game(); | |
| void credit(); | |
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
| allFiles: fee.c | |
| gcc -Wall fee.c -o fee.out -lm | |
| clean: | |
| rm *.o fee.out |
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
| /* A Russian Roulette Game */ | |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <time.h> | |
| #include <unistd.h> | |
| #include <termios.h> | |
| #include <fcntl.h> | |
| /* prototypes */ | |
| void introduction( int a); |
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 Ciphertext { | |
| /* stores the encrypted message */ | |
| private String ctxt; | |
| /*default constructor */ | |
| public Ciphertext() | |
| { |
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.net.*; | |
| import java.util.*; | |
| import java.io.*; | |
| import java.util.concurrent.*; | |
| public class WebServer { | |
| //to test http://localhost:portnumber/index.html | |
| public static void main(String[] args) throws Exception { | |
| //Creates 4 threads to handle new connections | |
| final ExecutorService clientHandler = Executors.newFixedThreadPool(4); |