Skip to content

Instantly share code, notes, and snippets.

View Aveek-Saha's full-sized avatar
🤷‍♂️
¯\_(ツ)_/¯

Aveek Saha Aveek-Saha

🤷‍♂️
¯\_(ツ)_/¯
View GitHub Profile
@Aveek-Saha
Aveek-Saha / scrape_tags.py
Created May 14, 2019 18:37
A python script to scrape today's trending Twitter hashtags from https://trendogate.com
from bs4 import BeautifulSoup
import urllib
URL = "https://trendogate.com/place/23424977"
# Open the URL
page = urllib.request.Request(URL)
result = urllib.request.urlopen(page)
# Store the HTML page in a variable
resulttext = result.read()
@Aveek-Saha
Aveek-Saha / App.svelte
Last active May 18, 2019 17:47
A simple Svelte todo app, copy paste this in the src/App.svelte file in the svelte boilerplate.
<script>
let task = "";
let todos = ["eat", "sleep", "code"]
function addTask() {
if(task!=""){
todos.push(task)
todos = todos;
task = ""
}

Background

DuskPlayer was started as a small project with a simple goal, to build a minimal music player with all the essentials. What started as a small project back in April 2018 now has thousands of users and has recieved bug fixes and updates for over 2 years now.

As I continue to maintain and enhance this application, after some thought, I have been considering switching to Svelte from AngularJS for the UI. You can read the reasons behind this below and also vote for your preference.

Why use a framework

The main reasoning behind using a framework instead of vanilla HTML was simple, I wanted a dynamic application and a framework would make this much easier. The main features I needed were variable binding, conditional rendering and iterating with templates.

  • Why AngularJS:

I picked AngularJS when I started because it was the simplest framework that provided all the features I required, had good documentation and ample community support.

@Aveek-Saha
Aveek-Saha / snek.py
Created August 9, 2020 12:10
An implementation of Snake in python I made because I was bored
import pygame
import random
# Colors
BLACK = (0, 0, 0)
GREEN = (0, 255, 0)
WHITE = (255, 255, 255)
# Width and height of each segment of the snake
BLOCK_SIZE = 20
@Aveek-Saha
Aveek-Saha / post.txt
Last active October 4, 2023 17:54
dev.to/aveeksaha | ❤ 8 | 💬 0
📜 Automatically update your GitHub profile with your l…
▶ Introduction Your GitHub profile page is the face of your
GitHub presence and recently...
🔖 #javascript, #github, #automation, #node
📆 Apr 3 | 🔗 Link in comments
@Aveek-Saha
Aveek-Saha / spotify.txt
Last active May 10, 2022 03:18
🎧 Spotify | My Top Tracks
▶ White Mustang ..................... 🎵 Lana Del Rey
▶ Loveyou ........................... 🎵 j^p^n
▶ Loverboy .......................... 🎵 A-Wall
▶ TO THE MOON ....................... 🎵 Jnr Choi
▶ Положение - 2 Remix ............... 🎵 Dior
title post
Welcome to a Gist blog post
true

h1 Heading 8-)

h2 Heading

h3 Heading

h4 Heading

h5 Heading
title description post
Welcome to a Gist blog post
This is Blog post 1
true

Heading 1

Heading 2

title description post
Welcome to a Gist blog post
This is Blog post 2
true

Heading 1

Heading 2

@Aveek-Saha
Aveek-Saha / demo_12_post.md
Last active November 24, 2024 00:19
{"heading": "My Blog Post", "date": "2024-11-23", "time": "14:00"}
title description post
Welcome to a Gist blog post
This is Blog post 12
true

Heading 1

Heading 2