Skip to content

Instantly share code, notes, and snippets.

View rounakdatta's full-sized avatar
💭
roses are sunny, noses are runny

Rounak Datta rounakdatta

💭
roses are sunny, noses are runny
View GitHub Profile
@ungoldman
ungoldman / curl_post_json.md
Last active April 28, 2025 09:21
post a JSON file with curl

How do you POST a JSON file with curl??

You can post a json file with curl like so:

curl -X POST -H "Content-Type: application/json" -d @FILENAME DESTINATION

so for example:

Personal Statements and Statements of Purpose
Personal statements (sometimes called statements of purpose) are essays required from students applying to undergraduate, graduate, or professional school. These statements are different from a job cover letter. In such statements, you are presenting yourself as a potential student. Usually universities or colleges ask you to address specific questions, but sometimes they give only general guidelines.
There are many approaches to doing these statements. It is especially important, however, to be original, sincere, honest, and to show your interest in the school to which you are applying. It is important that your essay represent who you are – resist the urge to copy models that you find on the Internet.
Here are several sites that will help you through the process of writing the statement of purpose, or college entrance essays:
http://www.wikihow.com/Write-a-Statement-of-Purpose
@tsiege
tsiege / The Technical Interview Cheat Sheet.md
Last active May 7, 2025 05:43
This is my technical interview cheat sheet. Feel free to fork it or do whatever you want with it. PLEASE let me know if there are any errors or if anything crucial is missing. I will add more links soon.

ANNOUNCEMENT

I have moved this over to the Tech Interview Cheat Sheet Repo and has been expanded and even has code challenges you can run and practice against!






\

@staltz
staltz / introrx.md
Last active May 6, 2025 07:45
The introduction to Reactive Programming you've been missing
@Zulko
Zulko / soccer_cuts.py
Last active December 30, 2024 11:15
A python script to automatically summarize soccer videos based on the crowd's reactions
#
# This Python script makes a summary of a football game by cutting
# the video around the 10 % loudest moments, which generally
# include the goals and other important events.
# For more details, see this blog post:
# http://zulko.github.io/blog/2014/07/04/automatic-soccer-highlights-compilations-with-python/
#
# LICENCE: Creative Commons 0 - Public Domain
# I, the author of this script, wave any rights and place this work in the public domain.
#
@abtrout
abtrout / pass.md
Created July 8, 2014 14:51
Using password-store with git repository synching

Password-store keeps your passwords (or any other sensitive information) saved in GnuPG encrypted files organized in ~/.password-store. For more information about GPG, consult the GNU Privacy Handbook.

Getting started

To get started, install pass and generate a keypair.

$ brew install pass
$ gpg --gen-key
$ gpg --list-keys
@cpliakas
cpliakas / gorilla-mux-json
Created November 1, 2014 21:08
Gorilla Mux return JSON payload
package main
import (
"log"
"net/http"
"github.com/bitly/go-simplejson"
"github.com/gorilla/mux"
)
@dominictarr
dominictarr / papers.md
Last active November 29, 2024 02:52
Distributed Systems Papers

(dominic: this list of papers was originally recommended to me by Brain Noguchi @bnoguchi, and was a great start to understanding distributed systems)

Here's a selection of papers that I think you would find helpful and interesting:

Time, Clocks, and the Ordering of Events in a Distributed System

The seminal paper about event ordering and concurrency. The important result is that events in a distributed system define a partially ordered set. The connection to what we're working on is fundamental, as this defines how to detect concurrent updates. Moreover, the chosen algorithm to turn the partially ordered set into a totally ordered set defines the conflict resolution algorithm.

http://research.microsoft.com/en-us/um/people/lamport/pubs/time-clocks.pdf

@oravecz
oravecz / Code
Last active May 11, 2020 08:28
Custom format support in fge/json-schema-validator
protected static Library getFormatLibrary(String version) throws IOException {
String formatPath = "/xapi/schemas/" + version + "/formats.json";
final LibraryBuilder libraryBuilder = DraftV4Library.get().thaw();
final JsonNode formats = JsonLoader.fromResource(formatPath);
// Iterate over each of the custom formats in the file
final Iterator<String> names = formats.fieldNames();
while (names.hasNext()) {