This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# open python terminal in qgis | |
import pip | |
pip.main(['install', 'my-package-name']) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--------------------------------- | |
Create Nuxt 3 App | |
npx nuxi init nuxt3app | |
cd nuxt3app | |
yarn install | |
---------------------------------------- | |
Install Pinia Store |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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) |
NewerOlder