Skip to content

Instantly share code, notes, and snippets.

View palnabarun's full-sized avatar
🐼
Breaking the world!

Nabarun Pal palnabarun

🐼
Breaking the world!
View GitHub Profile
@palnabarun
palnabarun / a.yaml
Created November 5, 2021 06:13
Experiment to parse YAML comments
# some comment
- name: John # Pal
city: Hogwarts
@palnabarun
palnabarun / content.html
Created September 1, 2021 15:24
Example to send email using SendGrid API to multiple recipients
<h2>Hi!</h2>
<p>This is a very important email!</p>
<h3>Thank you!</h3>
@palnabarun
palnabarun / README.md
Last active June 26, 2021 05:54
Part 1 of the Codebase walkthrough for Kubernetes API Internals

Kubernetes API Internals Codebase Walkthrough

The JSON file included in this gist gives a codebase walkthrough of the resource handling in the k8s apiserver.

The codebase walkthrough is created using CodeTour VS Code extension. To display the walkthrough in VS Code, use the JSON file using the Opening Tours functionality.

This is a multi-part walkthrough. See the part 2 of walkthrough [here][1]. 🎉

With go:embed,

~/s/k/kubernetes on 🌱 master (ae1f28d) on ⛵ kind-kind () on ☁️ (BOM)
❯ git checkout migrate-to-go-embed
Switched to branch 'migrate-to-go-embed'
~/s/k/kubernetes on 🌱 migrate-to-go-embed (533d583) on ⛵ kind-kind () on ☁️ (BOM)
❯ make clean
+++ [0604 09:57:51] Verifying Prerequisites....
+++ [0604 09:57:51] Removing _output directory
Removing test/e2e/generated/bindata.go ..
@palnabarun
palnabarun / README.md
Created March 26, 2021 15:30
CFP Meeting - March 23rd, 2021

Action Items:

  1. Volunteers (shashank).
  2. Weekly updates for program wg.
  3. Speaker reach-out sheet.
  4. Outreach partners sheet (abhishek).
  5. Post at more places and make a note of these on a doc/pad. https://gist.github.com/palnabarun/c9d2f5e8c0208a141f89ec002a43a38e

Minutes of Meeting

  • The strategy for contacting potential speakers was discussed. The volunteers of CFP team should contact potential speakers through email or any other social media channel and invite them to submit the talk/workshop proposal to PyCon India 2021. The volunteers should check the excel sheet before contacting any potential speaker. The excel sheet should be updated after contacting the potential speaker.
@palnabarun
palnabarun / README.md
Created March 26, 2021 15:29
PromoteCFP

Links for promoting CFP:

1. https://confs.tech/ - submitted
2. https://www.papersinvited.com/ - submitted to editorial team 
3. http://www.wikicfp.com/cfp/ - TODO
4. https://conferencealerts.com/ - TODO
5. https://pycoders.com/ -TODO
6. https://lwn.net/Calendar/ - TODO
7. https://www.pythonweekly.com/ - TODO
~/s/g/go on 🌱 master (8634a23)
❯ git log --pretty=format:"%an" doc/effective_go.html | sort | uniq -c | sort -rn
106 Rob Pike
11 Andrew Gerrand
10 Russ Cox
7 Shenghou Ma
5 Nigel Tao
4 Robert Griesemer
4 David Symonds
4 Brad Fitzpatrick
package main
import (
"context"
"encoding/json"
"fmt"
"os"
"github.com/google/go-github/github"
flag "github.com/spf13/pflag"
@palnabarun
palnabarun / new.py
Last active September 4, 2020 10:10
Running the function v/s passing a callable. old.py from https://twitter.com/sunishsurendran/status/1301786397544570881
import concurrent
import time
def execute(count):
start_time = time.time()
with concurrent.futures.ProcessPoolExecutor() as executor:
for _ in range(count):
executor.submit(time.sleep, 1)
[2020-07-07 19:35:29] <nabarun> #startclass
[2020-07-07 19:35:29] <chekov> ----BEGIN CLASS----
[2020-07-07 19:35:33] <nabarun> Roll Class
[2020-07-07 19:35:38] <nabarun> s/Class/Call
[2020-07-07 19:35:38] <schubisu> Robin Schubert
[2020-07-07 19:35:42] <raydeeam> Rayan Das
[2020-07-07 19:35:43] <snowmanstark> Philemon Johnson
[2020-07-07 19:35:49] <BhaveshSGupta> Bhavesh Gupta
[2020-07-07 19:35:51] <sayan> Sayan Chowdhury
[2020-07-07 19:35:51] <sahilister[m]> Sahil Dhiman