Skip to content

Instantly share code, notes, and snippets.

@rodriamaro
rodriamaro / postData
Created March 7, 2012 00:28
Executing a HTTP POST Request with HttpClient
public void postData() {
// Create a new HttpClient and Post Header
HttpClient httpclient = new DefaultHttpClient();
HttpPost httppost = new HttpPost("http://www.yoursite.com/script.php");
try {
// Add your data
List<NameValuePair> nameValuePairs = new ArrayList<NameValuePair>(2);
nameValuePairs.add(new BasicNameValuePair("id", "12345"));
nameValuePairs.add(new BasicNameValuePair("stringdata", "AndDev is Cool!"));
@rodriamaro
rodriamaro / gist:1990843
Created March 7, 2012 03:55
insert image latex
\begin{figure}[h]
\centering
\includegraphics[width=8cm]{/foo/bar.png}
\caption{Caption title}
\label{fig:example}
\end{figure}
@rodriamaro
rodriamaro / random_images.py
Created August 8, 2013 16:36
random images script generator use: ./random_images.py N_IMAGES
#!/usr/bin/python
import urllib
from random import choice, randrange
import os
import argparse
import sys
DEFAULT = 20
if len(sys.argv) > 1:
@rodriamaro
rodriamaro / README.md
Created October 18, 2016 13:01 — forked from leonardofed/README.md
A curated list of AWS resources to prepare for the AWS Certifications


A curated list of AWS resources to prepare for the AWS Certifications

A curated list of awesome AWS resources you need to prepare for the all 5 AWS Certifications. This gist will include: open source repos, blogs & blogposts, ebooks, PDF, whitepapers, video courses, free lecture, slides, sample test and many other resources.


Index: