Skip to content

Instantly share code, notes, and snippets.

View prakashpandey's full-sized avatar
🎯
Focusing

Prakash prakashpandey

🎯
Focusing
View GitHub Profile
/**
* Created by : fb.com/realprakashpandey on 24/8/16.
* About Program : Java implimentation of merge sort.
/
public class MergeSorts
{
/* @ int [] array : sample input for sorting, you can provide any list of number here */
static int[] array= {3, 35 ,4 ,85};
@CMCDragonkai
CMCDragonkai / http_streaming.md
Last active July 1, 2024 00:08
HTTP Streaming (or Chunked vs Store & Forward)

HTTP Streaming (or Chunked vs Store & Forward)

The standard way of understanding the HTTP protocol is via the request reply pattern. Each HTTP transaction consists of a finitely bounded HTTP request and a finitely bounded HTTP response.

However it's also possible for both parts of an HTTP 1.1 transaction to stream their possibly infinitely bounded data. The advantages is that the sender can send data that is beyond the sender's memory limit, and the receiver can act on

@larryli
larryli / rsa-pkcs.go
Last active September 12, 2020 07:51
RSA SignPKCS1v15 and VerifyPKCS1v15
// rsa-pkcs [-hash sha1] [-key id_rsa] -sign "foobar"
// rsa-pkcs [-hash sha1] [-pub id_rsa.pub] -verify "sign_data" "foobar"
package main
import (
_ "code.google.com/p/go.crypto/md4"
_ "code.google.com/p/go.crypto/ripemd160"
"crypto"
_ "crypto/md5"
@hrp
hrp / twitter.json
Created April 4, 2011 00:20
Example JSON response from Twitter streaming API
{
"text": "RT @PostGradProblem: In preparation for the NFL lockout, I will be spending twice as much time analyzing my fantasy baseball team during ...",
"truncated": true,
"in_reply_to_user_id": null,
"in_reply_to_status_id": null,
"favorited": false,
"source": "<a href=\"http://twitter.com/\" rel=\"nofollow\">Twitter for iPhone</a>",
"in_reply_to_screen_name": null,
"in_reply_to_status_id_str": null,
"id_str": "54691802283900928",