Skip to content

Instantly share code, notes, and snippets.

View ChamRun's full-sized avatar
🤖
Part-time self-improver

Cham Run Moeini ChamRun

🤖
Part-time self-improver
View GitHub Profile
@lan496
lan496 / rref.py
Created December 22, 2020 08:30
Reduced row echelon form
import numpy as np
def reduced_row_echelon_form(matrix: np.ndarray, atol=1e-8):
"""
return reduced row echelon form of a given matrix
Parameters
----------
matrix: (nr, nl)
@tdakkota
tdakkota / example_bot.go
Last active May 29, 2022 05:07
Example Telegram Go bot which uses SOCKS5 proxy
package main
import (
"golang.org/x/net/proxy"
"log"
"net/http"
"net/url"
"os"
"time"
@woogists
woogists / wc-skeleton-shipping-method-example.php
Last active September 9, 2023 07:52
[Shipping Method API] WooCommerce skeleton shipping method plugin code example.
<?php
/*
Plugin Name: Your Shipping plugin
Plugin URI: https://woocommerce.com/
Description: Your shipping method plugin
Version: 1.0.0
Author: WooThemes
Author URI: https://woocommerce.com/
*/
@fernandoaleman
fernandoaleman / install-rabbitmq-ubuntu1604.md
Last active November 21, 2022 04:09
Install RabbitMQ on Ubuntu 16.06

Install RabbitMQ on Ubuntu 16.04

Install Erlang

wget https://packages.erlang-solutions.com/erlang-solutions_1.0_all.deb
sudo dpkg -i erlang-solutions_1.0_all.deb
sudo apt-get update -y
sudo apt-get install -y erlang erlang-nox
@cbjuan
cbjuan / LICENSE.md
Last active March 14, 2022 15:01
Stacked Bar Chart with Legend, Text Labels and Tooltips

The MIT License (MIT)

Copyright (c) 2015 Juan Cruz-Benito. http://juancb.es

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 furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR I

@goranefbl
goranefbl / custom-woocommerce-shipping.php
Last active July 2, 2024 11:01
Adds a new shipping method that calculates shipping price based on quantity of products
<?php
/*
Plugin Name: Shipping Price per Quantity Plugin
Plugin URI: http://itsgoran.com
Description: Adds a new shipping method that calculates shipping price based on quantity of products - made for Cider.
Version: 1.0.0
Author: Goran Jakovljevic
Author URI: http://itsgoran.com
*/