-
C'8 Coordinate: An international disaster aid coordination platform connecting first responders, volunteers, aid givers, and disaster victims to facilitate direct, transparent, and efficient aid distribution. Technologies: Python, JQuery/Vanilla Javascript, Socket.IO websockets, Google Cloud.
-
AUOSIS Online: A student virtual platform developed during the COVID-19 used in my school. Technologies: Golang, React Native, Expo SDK.
-
Hubyt: A community-driven platform for managing local hubs, enabling users to create and join local groups for sharing resources and information. Technologies: Python, React, Amazon S3.
-
Hoztal: A web app for managing hostel accommodations, allowing users to book rooms, view amenities, and connect with hostel staff. Technologies: Python, React, Google Cloud.
This file contains hidden or 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
| struct BinaryTree { | |
| tree: Vec<u32>, | |
| max_size: usize, | |
| curr_size: usize, | |
| } | |
| impl BinaryTree { | |
| fn new(max_size: usize) -> Self { | |
| BinaryTree { | |
| tree: vec![0; max_size + 1], // 1-based indexing |
This file contains hidden or 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
| #![no_std] | |
| #![no_main] | |
| use embassy::executor::Spawner; | |
| use embassy_net::wifi::{Wifi, WifiConfig}; | |
| use embassy_time::{Duration, Timer}; | |
| use esp_hal::{clock::ClockControl, peripherals::Peripherals, prelude::*}; | |
| use log::info; | |
| #[embassy::main] |
This file contains hidden or 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 recurseFn =(counter)=> { | |
| console.log(`Call count: ${counter}`); | |
| recurse(counter + 1); | |
| } | |
| try { | |
| recurseFn(1); | |
| } catch (e) { | |
| console.error(`Error: ${e.message}`); | |
| } |
This file contains hidden or 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
| export const chunkArray = (arr, size) => arr.reduce((chunks, el, idx) => { | |
| if (idx % size === 0) { | |
| chunks.push([el]); | |
| } else { | |
| chunks[chunks.length - 1].push(el); | |
| } | |
| return chunks; | |
| }, []); | |
| // Usage: |
This file contains hidden or 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 axios = require('axios'); | |
| const cheerio = require('cheerio'); | |
| const redis = require('redis'); | |
| const redisClient = redis.createClient({ | |
| url: 'redis://localhost:6379', | |
| }); | |
| redisClient.connect().catch(err => console.error('Redis connection error:', err)); |
This file contains hidden or 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
| #!/usr/bin/env python3 | |
| import requests, base64 | |
| from requests.auth import HTTPDigestAuth | |
| from bs4 import BeautifulSoup | |
| import urllib3 | |
| urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning) | |
| user= '12345678' | |
| password = 'secret' |
This file contains hidden or 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
| Text: | |
| ping | |
| pong | |
| Binary: | |
| 01110000 01101001 01101110 01100111 | |
| 01110000 01101111 01101110 01100111 | |
| Hex (ASCII): |
This file contains hidden or 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
| curl "https://awscli.amazonaws.com/AWSCLIV2.pkg" -o "AWSCLIV2.pkg" | |
| sudo installer -pkg AWSCLIV2.pkg -target / |
This file contains hidden or 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 { S3Client, CreateBucketCommand } = require("@aws-sdk/client-s3"); | |
| // Replace the following placeholders with your own values | |
| const bucketName = "your-bucket-name"; | |
| const region = "your-preferred-region"; | |
| // Set up the S3 client | |
| const s3Client = new S3Client({ region }); | |
| // Create the S3 bucket |