Skip to content

Instantly share code, notes, and snippets.

View nmabhinandan's full-sized avatar
🏠
Working from home

Abhinandan nmabhinandan

🏠
Working from home
View GitHub Profile
@nmabhinandan
nmabhinandan / main.c
Created January 13, 2017 10:45
Implementation of Intersection and Union of integer digits in C
#include <stdint.h>
#include <stdio.h>
#include <stdbool.h>
bool anyMatch(int32_t num1, int32_t num2) {
while(true) {
if ((num2 % 10) == num1) {
return true;
}
@nmabhinandan
nmabhinandan / clion64.vmoptions
Created October 11, 2017 00:16
Intellij IDE VM options
-server
-Xms4g
-Xmx4g
-XX:NewRatio=3
-Xss16m
-XX:+CMSParallelRemarkEnabled
-XX:ConcGCThreads=4
-XX:+AlwaysPreTouch
-XX:+TieredCompilation
-XX:+UseCompressedOops

Keybase proof

I hereby claim:

  • I am nmabhinandan on github.
  • I am nmabhinandan (https://keybase.io/nmabhinandan) on keybase.
  • I have a public key whose fingerprint is D3EC F976 C2EC E8EE BC1E 6949 6269 798F 5377 A3BB

To claim this, I am signing this object:

@nmabhinandan
nmabhinandan / createSearchIndex.js
Created March 6, 2020 06:15
lunr search index builder
function createSearchIndex(tags, data) {
if (schema === null || !Array.isArray(tags)) {
return false;
}
if (data === null || !Array.isArray(data)) {
return false;
}
let searchIndex = lunr(function () {
this.ref('id')
@nmabhinandan
nmabhinandan / dgraph-cli.ps1
Created April 8, 2021 18:45
powershell script to start and stop dgraph database
if($args[0] -eq "start") {
Start-Process -FilePath dgraph.exe -PassThru -WindowStyle hidden -ArgumentList "alpha", "--lru_mb 1024" -WorkingDirectory .
Start-Process -FilePath dgraph.exe -PassThru -WindowStyle hidden -ArgumentList "zero" -WorkingDirectory .
Start-Process -FilePath dgraph-ratel.exe -PassThru -WindowStyle hidden -WorkingDirectory .
} elseif($args[0] -eq "stop") {
Stop-Process -Name dgraph -Force
Stop-Process -Name dgraph-ratel -Force
}