Skip to content

Instantly share code, notes, and snippets.

View nishant's full-sized avatar
🐢

Nishant Arora nishant

🐢
  • Charles Schwab
  • Austin, TX
View GitHub Profile
@nishant
nishant / weekly-market-analyzer.ts
Last active October 31, 2025 08:25
scrapes and formats weekly earnings reports and high-importance U.S. economic events into a readable list.
/* script */
import puppeteer, { Page } from 'puppeteer';
import { format, parse, startOfWeek } from 'date-fns';
import * as nodemailer from 'nodemailer';
interface EarningsEntry {
company: string;
ticker: string;
marketCap: string;
import { CommandContext } from '../models/command-context';
import { Command } from './command';
export class SecretSanta implements Command {
commandNames = ['santa', 'secretsanta'];
members: Array<string>;
getHelpMessage(commandPrefix: string): string {
return `Use ${commandPrefix}santa <name1> <name2> ... to create a secret santa group.`;
@nishant
nishant / .tmux.conf
Created March 8, 2020 01:40
tmux config
# resetting modifier to space
unbind C-b
set-option -g prefix C-space
bind-key C-space send-prefix
# resetting split panes to | and -
bind | split-window -h
bind - split-window -v
unbind '"'
unbind %
LAUREN YUTKO
FINAL PROJECT
CPS 2231
REPORT OF ALL ANIMALS:
73 total animals in data file.
Owner Name: Hopper Birth Year: 2003 Bill Balance: 555 Species: Kangaroo Num Legs: 2
Owner Name: Kitty-1 Birth Year: 2009 Bill Balance: 44 Species: Cat Num Legs: 4
@nishant
nishant / Animal.java
Created December 12, 2019 21:07
Project Files
/* Lauren Yutko */
package Final;
import java.util.Comparator;
class Animal implements Comparator<Animal> {
// Instance Variables
String ownerName, species;
int birthYear, billBalance;
/* Lauren Yutko - ALL FILES */
/* ANIMAL CLASS */
/* Lauren Yutko */
package Final;
import java.util.Comparator;
class Animal implements Comparator<Animal> {
@nishant
nishant / Circle.java
Created December 6, 2019 18:00
In Class 8
public class Circle extends Shape {
double radius;
public Circle(String name, double radius) {
this.name = name;
this.radius = radius;
this.area = Math.PI * Math.pow(radius, 2);
this.perimeter = 2 * Math.PI * radius;
}
public class Circle extends Point {
protected double radius;
public Circle() {
// default constructor
}
public Circle(double radius, double x, double y) {
this.radius = radius;
this.x = x;
import java.awt.;
import javax.swing.;
import java.awt.event.*;
public class BobBurgerPanel extends JPanel{
private JPanel buttonPanel;
private JButton smallDrink;
# write a function
# in <- string
# out <- boolean valid
# str = {}[]()
# ({[]}) valid
# ({})[] valid
# ({)[] invalid
# ({)[]} invalid