Skip to content

Instantly share code, notes, and snippets.

View EdwardBock's full-sized avatar
🚒

Edward EdwardBock

🚒
View GitHub Profile
@mxalbert1996
mxalbert1996 / Scrollbar.kt
Last active June 7, 2024 07:21
Modifiers to draw scrollbars in Jetpack Compose
/*
* MIT License
*
* Copyright (c) 2022 Albert Chang
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
@jason-cleaveland
jason-cleaveland / network-activation-for-cron-logger.php
Last active April 26, 2021 05:12
Public Code Contributions
<?php
/**
* on activation
*/
function on_activate( $networkwide ) {
// check if this is a multisite installation
if( function_exists('is_multisite') && is_multisite() ) {
// check if it is a network activation
@justincy
justincy / README.md
Last active April 5, 2024 22:19
Configure Storybook to work with Next.js, TypeScript, and CSS Modules

In addition to the Storybook for React setup, you'll also need to install these packages:

npm i -D @babel/core babel-loader css-loader style-loader
# First, install all of the things
sudo su
apt-get update
apt-get install nginx
/etc/init.d/nginx start
apt-get install python-dev
apt-get install python-pip
apt-get install libjpeg-dev libpng-dev libtiff-dev libjasper-dev libgtk2.0-dev python-numpy python-pycurl libwebp-dev python-opencv libjpeg-progs
ln -s /usr/lib/x86_64-linux-gnu/libjpeg.so /usr/lib