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 python | |
import httplib | |
import socket | |
from json import dumps | |
from random import randint | |
from datetime import datetime | |
from sys import getsizeof | |
#Timing Start | |
startTime = datetime.now() |
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
//@link http://twitter.github.com/bootstrap/base-css.html#icons | |
var bigOutput = "array(\n"; | |
var number = 1; | |
//how many results per line | |
var resultsPerLine = 4; | |
$("#icons .the-icons i").each(function(index) | |
{ | |
var vector = (this.className).split("-"); | |
//console.log(index + " : " + this.className +" : " + vector); |
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
// Read a certain number of character from the keyboard | |
// put it in *string | |
// return the number of characters read | |
int read_string(char *string, int read_length) | |
{ | |
char read_char; | |
int i = 0; | |
// weird case when we have \n on our first character | |
if((read_char = getchar()) != '\n') |
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 python2 | |
import sys | |
""" | |
You have k lists of sorted integers. Find the smallest range that includes at least one number from each of the k lists. | |
For example, | |
List 1: [4, 10, 15, 24, 26] | |
List 2: [0, 9, 12, 20] | |
List 3: [5, 18, 22, 30] | |
The smallest range here would be [20, 24] as it contains 24 from list 1, 20 from list 2, and 22 from list 3. |
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
#pragma once | |
#include <stdlib.h> | |
#include <stdio.h> | |
#include <stdbool.h> | |
#include <string.h> | |
#include <ctype.h> | |
#include <unistd.h> | |
#include <limits.h> | |
#include <fcntl.h> | |
#include <errno.h> |
- https://en.wikipedia.org/wiki/Anti-spam_techniques
- https://en.wikipedia.org/wiki/Hashcash
- https://en.wikipedia.org/wiki/Sender_Policy_Framework
- https://support.google.com/a/answer/81126?hl=en
- https://en.wikipedia.org/wiki/DomainKeys_Identified_Mail
- http://www.emaildeliveryjedi.com/avoid-spam-filters.php
- https://www.inmotionhosting.com/support/edu/everything-email/spam-prevention-techniques/spf-records-domain-keys-combating-spam
- http://www.zoasoft.com/blog/avoiding-the-spam-folder-dkim
- http://ongoingoperations.com/blog/2014/05/preventing-spam-spf-dkim-dmarc/
- https://wiki.debian.org/Self-Signed_Certificate
- http://www.linux.com/learn/tutorials/392099-creating-self-signed-ssl-certificates-for-apache-on-linux
- http://myonlineusb.wordpress.com/2011/06/19/how-to-convert-certificates-between-pem-der-p7bpkcs7-pfxpkcs12/
- https://www.sslshopper.com/article-most-common-openssl-commands.html
- https://github.com/ioerror/duraconf/blob/master/startssl/README.markdown#getting-a-free-certificate
- http://blog.brabeum.com/2011/08/securing-apache-for-free-with-ssl-and-startssl/
- https://www.startssl.com/?app=21
- https://konklone.com/post/switch-to-https-now-for-free
- https://www.globalsign.com/ssl/ssl-open-source/
- https://www.godaddy.com/ssl/ssl-open-source.aspx
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 <ctime> | |
#include <string> | |
class Time | |
{ | |
public: | |
static std::string getTime() // in HH:MM::SS | |
{ | |
std::time_t t = std::time(nullptr); | |
std::tm *tm = std::localtime(&t); |
OlderNewer