- Advanced Review Bottom Bar - 1136455830
- AwesomeTTS - Add speech to your flashcards - 1436550454
- Fill the blanks - Multiple type:cloze support - 1933645497
- Google Translate - 1536291224
- ImageResizer - 1214357311
- Review Heatmap - 1771074083
- Syntax Highlighting for Code - 1463041493
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
"use strict"; | |
process.stdin.resume(); | |
process.stdin.setEncoding('utf-8'); | |
let inputString = ''; | |
let currentLine = 0; | |
process.stdin.on('data', input => inputString += input); | |
process.stdin.on('end', () => { | |
inputString = inputString.trim().split('\n').map(string => string.trim()); |
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
/* | |
* Programa : Teste MPU6050 | |
* Alteracoes e adaptacoes : FILIPEFLOP | |
* Baseado no programa original de JohnChi | |
*/ | |
// Carrega a biblioteca Wire | |
#include<Wire.h> | |
// Endereco I2C do MPU6050 |
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
// DESCRIPTION: Verilator: Systemverilog example module | |
// with interface to switch buttons, LEDs, LCD and register display | |
parameter NINSTR_BITS = 32; | |
parameter NBITS_TOP = 8, NREGS_TOP = 32, NBITS_LCD = 64; | |
module top(input logic clk_2, | |
input logic [NBITS_TOP-1:0] SWI, | |
output logic [NBITS_TOP-1:0] LED, | |
output logic [NBITS_TOP-1:0] SEG, | |
output logic [NBITS_LCD-1:0] lcd_a, lcd_b, | |
output logic [NINSTR_BITS-1:0] lcd_instruction, |
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 java.util.HashMap; | |
import java.util.Map; | |
import java.util.Scanner; | |
/** | |
* Dado um array de inteiros contendo duplicatas, retornar o elemento majoritátio se ele existe. Um elemento majoritário | |
* aparece mais que n/2 vezes, onde n é o tamanho do array. Exemplo: | |
* | |
* Input: | |
* array = [2,8,7,2,2,5,2,3,1,2,2] |
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 java.util.HashMap; | |
import java.util.Map; | |
import java.util.Scanner; | |
/** | |
* Dado um array de inteiros nao ordenado, encontrar o par cuja soma é um dado valor (se for possível encontrar dois | |
* elementos do array cuja soma seja o valor). Exemplo: | |
* | |
* Input: | |
* array = 8,7,2,5,3,1 |