-
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 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 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 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 |
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
// ❌ snippet_a | |
// This wouldn't work in Rust compiler because we're trying to change immutable data in memory | |
// https://doc.rust-lang.org/book/ch03-01-variables-and-mutability.html#variables-and-mutability | |
// Look at the fix in *snippet_b* | |
let mut_data:Vec<(),()> = Vec::new(); | |
for datum in set_of_data { | |
mut_data.push(datum); | |
} | |
// ✅ snippet_b |
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
fn main() -> Result<(), std::process::ExitCode> { | |
invert_binary_tree_once(Some(🌳)); | |
Ok(std::process::ExitCode::SUCCESS) | |
} | |
#[must_use = "You darn bloke! use a type that implements a *Copy* trait."] | |
struct BnTree; | |
fn invert_binary_tree_once(&mut b_tree: Option<BnTree>) -> Option<BnTree> { |
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
// https://nodejs.org/docs/latest-v18.x/api/vm.html | |
const vm = require("vm"); | |
// create an object in heap | |
const sandboxCtx = {}; | |
// Contextify the sandbox. | |
vm.createContext(sandboxCtx); | |
let code = 'var human = 2; let fish = "a big fish :)"'; |
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
// use good 'ol c-language one-liner (rust doesn't have terniary operator 🙂) | |
let x = if true { if false { true } else { false } } else { if true { false } else { true } }; | |
// could also be | |
let x = if true { !false } else { !true }; | |
// even further | |
let x = if true { true } else { false }; |
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 | |
# import multiple remote git repositories to local CODE dir | |
# settings | |
remoteHost=bitbucket.org | |
remoteUser=mrbaguvix | |
remoteDir="~/scm/remote_dir/" | |
branchName="branch_name" | |
remoteRepos=$(ssh -l $remoteUser $remoteHost "ls $remoteDir") |
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
#[macro_use] | |
extern crate lazy_static; | |
use regex::{Captures, Regex}; | |
// starts with "1" or "3" or "bc1" | |
// doesn’t contain ambiguous characters | |
// consists of uppercase or lowercase alphabetic and numeric characters | |
// except the uppercase letter "O", uppercase letter "I", lowercase letter "l", and the number "0" | |
// check that the string is 26-35 characters long |
NewerOlder