Skip to content

Instantly share code, notes, and snippets.

View aarohmankad's full-sized avatar
🎯
Focusing

Aaroh Mankad aarohmankad

🎯
Focusing
View GitHub Profile
function palindrome (str) {
return str.toLowerCase().replace(/[^A-Z0-9]/g, "") == str.toLowerCase().replace(/[^A-Z0-9]/g, "").split("").reverse().join("");
}
palindrome('Ey$!#E');
function isEven(number){
// if number modulo 2 is 0, it means that the number divided by two has no remainder, which means it's even.
// 4 % 2 = 0
// 3 % 2 = 1
if(number % 2 === 0){
return true;
}
else
{
return false;
[
{
"PassengerId": 1,
"Survived": 0,
"Pclass": 3,
"Name": "Braund, Mr. Owen Harris",
"Sex": "male",
"Age": 22,
"SibSp": 1,
"Parch": 0,

Aaroh Mankad

As a volunteer for three computer science education non-profits, Aaroh has been working on building a community around the classroom that allows students to take charge of their own learning.

Aaroh Mankad is a senior at Mission Vista High School, planning on a computer science major in college. He has made programming his passion for five years, all starting with his first mentor: his older cousin. He volunteers for several non-profits that inspire students to explore the world of programming.

Aaroh's goal is to be able to be the same kind of mentor he has been priviledged to have throughout his life to everyone he meets.


We're going to start with all of us closing our eyes (take some of the tension off of me). Now imagine yourself in the most boring math class you ever took. The monotone teacher is just buzzing on and on about who even knows, you haven't been paying attention for the past twenty minutes. He decides to give you a last minute homework assignment (great, something t

@aarohmankad
aarohmankad / custom_style.css
Created December 9, 2016 23:35
Add color-coded commenting to Hacker News
tr.comtr td table tr td.ind img[src="s.gif"][width="0"] {
border-right: 2px solid purple;
height: 100%;
padding-left: 5px;
}
tr.comtr td table tr td.ind img[src="s.gif"][width="120"] {
border-right: 2px solid yellow;
height: 100%;
padding-left: 5px;
export default {
baseUrl: 'http://hackuci.herokuapp.com/api',
}
double ackermann(double m, double n) {
if (m == 0) {
return n + 1;
} else if (n == 0) {
return ackermann(m - 1, 1);
}
return ackermann(m - 1, ackermann(m, n - 1));
}
for (element of document.querySelectorAll('.bt-request-buffed')) { element.click() }
@aarohmankad
aarohmankad / .bashrc
Last active January 25, 2018 06:13
Bash
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
# Run tmux by default
if command -v tmux>/dev/null; then
[[ ! $TERM =~ screen ]] && [ -z $TMUX ] && exec tmux
fi
# If not running interactively, don't do anything
# Miscellaneous aliases
alias ..='cd ..'
alias x='exit'
alias d='rm -rf'
alias math='insect'
alias chsh='chmod 711 *.sh'
# Filesystem aliases
alias mkdir='mkdir -pv'
alias top='htop'