Skip to content

Instantly share code, notes, and snippets.

View akshatgoel's full-sized avatar

Akshat Goel akshatgoel

View GitHub Profile
@akshatgoel
akshatgoel / template.java
Last active March 15, 2021 00:18
Binary search template
int x = -1;
int z = n / 2; // any sane large enough value to split problem space
for (int b = z; b >= 1; b /= 2) {
while (f(x+b) < f(x+b+1)) x += b;
}
int k = x+1;
for (int b = z; b >= 1; b /= 2) {
while (!ok(x+b)) x += b;
@akshatgoel
akshatgoel / config.exs
Created March 18, 2017 16:43
JaResource from_attributes
# This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
#
# This configuration file is loaded before any dependency and
# is restricted to this project.
use Mix.Config
# General application configuration
config :starlit_server,
ecto_repos: [StarlitServer.Repo]
@akshatgoel
akshatgoel / abc.md
Last active November 25, 2016 14:59

SealNote

MIT licensed Build Status Coverage Status

SealNote is simple notes/notepad application which focuses on security and simplicity. Your notes are password protected using 256-bit AES encryption. Keep sensitive information always available without compromising security!