#Selectores CSS
Los 30 selectores CSS que debes memorizar ( Un artículo de tutsplus.com )
#1. *
* {| #!/usr/bin/env python3 | |
| import psutil | |
| import docker | |
| from datetime import timedelta, datetime | |
| import time | |
| client = docker.from_env() | |
| while True: | |
| time.sleep(10) |
| import Block from "./Block"; | |
| import { blockFromJSON } from "./Block"; | |
| import { transactionFromJSON } from "./Transaction"; | |
| import { rerender } from "../store"; | |
| import { publish, subscribeTo } from "../network"; | |
| import { maxBy, reduce, unfold, reverse, values, prop } from "ramda"; | |
| class Blockchain { | |
| constructor(name) { | |
| this.name = name; |
| package strutil | |
| // PadLeft left pads a string str with "pad". The string is padded to | |
| // the size of width. | |
| func PadLeft(str string, width int, pad string) string { | |
| return Tile(pad, width-Len(str)) + str | |
| } | |
| // PadRight right pads a string str with "pad". The string is padded to | |
| // the size of width. |
| <?php | |
| namespace Builder\Objets; | |
| class Connection { | |
| public $host; | |
| public $port; | |
| public $user; | |
| public $pass; | |
| public $db; |
| <?php | |
| namespace Decorator; | |
| use Decorator\ValidationInterface; | |
| class Product implements ValidationInterface { | |
| public function validate(): bool { | |
| echo 'Validação do produto em si.'; | |
| <?php | |
| namespace Strategy\Auth; | |
| use Strategy\AuthInterface; | |
| use Bling\Controller\UserController; | |
| class ApiKeyStrategy implements AuthInterface { | |
| public function authenticate(...$params): bool { | |
| $userController = new UserController(); |
| import os | |
| import sys | |
| import hashlib | |
| def EnclosedString(d, starts, ends): | |
| off = d.find(starts) + len(starts) | |
| return d[off:d.find(ends, off)] | |
| def getCount(d): | |
| s = EnclosedString(d, "/Count ", "/") |
| #!/bin/bash | |
| [[ $UID == 0 ]] || { echo "run as sudo to install"; exit 1; } | |
| REPO="https://github.com/BurntSushi/ripgrep/releases/download/" | |
| RG_LATEST=$(curl -sSL "https://api.github.com/repos/BurntSushi/ripgrep/releases/latest" | jq --raw-output .tag_name) | |
| RELEASE="${RG_LATEST}/ripgrep-${RG_LATEST}-x86_64-unknown-linux-musl.tar.gz" | |
| TMPDIR=$(mktemp -d) | |
| cd $TMPDIR | |
| wget -O - ${REPO}${RELEASE} | tar zxf - --strip-component=1 |
| <?php | |
| /* | |
| * Note: This script will directly modify the .php files in the given directory. | |
| * It is assumed that the code is under version control, so you can easily review | |
| * the changes using `git diff` or similar. | |
| */ | |
| function usageError() { | |
| die("Usage: php portVarKeywords.php dir/\n"); |
#Selectores CSS
Los 30 selectores CSS que debes memorizar ( Un artículo de tutsplus.com )
#1. *
* {