Skip to content

Instantly share code, notes, and snippets.

View clive819's full-sized avatar
👨‍🎓

Clive clive819

👨‍🎓
View GitHub Profile
#!/usr/bin/python
import sys #for cmd line argv
#take command line args as the input string
input_string = sys.argv
#remove the program name from the argv list
input_string.pop(0)
#convert to google friendly url (with + replacing spaces)

Google Text to Speech API

Base URL: http://translate.google.com/translate_tts
It converts written words into audio. It accepts GET requests.

GET

q
The query string to convert to audio

tl
Translation language, for example, ar for Arabic, or en-us for English

#!/usr/bin/env python2
"""
Author: takeshix <takeshix@adversec.com>
PoC code for CVE-2014-0160. Original PoC by Jared Stafford (jspenguin@jspenguin.org).
Supportes all versions of TLS and has STARTTLS support for SMTP,POP3,IMAP,FTP and XMPP.
"""
import sys,struct,socket
from argparse import ArgumentParser
'''
Establish a socket connection through an HTTP proxy.
Author: Fredrik Østrem <frx.apps@gmail.com>
License:
This code can be used, modified and distributed freely, as long as it is this note containing the original
author, the source and this license, is put along with the source code.
'''
@clive819
clive819 / download_ccleaner.py
Last active August 29, 2015 14:19 — forked from Inndy/download_ccleaner.py
Download CCleaner and extract
import re, requests, subprocess, os
"""
Download CCleaner and extracting
Tips: make 7z within PATH environment
2014/04/22
Inndy
"""
#include <iostream>
#include <math.h>
#include <iomanip>
using namespace std;
int main(){
int digits;
cout << "Enter the number of digits (taken from 2, 4, 6, 8): ";
cin >> digits;
#define _CRT_SECURE_NO_WARNINGS
#include <iostream>
#include <fstream>
#include <string>
#include <iomanip>
using namespace std;
struct DATA{
int record, quantity;
char name[80];
/*public static void main(String args[]){
SVM svm = SVM.create();
HOGDescriptor hog = new HOGDescriptor(new Size(64, 128), new Size(16, 16), new Size(8, 8), new Size(8, 8), 9);
Mat vector = new Mat();
Mat label = new Mat();
int dim = 0;
for (int i=0; i<100; i++){
Mat img = Imgcodecs.imread("/Users/Clive/Desktop/trainHOG-master/pos/"+i+".png");
MatOfFloat factor = new MatOfFloat();
MatOfPoint locations =new MatOfPoint();
ORG 0000h
MOV 40h,#0
MOV 41h,#6
MOV 42h,#4
MOV 43h,#1
MOV DPTR, #Led_table
back:
MOV R0,#40h
MOV 0E0h,#0FEh
#include <stdlib.h>
#include <stdio.h>
struct NODE{
int data;
struct NODE *link;
};
struct STACK{
int count;
struct NODE *top;
};