Action | Notepad++ shortcut | Vim shortcut |
---|---|---|
Duplicate line | Ctrl+D |
yyp |
Cut line | Ctrl+L |
dd |
Move line up/down | Ctrl+Shift+<up/down> |
dd<k/j>p |
Compare files | File compare plugin wizard | :vsplit <filename> or vimdiff file1 file2 (from command line) |
Select all (from here to top/bottom of file) | Ctrl+Shift+<home/end> |
v<gg/G> |
Select all (from here up/down one page) | Ctrl+Shift+ |
v Ctrl+ |
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
function h(html) { | |
return html.replace(/<p>/g, '\n\n') | |
.replace(/<\/p>/g, '') | |
.replace(/<b>/g, '**') | |
.replace(/<\/b>/g, '**') | |
.replace(/<i>/g, '_') | |
.replace(/<\/i>/g, '_') | |
.replace(/<code[^>]*>/g, (match) => { | |
const lm = match.match(/class="[^"]*language-([^"]*)"/); | |
return lm ? '\n```' + lm[1] + '\n' : '```'; |
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
import requests | |
from bs4 import BeautifulSoup | |
def expand_linkedin_url(url): | |
try: | |
# Perform a GET request to the LinkedIn shortened URL | |
response = requests.get(url, allow_redirects=True) | |
# Parse the response content using BeautifulSoup | |
soup = BeautifulSoup(response.content, 'html.parser') | |
# Find the final URL from the interstitial page |
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
#!/usr/bin/env bash | |
function house_builder() { | |
# floors,rooms,has_garage | |
echo "0,0,0" | |
} | |
function set_field() { | |
local f r g | |
IFS=, read f r g |
moved to
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
#!/usr/bin/perl -w | |
# A simple web crawler that demonstrates using LWP::Simple and Perl | |
use strict; | |
use LWP::Simple; | |
my $url = shift || die "Please provide an initial source url"; | |
my $max = 10; |
1 Solicita la descarga de tus datos de Twitter. Ve a "Configuración" -> "Cuenta" -> "Tus datos de Twitter" (Puede tomar hasta 24 horas (o más) para que Twitter prepare tus datos para la descarga. Así que hay que esperar)
2 Una vez que tus datos estén listos, recibirás un correo electrónico con un enlace para descargar un archivo zip. Extrae el archivo zip y ve al directorio "data" para acceder a tus datos de Twitter.