- Binary Search
- Search Insert Position
- Guess Number Higher or Lower
- Find Peak Element
- Find Smallest Letter Greater Than Target
- Search in a Sorted Array of Unknown Size
- Fixed Point
- Find the Index of the Large Integer
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gen.model.tester: | |
ollama create llama3-coder -f Modelfile | |
ollama run llama3-coder < /dev/null | |
cache.model.tester: | |
ollama run llama3-coder < /dev/null |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const { GoogleResults, BingResults, DDGResults } = require('./sniffratings'); | |
function parseArguments(args) { | |
const argsMap = {}; | |
let currentKey = null; | |
for (let i = 2; i < args.length; i++) { | |
const arg = args[i]; | |
if (arg.startsWith('-')) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// file present in std/debug.zig | |
pub fn println(comptime fmt: []const u8, args: anytype) void { | |
lockStdErr(); | |
defer unlockStdErr(); | |
const stderr = io.getStdErr().writer(); | |
nosuspend stderr.print(fmt ++ "\n", args) catch return; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Internet Engineering Task Force (IETF) Amitava Ghosh | |
Internet-Draft Example Inc. | |
Intended status: Standards Track June 3, 2024 | |
Expires: December 3, 2024 | |
A New Date Format for ISO Compatibility and Reduced Ambiguity | |
draft-iso-date-extended-date-format-00 | |
Abstract |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# Search and play music from terminal. Like chop chop. | |
# There is enough fancy shit which we call RAM Diggers | |
# | |
# Usage: | |
# ./bozeman.sh <search term> | |
# | |
# Example ./bozeman.sh coffee shop noise |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- src/setup.lua | |
local version = _VERSION:match("%d+%.%d+") | |
package.path = 'lua_modules/share/lua/' .. version .. | |
'/?.lua;lua_modules/share/lua/' .. version .. | |
'/?/init.lua;' .. package.path | |
package.cpath = 'lua_modules/lib/lua/' .. version .. | |
'/?.so;' .. package.cpath |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" | |
" A (not so) minimal vimrc. | |
" | |
" You want Vim, not vi. When Vim finds a vimrc, 'nocompatible' is set anyway. | |
" We set it explicitely to make our position clear! | |
set nocompatible | |
filetype plugin indent on " Load plugins according to detected filetype. | |
syntax on " Enable syntax highlighting. |
amitava.dev@proton.me | @github | @linkedin | @blog
Bangalore, India
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
provider "aws" { | |
region = "ap-south-1" | |
} | |
// Create vpc and add a subnet | |
// Add a routing table and direct all traffic from internet | |
// to the subnet | |
resource "aws_vpc" "app_vpc" { | |
cidr_block = "10.0.0.0/16" | |
enable_dns_support = true |
NewerOlder