Skip to content

Instantly share code, notes, and snippets.

View pkjc's full-sized avatar
📖
Learning

Pankaj pkjc

📖
Learning
View GitHub Profile
@CodingDoug
CodingDoug / README.md
Last active August 3, 2023 16:41
Copying Data from a Google Sheet into Firebase Realtime Database in real time via Apps Script
@saeidzebardast
saeidzebardast / Enable CORS in Spark Java
Created March 8, 2016 10:30
Enable CORS in Spark Java to allow origins *
options("/*",
(request, response) -> {
String accessControlRequestHeaders = request
.headers("Access-Control-Request-Headers");
if (accessControlRequestHeaders != null) {
response.header("Access-Control-Allow-Headers",
accessControlRequestHeaders);
}
@vasanthk
vasanthk / System Design.md
Last active May 23, 2024 02:21
System Design Cheatsheet

System Design Cheatsheet

Picking the right architecture = Picking the right battles + Managing trade-offs

Basic Steps

  1. Clarify and agree on the scope of the system
  • User cases (description of sequences of events that, taken together, lead to a system doing something useful)
    • Who is going to use it?
    • How are they going to use it?
@chestozo
chestozo / tumblr.api.post.text.js
Created September 2, 2012 08:25
Tumblr API usage with OAuth: creating a text post
var oauth = ChromeExOAuth.initBackgroundPage({
'request_url': 'http://www.tumblr.com/oauth/request_token',
'authorize_url': 'http://www.tumblr.com/oauth/authorize',
'access_url': 'http://www.tumblr.com/oauth/access_token',
'consumer_key': 'vGKikr2uBRsWoDZ947UjvSzA58HYEXDNjAer7VEXnLXlQt4Ozi',
'consumer_secret': 'JvofKKxQ2QSiVXVaWMBZQRzC5cI86YpJzAoouIkUdlvSeYXN2e',
'app_name': 'Photo post adder'
});
function stringify(parameters) {