This file contains hidden or 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
package main | |
import ( | |
"crypto/aes" | |
"crypto/cipher" | |
"crypto/rand" | |
"encoding/base64" | |
"fmt" | |
"io" | |
"log" |
This file contains hidden or 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
#include <iostream> | |
#include <thread> | |
#include <functional> | |
#include <chrono> | |
// Made with <3 by @cambalamas ! | |
void asyncDoEach(float waitTime, const std::function<void()> &funcToRepeat) { | |
auto threadFunc = [](float waitTime, | |
const std::function<void()> &funcToRepeat) { |
This file contains hidden or 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
#include <stdio.h> // <--- printf() | |
#include <string> | |
#include <vector> | |
// using namespace std; // <--- Never ! | |
/* EMOJI CLASS */ | |
class emoji | |
{ | |
public: |
This file contains hidden or 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
2gua.rainbow-brackets | |
bbenoist.Doxygen | |
CADENAS.vscode-glsllint | |
christian-kohler.path-intellisense | |
cschlosser.doxdocgen | |
dbaeumer.vscode-eslint | |
Gimly81.matlab | |
James-Yu.latex-workshop | |
kevinehmry.heatscript | |
kriegalex.vscode-cudacpp |
This file contains hidden or 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
On Windows, | |
Install mingw-w64 from Mingw-builds | |
- Version: latest (at time of writing 6.3.0) | |
- Architecture: x86_64 | |
- Threads: win32 | |
- Exception: seh | |
- Build revision: 1 | |
- Destination Folder: Select a folder that your Windows user owns |
This file contains hidden or 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
# Lambda way... | |
L_Collatz = lambda n : [] if n == 1 else \ | |
[n / 2] + L_Collatz(n / 2) if n % 2 == 0 else \ | |
[3 * n + 1] + L_Collatz(3 * n + 1) | |
# Function way... | |
def F_Collatz(n): | |
if n == 1: | |
return [] | |
elif n % 2 == 0: |
This file contains hidden or 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 python3 | |
# -*- coding: utf-8 -*- | |
from collections import deque | |
if __name__ == '__main__': | |
''' Creamos las deques con las que trabajaremos. ''' | |
# DobleCola que queremos pasar como argumento. | |
a = deque() | |
# DobleCola que recibira 'a' como 'puntero'. |
This file contains hidden or 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
loadkeys es # Cambiamos el teclado a español. | |
efivar -l # Si esto devuelve algo, estamos corriendo bien sobre UEFI ;) | |
timedatectl set-ntp true # Habilita el cambio del horario de verano. | |
timedatectl set-timezone Europe/Madrid # Estable la hora de tu zona. | |
# Particiones a gusto del consumidor, via Ncurses. | |
cgdisk | |
# Damos formato a las particiones antes creadas, definiendo tambíen su LABEL. | |
mkswap -L AL_SWAP /dev/sdaW |
This file contains hidden or 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
--enable-dom-distiller --flag-switches-begin --enable-new-bookmark-apps --enable-canvas-2d-dynamic-rendering-mode-switching --enable-embedded-extension-options --enable-es3-apis --enable-fast-unload --enable-google-branded-context-menu --google-profile-info --enable-grouped-history --enable-nacl --new-profile-management --disable-password-generation --enable-site-settings --enable-tab-audio-muting --ignore-gpu-blacklist --enable-lcd-text --enable-overlay-scrollbar --save-page-as-mhtml --saveas-menu-label --secondary-ui-md --show-saved-copy=primary --enable-smooth-scrolling --enable-features=AutomaticTabDiscarding,ExpensiveBackgroundTimerThrottling,MaterialDesignExtensions,MaterialDesignHistory,MaterialDesignSettings,MaterialDesignUserMenu,PreferHtmlOverPlugins,ScrollAnchoring,WebRTC-H264WithOpenH264FFmpeg --disable-features=RunAllFlashInAllowMode,SafeSearchUrlReporting,enable-manual-password-generation,enable-password-force-saving --flag-switches-end |
This file contains hidden or 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
@echo off | |
SET st3_path=C:\Program Files\Sublime Text 3\sublime_text.exe | |
SET st3_label=Open with SublimeText3 ! | |
rem add it for all file types | |
@reg add "HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text 3" /t REG_SZ /v "" /d "%st3_label%" /f | |
@reg add "HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text 3" /t REG_EXPAND_SZ /v "Icon" /d "%st3_path%,0" /f | |
@reg add "HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text 3\command" /t REG_SZ /v "" /d "%st3_path% \"%%1\"" /f | |
rem add it for folders |