Skip to content

Instantly share code, notes, and snippets.

<link rel="import" href="../core-animated-pages/core-animated-pages.html">
<link rel="import" href="../core-animated-pages/transitions/hero-transition.html">
<link rel="import" href="../core-animated-pages/transitions/cross-fade.html">
<link rel="import" href="../core-animated-pages/transitions/slide-down.html">
<link rel="import" href="../core-animated-pages/transitions/slide-up.html">
<link rel="import" href="../core-animated-pages/transitions/tile-cascade.html">
<link rel="import" href="../paper-button/paper-button.html">
<polymer-element name="my-element">
@microhobby
microhobby / main.cpp
Created March 14, 2018 19:34
Solution with 0(n), but with a while to clear the trash
#include <iostream>
using namespace std;
void writeOnConsole(int * array, int arraySize) {
for (int i = 0; i < arraySize;i++)
cout << array[i] << ", ";
cout << array[arraySize] << endl;
}
int main() {
/*
Elaborar um programa que leia dois valores inteiros (A e B). Em seguida fac¸a uma func¸ao˜
que retorne a soma do dobro dos dois numeros lidos. A func¸ ´ ao dever ˜ a armazenar o dobro ´
de A na propria vari ´ avel A e o dobro de B na pr ´ opria vari ´ avel B.
*/
#include<stdio.h>
#include<stdlib.h>
/*
Elaborar um programa que leia dois valores inteiros (A e B). Em seguida fac¸a uma func¸ao˜
que retorne a soma do dobro dos dois numeros lidos. A func¸ ´ ao dever ˜ a armazenar o dobro ´
de A na propria vari ´ avel A e o dobro de B na pr ´ opria vari ´ avel B.
*/
#include<stdio.h>
#include<stdlib.h>
//
// Copyright (C) 2019 MicroHobby
//
// This program is free software: you can redistribute it and/or modify
// it under the +terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
@microhobby
microhobby / install.sh
Created September 20, 2019 22:09
Debian dependencies to compile Kernel Linux to WSL 2
sudo apt install git bc build-essential flex bison libssl-dev libelf-dev
@microhobby
microhobby / clone.sh
Last active September 20, 2019 22:36
Cloning the WSL2-Linux-Kernel merged with 4.19.74
cd ~
git clone https://github.com/microhobby/linus-tree.git
cd linus-tree
git checkout wsl_4.19.74
#
# General setup
#
CONFIG_INIT_ENV_ARG_LIMIT=32
# CONFIG_COMPILE_TEST is not set
CONFIG_LOCALVERSION="-microsoft-standard"
# CONFIG_LOCALVERSION_AUTO is not set
#
# General setup
#
CONFIG_INIT_ENV_ARG_LIMIT=32
# CONFIG_COMPILE_TEST is not set
CONFIG_LOCALVERSION="-MicroHobby"
# CONFIG_LOCALVERSION_AUTO is not set
make KCONFIG_CONFIG=Microsoft/config-wsl -j8