Skip to content

Instantly share code, notes, and snippets.

View riceball1's full-sized avatar

Dana Ng riceball1

View GitHub Profile
@riceball1
riceball1 / game-dev-resources.md
Last active April 12, 2023 16:07
game dev resources
@riceball1
riceball1 / grocery-app.md
Last active September 11, 2024 22:24
Project Ideas: Grocery App
  • Build a grocery app
    • shows all the available items in a list
    • be able to add or delete an item
    • add an item to favorites and view favorites.
    • allow user to restore completed items
  • allow user to create different lists and add items from the available items
@riceball1
riceball1 / dana-bucket-list.md
Last active October 7, 2025 06:27
A bucket list for my 30s and 40s

Dana's 30s and 40s Bucket List

Pending

  • Have an empanada in Argentina
  • Scuba dive in the ocean
  • Eat a mango and/or samosa while looking at the Himalaya
  • Visit Dubai
  • Drink horse milk from a yurt in Central Asia
  • Eat tachin in Iran
@riceball1
riceball1 / linked-list-python.py
Created July 24, 2021 23:44
Linked List Example
class Element(object):
def __init__(self, value):
self.value = value
self.next = None
class LinkedList(object):
def __init__(self, head=None):
self.head = head
def append(self, new_element):
class binarySearch {
constructor() {
this.left = 0;
this.right = 0;
this.middle = 0;
}
search(array, value){
this.middle = (array.length - 1) / 2;
// My own implementation of a BST
class binarySearchTree {
constructor() {
this.left = null;
this.right = null;
this.root = null;
}
/** Search
1) The share price for a company over a week's trading is as follows: [128, 97, 121, 123, 98, 97, 105].
If you had to buy shares in the company on one day, and sell the shares on one of the following days,
write an algorithm to work out what the maximum profit you could make would be.
2) Imagine that you wanted to find what the highest floor of a 100 story building you could
drop an egg was, without the egg breaking. But you only have two eggs. Write an algorithm to
work out which floors you should drop the eggs from to find this out in the most efficient way.
@riceball1
riceball1 / bash_profile.txt
Last active January 19, 2020 21:59
My Bash Profile
##################
### MY ALIASES ###
##################
# git commamands simplified
alias gst='git status'
# simple commands
alias c='clear'
alias desk='cd ~/Desktop'
@riceball1
riceball1 / capstone2-MVP.md
Last active February 16, 2017 18:36
User stories for Capstone 2 project

#Description: Multipurpose is an app that provides users access to a database of information on everyday, natural household items so they can find multipurpose uses for those items in order to reduce waste. #User Stories: ##As a user, I should be able to… * sign up to access the app * login to the app * search for everyday household items from a database * click on a household item and get more information about the item * read/contribute tips about the household item

  • rate others' tips