Skip to content

Instantly share code, notes, and snippets.

@rajatguptarg
rajatguptarg / spec.md
Created August 17, 2025 20:47 — forked from CypherpunkSamurai/spec.md
Kiro AI System Prompt

System Prompt

Identity

You are Kiro, an AI assistant and IDE built to assist developers.

When users ask about Kiro, respond with information about yourself in first person.

You are managed by an autonomous process which takes your output, performs the actions you requested, and is supervised by a human user.

You talk like a human, not like a bot. You reflect the user's input style in your responses.

@rajatguptarg
rajatguptarg / general_lib.txt
Created September 20, 2018 18:42 — forked from brent-hoover/general_lib.txt
Common Erlang Functions
-module(general_lib).
-compile(export_all).
-define(SECRET, "SOMETEXTHERE").
time_as_string() ->
{MegaSeconds, Seconds, MicroSeconds} = erlang:now(),
integer_to_list(MegaSeconds) ++ integer_to_list(Seconds) ++ integer_to_list(MicroSeconds).
time_as_seconds() ->
@rajatguptarg
rajatguptarg / bst.erl
Created February 1, 2018 11:35 — forked from vedantk/bst.erl
Binary search trees in Erlang
-module(bst).
-export([bst_create/0, bst_insert/2, bst_search/2]).
bst_create() -> [].
bst_insert(Bst, N) ->
case Bst of
[] -> [N, [], []];
[Root, Lhs, Rhs] ->
if
@rajatguptarg
rajatguptarg / gist:e05c39492143def26a1bffa9716e3f79
Created January 3, 2018 16:32 — forked from theburningmonk/gist:3093711
Erlang exception handling example
-module(exceptions).
-export([sword/1, talk/0, black_knight/1]).
sword(1) -> throw(slice);
sword(2) -> erlang:error(cut_arm);
sword(3) -> exit(cut_leg);
sword(4) -> throw(punch);
sword(5) -> exit(cross_bridge).
talk() -> "blah blah".
@rajatguptarg
rajatguptarg / Flask-Restful_S3_File_Upload.py
Created April 20, 2016 11:26 — forked from RishabhVerma/Flask-Restful_S3_File_Upload.py
Uploading a file to S3 while using Flask with Flask-Restful to create a REST API.
# -*- coding: utf-8 -*-
"""
An example flask application showing how to upload a file to S3
while creating a REST API using Flask-Restful.
Note: This method of uploading files is fine for smaller file sizes,
but uploads should be queued using something like celery for
larger ones.
"""
from cStringIO import StringIO
@rajatguptarg
rajatguptarg / gist:2cbc5d884f54d03cd6e9
Created March 21, 2016 08:56 — forked from chrissimpkins/gist:5bf5686bae86b8129bee
Atom Editor Cheat Sheet (Sweetmeat)

Use these rapid keyboard shortcuts to control the GitHub Atom text editor on Mac OSX.

Key to the Keys

  • ⌘ : Command key
  • ⌃ : Control key
  • ⌫ : Delete key
  • ← : Left arrow key
  • → : Right arrow key
  • ↑ : Up arrow key
@rajatguptarg
rajatguptarg / hubot-slack-heroku.md
Created March 16, 2016 17:19 — forked from trey/hubot-slack-heroku.md
Steps to Install Hubot in Slack using Heroku
@rajatguptarg
rajatguptarg / The Technical Interview Cheat Sheet.md
Created December 19, 2015 16:05 — forked from tsiege/The Technical Interview Cheat Sheet.md
This is my technical interview cheat sheet. Feel free to fork it or do whatever you want with it. PLEASE let me know if there are any errors or if anything crucial is missing. I will add more links soon.

Studying for a Tech Interview Sucks, so Here's a Cheat Sheet to Help

This list is meant to be a both a quick guide and reference for further research into these topics. It's basically a summary of that comp sci course you never took or forgot about, so there's no way it can cover everything in depth. It also will be available as a gist on Github for everyone to edit and add to.

Data Structure Basics

###Array ####Definition:

  • Stores data elements based on an sequential, most commonly 0 based, index.
  • Based on tuples from set theory.