Skip to content

Instantly share code, notes, and snippets.


Aditya Rao adityarao310

View GitHub Profile
View .zshrc
export PATH="/Applications/$PATH"
# to load virtual environment into the shell
source /usr/local/bin/
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
# Path to your oh-my-zsh installation.
adityarao310 / scrolling.css
Last active Jan 10, 2020
Horizontal scrolling without using JS - pure CSS only
View scrolling.css
.list_of_cards {
/* This is the important part */
flex-wrap: nowrap; /* to make sure in mobile view, cards appear in row */
overflow-x: auto; /* to add scrollbar or not */
align-items: center;
-webkit-overflow-scrolling: touch; /* magic for safari */
-ms-overflow-style: -ms-autohiding-scrollbar;
/* Add your own styling to your cards here */
adityarao310 / chart.html
Last active Aug 21, 2018
Integrate Django app data with Google Charts API
View chart.html
<!-- At the bottom of your page as usual, insert chart.js so that when html loads the chart is loaded -->
<!-- django template block to insert the block if you are using base template -->
{% block chart %}
{% endblock %}
<!-- Scripts required to run the page -->
<script type="text/javascript" src="{% static '/habit_app/js/chart.js' %}"></script>