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 cv2 | |
import os | |
import numpy as np | |
def display_image(data): | |
buffer = np.frombuffer(data, dtype="u1") | |
jpeg = cv2.imdecode(buffer, cv2.IMREAD_COLOR) | |
cv2.imshow("jpeg", jpeg) |
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
{ | |
"version": "2.0.0", | |
"tasks": [ | |
{ | |
"label": "PostgreSQL: Clean", | |
"type": "shell", | |
"command": "/usr/bin/make", | |
"args": [ | |
"clean" | |
], |
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
set tabsize 4 | |
set linenumbers | |
set titlecolor blue,white |
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
template <class T, class A = std::allocator<T> > | |
class X { | |
public: | |
typedef A allocator_type; | |
typedef typename A::value_type value_type; | |
typedef typename A::reference reference; | |
typedef typename A::const_reference const_reference; | |
typedef typename A::difference_type difference_type; | |
typedef typename A::size_type size_type; |
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/python | |
from __future__ import division | |
import urllib | |
import urllib2 | |
import cookielib | |
import threading | |
import os | |
import sys | |
import time | |
import signal |
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 <stdio.h> | |
unsigned long hash(unsigned char *str) { | |
unsigned long hash = 5381; | |
int c; | |
while ((c = *str++)) | |
hash = hash * 33 ^ c; | |
return hash; | |
} |
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 <stdio.h> | |
#include <stdlib.h> | |
int main() { | |
int i = 1; | |
switch(i) { | |
case 1: | |
for(; i<3; ++i) | |
printf("i : %d\n", i); | |
default: |
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
/* | |
DECOMPILED SOURCE FOR MS RPC DCOM BLASTER WORM | |
<http://robertgraham.com/journal/030815-blaster.c> | |
This file contains source code for the "msblast.exe" worm | |
that was launched against the Internet on August 10, 2003. | |
This "source-code" was decompiled using "IDApro", an | |
"interactive disassembler". IDA is the most popular tool |
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
################################################################## | |
## | |
## List of keywords used by the Twitter search API | |
## | |
################################################################## | |
ddos | |
hacked | |
cyberthreat | |
phising | |
spam |
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
/* | |
* ------------------------------- tcpev.c --------------------------------- | |
* | |
* Copyright (c) 2015, Yorick de Wid <yorick17 at outlook dot com> | |
* All rights reserved. | |
* | |
* Redistribution and use in source and binary forms, with or without | |
* modification, are permitted provided that the following conditions are met: | |
* | |
* * Redistributions of source code must retain the above copyright notice, |
NewerOlder