Skip to content

Instantly share code, notes, and snippets.

View sarthakpranesh's full-sized avatar
💻
Engineering

Sarthak Pranesh sarthakpranesh

💻
Engineering
View GitHub Profile
package main
import (
"fmt"
)
func main() {
// Variable declaration with "var" keyword
var name string
var age int
@sarthakpranesh
sarthakpranesh / cleanMacVMs.sh
Last active March 30, 2024 22:29
Debloat Mac OS ( use at your own risk )
# I use MacOS VMs from github for iOS development.
# By no suprise they are a bit slow and have a lot of things I don't use
# Hence this script for lighter and better VM for my iOS development and builds
# GUI and animation related things to tweak
defaults write NSGlobalDomain NSAutomaticWindowAnimationsEnabled -bool false
defaults write NSGlobalDomain NSWindowResizeTime -float 0.001
defaults write -g QLPanelAnimationDuration -float 0
defaults write com.apple.dock autohide-time-modifier -float 0
defaults write com.apple.dock launchanim -bool false
sudo sysctl debug.lowpri_throttle_enabled=0
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@sarthakpranesh
sarthakpranesh / hcpProject.md
Created February 16, 2021 09:26
Parallel Soup

High Performance Library to parallelize BeautifulSoup

A library that wrappes BeautifulSoup to provide multi threaded scrapping, reducing the total time involved in the scrapping process. The library should implement the following affectively: (this list can be extended in future)

  • Parallelization
  • Should have a generic interface that maps to beautiful soup
  • All parts of the library should be documented heavily
  • All parts of the library should have unit tests written for verification of their functionality
  • Showcase written examples for different sorts of scrapping
@sarthakpranesh
sarthakpranesh / mitra.md
Created February 5, 2021 09:55
Changes in Mitra v0.0.4

List of changes in Mitra v0.0.4

Bug Fix:
  • Setting screen app info should retrive info from package details
  • Edit profile relationship status being shown in occupation
Enhancement:
  • Remove bottom tab navigation and modify top drawer navigation to show only a back button on content screen (will provide more space for content display)
  • Hide the detailed profile content and age should be just month and year
  • List selectors such as for theme, age, etc should be easier (Use modals for selection)
@sarthakpranesh
sarthakpranesh / langClassification.go
Created November 23, 2020 11:51
Language Classification using nnGo
package main
import (
"encoding/csv"
"fmt"
"os"
"github.com/sarthakpranesh/nnGo"
)
@sarthakpranesh
sarthakpranesh / GCDAlgoStressTest.go
Created September 29, 2020 15:23
#100DayOfCode - Day 43/100 - GCD algo stress test
package main
import (
"fmt"
"math/rand"
)
func main() {
var gChan chan int = make(chan int)
var geChan chan int = make(chan int)
@sarthakpranesh
sarthakpranesh / FiboNacciAlgoStressTest.go
Last active September 29, 2020 15:00
#100DayOfCode - Day 43/100 - FiboNacci number algo stress test
package main
import (
"fmt"
"math/rand"
)
func main() {
var fChan chan int = make(chan int)
var feChan chan int = make(chan int)
@sarthakpranesh
sarthakpranesh / goSmapleGraphQL.go
Created September 28, 2020 13:25
100DaysOfCode - Day 42/100 - exploring GraphQL in go
package main
import (
"encoding/json"
"fmt"
"log"
"github.com/graphql-go/graphql"
)
class Solution {
public List<Integer> findSmallestSetOfVertices(int n, List<List<Integer>> edges) {
List<Integer> l = new ArrayList<>();
List<Integer> no = new ArrayList<>();
for (int i = 0; i < edges.size(); ++i) {
no.add(edges.get(i).get(1));
int isThereInL = l.indexOf(edges.get(i).get(1));
if (isThereInL != -1) {
l.remove(isThereInL);
}