Skip to content

Instantly share code, notes, and snippets.

@rifazn
rifazn / change-theme.sh
Created September 18, 2021 20:37
Hook for gammastep that changes between light and dark variants of theme
#!/bin/sh
# Rifaz Nahiyan
# https://github.com/rifazn
# Hook for gammastep that changes between light and dark variants of theme
# Place this in $XDG_CONFIG_DIR/gammastep/hooks/
# TODO: if prefers-dark-theme is set to true, don't do anything
set_theme () {
@rifazn
rifazn / dark-toggle.sh
Last active September 19, 2021 14:24
A shell script to toggle between light and dark variants of a GTK theme.
#!/bin/sh
# A small POSIX compliant script to toggle between dark and light variant
# of a theme for GNOME based desktops.
# Copyright (C) 2021 Rifaz Nahiyan
# This code is licensed under the MIT License.
# View the license in its entirety at: https://opensource.org/licenses/MIT
get_current_theme () {
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@rifazn
rifazn / Assignment 3 Part B - Area estimation using Monte Carlo method.ipynb
Created March 25, 2021 12:02
Assignment 3 Part B for Simulation & Modeling Lab (UIU)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@rifazn
rifazn / Assignment 3 Part A - Area (and Pi) estimation using Monte Carlo method.ipynb
Last active July 9, 2021 12:52
Assignment 3 Part A for Simulation & Modeling Lab (UIU)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@rifazn
rifazn / conway-taskB.ipynb
Created January 3, 2021 15:31
Conway simulation for Simulation & Modeling course.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@rifazn
rifazn / penguinmeladescription.txt
Last active April 10, 2019 04:42
Description of Penguin Mela, UIU
Penguin Mela: A day with Free Software
Description:
What is Free Software? Is it the software that you download for free, but later says, "Conditions applied?" Is a software really free if you cannot share it with friends, if you cannot modify it, if you cannot even inspect what it's doing (even though it's inspecting you?) Is that even okay?
Lets spend a day finding about "Free Software." Softwares that give you freedom, literally. Freedom to (recursively) copy, modify, share, inspect. Softwares with no plan of entrapping you in a walled (enclosed) ecosystem. Free software is all around us. We use it everyday. On our computers, on our phones, when we use the Internet, when we hire a ride...
Lets talk about softwares that we use ... and the softwares that we could use: Windows, or Linux. Chrome, or Firefox. Photoshop, or the GIMP?