En Bash | En PowerShell | Alias en PowerShell | Descripción |
---|---|---|---|
ls |
Get-ChildItem | gci , dir , ls |
Listar los elementos en un directorio. |
cd |
Set-Location | cd , chdir , sl |
Cambiar el directorio actual. |
pwd |
Get-Location | pwd , gl |
Mostrar la ruta del directorio actual. |
man |
Get-Help | man , help |
Mostrar la ayuda de un comando. |
cp |
Copy-Item | cp , copy , cpi |
Copiar un elemento de un lugar a otro. |
mv |
[Move-Item](https://docs.microsoft.com/en- |
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
#ifndef _MACARON_BASE64_H_ | |
#define _MACARON_BASE64_H_ | |
/** | |
* The MIT License (MIT) | |
* Copyright (c) 2016 tomykaira | |
* | |
* Permission is hereby granted, free of charge, to any person obtaining | |
* a copy of this software and associated documentation files (the | |
* "Software"), to deal in the Software without restriction, including |
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
[Desktop Entry] | |
Type=Service | |
X-KDE-ServiceTypes=KonqPopupMenu/Plugin | |
MimeType=text/*; | |
Actions=diffFiles; | |
X-KDE-AuthorizeAction=shell_access | |
[Desktop Action diffFiles] | |
Name=Compare Files | |
Name[es]=Comparar archivos |
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
MyWindow::MyWindow(QWidget *parent) | |
{ | |
// ... | |
finiteBuffer_ = new FiniteBuffer(20); | |
FrameProcessingThread frameProcessingThread(finiteBuffer_); | |
frameProcessingThread.start(); | |
// ... | |
} |
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
QImage FiniteBuffer::extractFrame() | |
{ | |
// Bloquear el cerrojo. Es lo mismo que hacer manualmente: | |
// mutex_.lock() | |
QMutexLocker lock(&mutex); | |
// El código del productor a partir de este punto no se | |
// ejecutará si el productor ha bloqueado el cerrojo | |
// primero. | |
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 FrameProcessingThread : public QThread | |
{ | |
Q_OBJECT | |
public: | |
FrameProcessingThread(FiniteBuffer* buffer, | |
QObject *parent = 0) | |
: QThread(parent), buffer_(buffer) | |
{} |
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
void FiniteBuffer::insertFrame(const QImage& frame) | |
{ | |
// Bloquear el cerrojo. Es lo mismo que hacer manualmente: | |
// mutex_.lock() | |
QMutexLocker lock(&mutex); | |
// El código del productor a partir de este punto no se | |
// ejecutará si el consumidor ha bloqueado el cerrojo | |
// primero. | |
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
void MyWindow::on_video_updated(const QRect& rect) | |
{ | |
finiteBuffer_->insertFrame(movie_->currentImage()); | |
} |
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 FiniteBuffer : public QObject | |
{ | |
Q_OBJECT | |
public: | |
FiniteBuffer(int size); | |
~FiniteBuffer(); | |
// Métodos de inserción y extracción para el productor y el | |
// consumidor, respectivamente. |
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 MyThread : public QThread | |
{ | |
Q_OBJECT | |
protected: | |
void run(); | |
}; | |
void MyThread::run() | |
{ |
NewerOlder