Skip to content

Instantly share code, notes, and snippets.

Jak Získat Procentuální Skóre ze Stránky https://klient.kolikmam.cz/Home/Rating

Pokud chcete zjistit procentuální hodnocení uvedené na stránce https://klient.kolikmam.cz/Home/Rating, můžete použít tento JavaScriptový kód. Stačí jej zkopírovat a vložit do konzoly ve vašem webovém prohlížeči. Zde je postup pro různé prohlížeče

Kód

Verze v češtině s popisem

(function() {
@pavelbinar
pavelbinar / application-layout.html
Last active February 6, 2023 10:38
Slack like layout done in Tailwindcss
<!-- Example: https://play.tailwindcss.com/Q2pbgywiES -->
<div class="flex h-screen">
<div class="h-full w-16 bg-gray-200 p-4">Sidebar 1</div>
<div class="h-full w-48 bg-gray-300 p-4">Sidebar 2</div>
<div class="h-full flex-1 bg-yellow-300 p-4 overflow-auto">
<h1 class="text-4xl">Content</h1>
<p class="my-10">Lorem ipsum dolor sit amet consectetur adipisicing elit. Corrupti perspiciatis molestias adipisci eius fugit voluptatem dicta minima dolores, expedita repellat illo eligendi iure possimus assumenda, tenetur ab. Ea eaque sint dolore dolor commodi ut repudiandae accusantium nemo dolores quo reiciendis nihil, quae suscipit modi vitae eos molestiae. Cumque soluta, provident, earum laudantium beatae temporibus perspiciatis vitae pariatur quam ea fugit libero culpa placeat autem quisquam porro dolore dicta quasi animi tenetur aspernatur odit consectetur sed? Corrupti magni culpa officiis alias quo, nam ut laudantium ab illum perspiciatis vero placeat maxime corporis iure illo quod omnis quidem e
@pavelbinar
pavelbinar / index.html
Created June 17, 2020 13:31
Dynamically add script tag with unique src
<script>
var now = new Date().getTime();
var newScript = document.createElement("script");
newScript.src = "<%= htmlWebpackPlugin.options.mainURL %>?t=" + now;
var target = document.getElementsByTagName("body")[0];
target.appendChild(newScript);
</script>
@pavelbinar
pavelbinar / delete-all-node-modules.md
Last active April 25, 2024 11:58
Delete all node_modules folders

Delete all node_modules folders

Recursively delete all node_modules folders nested in the current folder.

find . -name "node_modules" -type d -prune -exec rm -rf '{}' +

Since many node_modules contain another node_modules it is more effective to delete just top level folder. use -maxdepth 2 to limit that depth. Adjust according to your foldr structure.

function color_my_prompt {
local __user_and_location="\n\[\e[32;1m\](\[\e[37;1m\]\u\[\e[32;1m\])-(\[\e[37;1m\]\w\[\e[32;1m\])"
local __git_branch='`git branch 2> /dev/null | grep -e ^* | sed -E s/^\\\\\*\ \(.+\)$/\(\\\\\1\)\ /`'
local __prompt="\n$\[\e[0m\]"
export PS1="$__user_and_location $__git_branch $__prompt "
}
color_my_prompt
@pavelbinar
pavelbinar / add-key.sh
Created May 24, 2017 15:23
Add Public SSH Key to Remote Server in a Single Command
cat ~/.ssh/id_rsa.pub | ssh user@hostname 'cat >> .ssh/authorized_keys'
sudo fdisk -l
sudo dd if=ubuntu-17.04-beta2-desktop-amd64.iso of=/dev/sdb bs=512k

Keybase proof

I hereby claim:

  • I am pavelbinar on github.
  • I am pavelbinar (https://keybase.io/pavelbinar) on keybase.
  • I have a public key whose fingerprint is DF34 2F02 0515 A49C EC82 4DD8 4118 DA48 1C39 71D4

To claim this, I am signing this object:

<?xml version="1.0" encoding="UTF-8"?>
<CORSConfiguration xmlns="http://s3.amazonaws.com/doc/2006-03-01/">
<CORSRule>
<AllowedOrigin>*</AllowedOrigin>
<AllowedMethod>HEAD</AllowedMethod>
<AllowedMethod>GET</AllowedMethod>
<AllowedMethod>PUT</AllowedMethod>
<AllowedMethod>POST</AllowedMethod>
<AllowedMethod>DELETE</AllowedMethod>
<MaxAgeSeconds>3000</MaxAgeSeconds>