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
| local M = {} | |
| M.get_class_name = function() | |
| return vim.fn.expand('%:t:r') | |
| end | |
| function M.get_node_text(node, bufnr) | |
| bufnr = bufnr or vim.api.nvim_get_current_buf() | |
| local start_row, start_col, _, end_col = node:range() | |
| local line = vim.api.nvim_buf_get_lines(bufnr, start_row, start_row + 1, false)[1] |
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
| --- | |
| version: '2' | |
| services: | |
| zookeeper: | |
| image: confluentinc/cp-zookeeper:latest | |
| networks: | |
| - net | |
| ports: | |
| - 2181:2181 | |
| environment: |
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
| function AgruparPorPropriedade(arr, propName) { | |
| var group = []; | |
| arr.forEach(item => { | |
| if (!group[item[propName]]) | |
| group[item[propName]] = arr.filter(i => i[propName] === item[propName]); | |
| }); | |
| return group; | |
| } |
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
| using System; | |
| using System.Collections.Generic; | |
| using System.Text; | |
| namespace TestingConsole | |
| { | |
| public class Node | |
| { | |
| private int Level { get; set; } | |
| private List<Node> Children { get; set; } |
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> | |
| typedef int (*FuncPtr)(int); | |
| unsigned char codigo[] = { | |
| 0x55, | |
| 0x48, 0x89, 0xe5, | |
| 0x48, 0x83, 0xec, 0x10, | |
| 0x89, 0x7d, 0xfc, | |
| 0x8b, 0x45, 0xfc, |
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> | |
| #include <math.h> | |
| void mult2(int a[], double b[], int n); | |
| void mult3(int a[], double b[], int n) { | |
| int *pint; | |
| double *pdouble; | |
| for (pint = a, pdouble = b; n-- ; pint++, pdouble++) { | |
| *pdouble = (double)*pint * 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
| .text | |
| .global calc3 | |
| calc3: | |
| pushq %rbp | |
| movq %rsp, %rbp | |
| subq $16, %rsp | |
| cvtss2sd %xmm0, %xmm0 | |
| cvtss2sd %xmm1, %xmm1 |
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
| drop database locadora; | |
| create database locadora; | |
| use locadora | |
| create table locadora( | |
| cgc int not null, | |
| nome varchar(30) not null | |
| ); | |
| create table cliente( |
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> | |
| #include <stdlib.h> | |
| #define makefloat(s,e,f) ((s & 1)<<31 | (((e) & 0xff) << 23) | ((f) & 0x7fffff)) | |
| #define getsig(x) ((x)>>31 & 1) | |
| #define getexp(x) ((x)>>23 & 0xff) | |
| #define getfrac(x) ((x) & 0x7fffff) | |
| typedef union { | |
| float f; |
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
| .data | |
| CARNE: .word 1 | |
| LEITE: .word 2 | |
| OVO: .word 3 | |
| LEN: .int 3 | |
| .align 8 | |
| Produto: | |
| /*produtos[0]*/ | |
| .word 0 /* +0 short produto*/ |
NewerOlder