- Reddit –
/r/sqlserver,/r/sql, and/r/database
| // https://towardsdatascience.com/quickly-extract-all-links-from-a-web-page-using-javascript-and-the-browser-console-49bb6f48127b | |
| let x = document.querySelectorAll("a"); | |
| let myarray = []; | |
| for (let i = 0; i < x.length; i++) { | |
| let nametext = x[i].textContent; | |
| let cleantext = nametext.replace(/\s+/g, " ").trim(); | |
| let cleanlink = x[i].href; | |
| myarray.push([cleantext, cleanlink]); | |
| } | |
| function make_table() { |
| [alias] | |
| xdiff = "!f() { \ | |
| git diff "$@" $(git ls-files --modified --exclude-standard | fzf -m); \ | |
| }; f" | |
| xadd = "!f() { \ | |
| git add "$@" $(git ls-files --modified --others --exclude-standard | fzf -m); \ | |
| }; f" |
| # Пакет работы с Excel файлами | |
| library("openxlsx") | |
| library("logging") | |
| library("RODBC") | |
| suppressPackageStartupMessages(library("data.table")) | |
| loggerName <- "ge_dcast" | |
| file_name <- "GE обр НТ_v06.xlsx" |
| /* | |
| ======================================================= | |
| Find Top Exec Plans to Optimize | |
| ======================================================= | |
| Author: Eitan Blumin | eitanblumin.com , madeiradata.com | |
| Date: 2020-08-12 | |
| Description: | |
| Use this script to discover execution plans with a good | |
| potential for performance optimization. | |
| Finds execution plans with warnings and problematic operators. |
| DECLARE @t TABLE ( | |
| id int NOT NULL | |
| , c nvarchar(1000) NULL | |
| ); | |
| INSERT INTO @t(id, c) | |
| SELECT 1 AS id, 'Это русский язык' AS c | |
| UNION ALL | |
| SELECT 2, 'This is not Russian Language' | |
| UNION ALL |
www.petrobangla.org.bd/sites/default/files/files/petrobangla.portal.gov.bd/reports/61071c03_29d4_4ba2_ba7e_3c95a44e8e72/2020-07-30-16-36-eb64d7f66bbedf56e60b6cf379aa8b25.pdf www.petrobangla.org.bd/sites/default/files/files/petrobangla.portal.gov.bd/reports/9762842c_a703_4746_87a0_889b6dc72ae9/2020-07-29-14-08-c2e6d86b7f64380f602537607b7c8d91.pdf www.petrobangla.org.bd/sites/default/files/files/petrobangla.portal.gov.bd/reports/32584243_9ef1_48dd_abab_5c83b4d86fcd/2020-07-28-13-12-4c06947c67443d143d91f58b25e66119.pdf www.petrobangla.org.bd/sites/default/files/files/petrobangla.portal.gov.bd/reports/2b461c3b_e147_4fab_a8b7_1268707a711d/2020-07-27-14-12-15304eba7e4818afc233d7d488e8b841.pdf www.petrobangla.org.bd/sites/default/files/files/petrobangla.portal.gov.bd/reports/ec0b2ba8_4c95_4187_8a60_71bcb99e20ec/2020-07-27-08-53-c410e27a5079b5bd2ef7ab976d21ac84.pdf www.petrobangla.org.bd/sites/default/files/files/petrobangla.portal.gov.bd/reports/9f1949f5_3faa_4e1d_8896_6e33ee08f170/2020-07-25-17-14-7f8f4c118161acc8b
| print @@version | |
| USE tempdb; | |
| GO | |
| SET ANSI_NULLS ON; | |
| GO | |
| SET QUOTED_IDENTIFIER ON; | |
| GO | |
| CREATE OR ALTER FUNCTION dbo.TryParseAFID (@stringAFID nvarchar(MAX)) |
| """ | |
| Shows how to do a cross join (i.e. cartesian product) between two pandas DataFrames using an example on | |
| calculating the distances between origin and destination cities. | |
| Tested with pandas 0.17.1 and 0.18 on Python 3.4 and Python 3.5 | |
| Best run this with Spyder (see https://github.com/spyder-ide/spyder) | |
| Author: Markus Konrad <[email protected]> | |
| April 2016 |
| /* Note: don't run this all at once. There are prompts to run some queries in another session, etc. */ | |
| WHILE @@trancount > 0 | |
| ROLLBACK | |
| GO | |
| USE master; | |
| GO | |
| IF DB_ID('lockingtest') IS NOT NULL |