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
use std::io::prelude::*; | |
use std::net::{TcpListener, TcpStream}; | |
use std::io::BufReader; | |
use std::thread; | |
use std::fs::File; | |
fn get_definitions(word: String) -> Vec<String>{ | |
let mut dict = File::open("dict.txt").unwrap(); | |
let mut reader = BufReader::new(dict); | |
let mut matches: Vec<String> = Vec::new(); |
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
[ | |
"http://9gag.com", | |
"https://www.facebook.com", | |
"http://www.facebook.com", | |
"https://www.reddit.com", | |
"http://www.reddit.com" | |
] |
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 <vector> | |
#include <iostream> | |
#include <SDL2/SDL.h> | |
#include "GameState.h" | |
class AsteroidsGame: public GameState{ | |
public: | |
void Draw(){ |
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 <ncurses.h> | |
#include <string.h> | |
#include <unistd.h> | |
#include <signal.h> | |
#include <fcntl.h> | |
typedef struct station { | |
char name[256]; | |
char url[256]; | |
} station; |
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
#!/usr/bin/env perl | |
use strict; | |
use warnings; | |
use HTTP::Tiny; | |
sub http_get { | |
my $http = HTTP::Tiny->new; | |
return $http->get($_[0])->{content}; | |
} |
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
package main | |
import( | |
"bufio" | |
"fmt" | |
"os" | |
"log" | |
"strings" | |
"net/url" | |
) |
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
[package] | |
name = "urlshortener" | |
version = "0.1.0" | |
authors = ["Gökberk Yaltıraklı <webdosusb@gmail.com>"] | |
[dependencies] | |
nickel = "*" | |
hyper = "*" | |
rand = "0.3.11" |
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
import socket | |
import sys | |
import threading | |
import queue | |
import time | |
common_ports = { | |
"21": "FTP", | |
"22": "SSH", | |
"23": "Telnet", |
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
#!/usr/bin/env python3 | |
import socket | |
import threading | |
import random | |
import time | |
class EvadereSocket: | |
def __init__(self): | |
self.conn = None | |
self.last_activity = time.time() |
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
import io | |
import string | |
import sys | |
class gkexpr(list): | |
def a(self): | |
pass | |
def lex(stream): | |
while True: |
OlderNewer