Skip to content

Instantly share code, notes, and snippets.

View PizzaShift's full-sized avatar
🎯
Focusing

This Is Not A Test. PizzaShift

🎯
Focusing
View GitHub Profile
@PizzaShift
PizzaShift / Marking_ROI.py
Created April 3, 2023 18:07 — forked from akash-ch2812/Marking_ROI.py
Python code for marking regions of interest in an image for OCR
# use this command to install open cv2
# pip install opencv-python
# use this command to install PIL
# pip install Pillow
import cv2
from PIL import Image
def mark_region(imagE_path):
@PizzaShift
PizzaShift / 01-get-data-kaggle.py
Created March 2, 2023 18:53 — forked from wesslen/01-get-data-kaggle.py
stack-overflow-query
import bq_helper
from bq_helper import BigQueryHelper
# https://www.kaggle.com/sohier/introduction-to-the-bq-helper-package
stackOverflow = bq_helper.BigQueryHelper(active_project="bigquery-public-data",
dataset_name="stackoverflow")
bq_assistant = BigQueryHelper("bigquery-public-data", "stackoverflow")
bq_assistant.list_tables()
# ['badges',
# 'comments',
@PizzaShift
PizzaShift / python_gxmlimport.py
Created February 20, 2023 21:16 — forked from prggmr/python_gxmlimport.py
Tool to import enormous XML files into mysql using lxml.etree
def does_exist(tbl, where = None, where_field = 'id'):
"""Builds a MySQL SELECT statement
"""
where_clause = "WHERE `%s` = %%s" % where_field
query = "SELECT COUNT(`id`) AS total FROM %s %s" % (
tbl, where_clause
)
cur.execute(query, (where,))
return cur.rownumber != 0
@PizzaShift
PizzaShift / README.md
Created October 5, 2020 01:48 — forked from minhajuddin/README.md
Script to retrieve content from google cache
.
├── Aho - Compilers - Principles, Techniques, and Tools 2e.pdf
├── ai
│   ├── A Field Guide to Genetic Programming.pdf
│   ├── Brief Introduction to Educational Implications of Artificial Intelligence.pdf
│   ├── Computational-Linguistics.pdf
│   ├── Global Optimization Algorithms Theory and Application.pdf
│   ├── Machine Learning, Neural and Statistical Classification.pdf
│   ├── Machine Learning.pdf
│   └── Neural Networks - A Systematic Introduction.pdf
@PizzaShift
PizzaShift / UnlitTransparentColored.shader
Created October 3, 2020 01:26 — forked from keijiro/UnlitTransparentColored.shader
Unlit Transparent Colored Shader
Shader "Unlit/Transparent Colored" {
Properties {
_Color ("Main Color", Color) = (1,1,1,1)
_MainTex ("Base (RGB) Trans (A)", 2D) = "white" {}
}
SubShader {
Tags {"Queue"="Transparent" "IgnoreProjector"="True" "RenderType"="Transparent"}
ZWrite Off

Problem

A lot of GitHub projects need to have pretty math formulas in READMEs, wikis or other markdown pages. The desired approach would be to just write inline LaTeX-style formulas like this:

$e^{i \pi} = -1$

Unfortunately, GitHub does not support inline formulas. The issue is tracked here.

Investigation

@PizzaShift
PizzaShift / Aspose.Cells for .NET
Created September 11, 2020 08:15 — forked from aspose-cells/Aspose.Cells for .NET
This Gist contains CSharp code snippets for examples of Aspose.Cells for .NET.
Aspose.Cells for .NET
@PizzaShift
PizzaShift / vEquivalents.gs
Created September 2, 2020 08:09 — forked from brucemcpherson/vEquivalents.gs
Google Apps Script equivalents for common VBA function
/** @description
* javaScript/Google Apps script functions that are equivalent to common VBA functions
* in general these provide the same functionality and have the same calling stack
* See http://ramblings.mcpher.com/Home/excelquirks/codeuse for more details
* @author <a href="mailto:[email protected]">Bruce McPherson</a><a href="http://ramblings.mcpher.com"> ramblings.mcpher.com</a>
*/
/**
* Removes leading and trailing whitespace
* @param {string|number} v the item to be trimmed
@PizzaShift
PizzaShift / vEquivalents.gs
Created September 2, 2020 08:09 — forked from brucemcpherson/vEquivalents.gs
Google Apps Script equivalents for common VBA function
/** @description
* javaScript/Google Apps script functions that are equivalent to common VBA functions
* in general these provide the same functionality and have the same calling stack
* See http://ramblings.mcpher.com/Home/excelquirks/codeuse for more details
* @author <a href="mailto:[email protected]">Bruce McPherson</a><a href="http://ramblings.mcpher.com"> ramblings.mcpher.com</a>
*/
/**
* Removes leading and trailing whitespace
* @param {string|number} v the item to be trimmed