Skip to content

Instantly share code, notes, and snippets.

View sheecegardezi's full-sized avatar

Sheece Gardezi sheecegardezi

View GitHub Profile
let jspdf = document.createElement( "script" );
jspdf.onload = function () {
let pdf = new jsPDF();
let elements = document.getElementsByTagName( "img" );
for ( let i in elements) {
let img = elements[i];
if (!/^blob:/.test(img.src)) {
continue ;
}
let canvasElement = document.createElement( 'canvas' );
Develop a Market Thesis: Understand your target market and the problem you're trying to solve. This involves talking to potential customers and understanding their pain points.
Focus on the Problem, Not the Solution: Listen to your customers' problems and not their proposed solutions. Customers may not know the best solution, but they can accurately describe the problems they face.
Rapid Prototyping: Develop a functional prototype as quickly as possible. Don't worry about scaling or monetization at this stage. The goal is to get something in front of users for feedback.
User Testing: Conduct user testing sessions with your target customers. Encourage them to use your product or service and provide open and honest feedback.
Iterate Based on Feedback: Use the feedback from user testing sessions to refine your product. Expect to go through multiple iterations before finding a product-market fit.
@sheecegardezi
sheecegardezi / extentions for vscode
Created May 29, 2023 11:25
Useful extentions for vscode
code analysis
ext install SonarSource.sonarlint-vscode
sevlte
ext install svelte.svelte-vscode
ext install ardenivanov.svelte-intellisense
ext install fivethree.vscode-svelte-snippets
tailwind
ext install bradlc.vscode-tailwindcss
@sheecegardezi
sheecegardezi / install python package in qgis
Created February 4, 2023 09:31
install python package in qgis
# open python terminal in qgis
import pip
pip.main(['install', 'my-package-name'])
@sheecegardezi
sheecegardezi / Microsoft Dangling Credential Manager
Created May 16, 2022 01:38
Delete Microsoft Dangling Credential Manager
Update the Microsoft in Credential Manager and re-build the Autodiscover.xml file
1. Navigate to your Windows Control Panel > Credential Manager > Windows Credentials
2. Select any record(s) associated with your Exchange mailbox.
3. Click Remove just below the entry.
@sheecegardezi
sheecegardezi / Vue 3, Nuxt 3, Pinia, TailwindCSS V3
Last active May 28, 2022 14:01
Vue 3, Nuxt 3, Pinia, TailwindCSS Setup
---------------------------------
Create Nuxt 3 App
npx nuxi init nuxt3app
cd nuxt3app
yarn install
----------------------------------------
Install Pinia Store
@sheecegardezi
sheecegardezi / gist:b811f9f8563dfe88bb90ee3de6698adb
Created February 10, 2022 08:08
add icons to context menu in Ubuntu
sudo apt install filemanager-actions # To install
fma-config-tool # To run the configuration tool
# set working dir too, use the dir of right click
Working directory: %d/%b
# install Nautilus Actions package
sudo apt-get install nautilus-actions
nautilus -q
@sheecegardezi
sheecegardezi / gist:f9e168ca476b11b48ffd17b7e1a45ba4
Created August 27, 2021 15:12
Run AOE 2 DE on Ubunutu 20.04
# Activating Proton with Steam Play
# https://www.linuxjournal.com/content/introduction-linux-gaming-thanks-protondb
# Select Proton Version 6.3-6
# Install AOE DE from steam
# Download vc_redist.x64.exe from Microsoft
# https://support.microsoft.com/en-us/topic/the-latest-supported-visual-c-downloads-2647da03-1eea-4433-9aff-95f26a218cc0
cd /home/$USER/.steam/steam/steamapps/compatdata/813780/pfx/drive_c/windows/system32
class XGBQuantile(XGBRegressor):
def __init__(self,quant_alpha=0.95,quant_delta = 1.0,quant_thres=1.0,quant_var =1.0,base_score=0.5, booster='gbtree', colsample_bylevel=1,
colsample_bytree=1, gamma=0, learning_rate=0.1, max_delta_step=0,max_depth=3, min_child_weight=1, missing=None, n_estimators=100,
n_jobs=1, nthread=None, objective='reg:linear', random_state=0,reg_alpha=0, reg_lambda=1, scale_pos_weight=1, seed=None,silent=True, subsample=1):
self.quant_alpha = quant_alpha
self.quant_delta = quant_delta
self.quant_thres = quant_thres
self.quant_var = quant_var
super().__init__(base_score=base_score, booster=booster, colsample_bylevel=colsample_bylevel,
@sheecegardezi
sheecegardezi / .conkyrc
Last active June 23, 2021 14:44
Conky config for 4 GPU 24 CPU
# Conky, a system monitor, based on torsmo
#
# Any original torsmo code is licensed under the BSD license
#
# All code written since the fork of torsmo is licensed under the GPL
#
# Please see COPYING for details
#
# Copyright (c) 2004, Hannu Saransaari and Lauri Hakkarainen
# Copyright (c) 2005-2010 Brenden Matthews, Philip Kovacs, et. al. (see AUTHORS)