Skip to content

Instantly share code, notes, and snippets.

View ambujraj's full-sized avatar
🎯
Focusing

Ambuj ambujraj

🎯
Focusing
View GitHub Profile
@ambujraj
ambujraj / lambda.js
Created October 15, 2021 12:34
AWS lambda deploy
const awsServerlessExpress = require('aws-serverless-express');
const app = require('./app');
const server = awsServerlessExpress.createServer(app)
module.exports.universal = (event, context) => awsServerlessExpress.proxy(server, event, context);
@ambujraj
ambujraj / upload_to_s3.py
Created September 23, 2021 14:31
Python script to upload file to S3.
import boto3
import sys
import os
def upload(file_name, bucket_name, key=None):
if(key is None):
key = os.path.basename(file_name)
client = boto3.client('s3')
try:
@ambujraj
ambujraj / html5-contact-form.markdown
Created October 27, 2020 13:40
HTML5 Contact Form
@ambujraj
ambujraj / mapmyindia.cpp
Created November 5, 2018 05:25
Coolest c++ cod to built the map of India
#include<stdio.h>
int main(){
int a,b,c;
for (b=c=10; a="- FIGURE?, UMKC,XYZHello Folks,\TFy!QJu ROo TNn(ROo)SLq SLq ULo+UHs UJq TNn*RPn/QPbEWS_JSWQAIJO^\NBELPeHBFHT}TnALVlBLOFAkHFOuFETp\HCStHAUFAgcEAelclcn^r^r\\tZvYxXy\T|S~Pn SPm SOn TNn ULo0ULo#ULo-W\Hq!WFs XDt!" [b+++21]; )
for(; a-- > 64 ; ) putchar ( ++c=='Z' ? c = c/ 9:33^b&1);
return 0;
}