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": "0.2.0", | |
"configurations": [ | |
{ | |
"type": "node", | |
"request": "launch", | |
"name": "Debug Nest Framework", | |
"args": [ | |
"${workspaceFolder}/src/main.ts" | |
], |
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
// https://www.codewars.com/kata/56f935002e6c0d55fa000d92/train/javascript | |
class Shark extends Animal { | |
constructor(name, age, status) { | |
super(name, age, 0, "shark", status); | |
} | |
} | |
class Cat extends Animal { | |
constructor(name, age, status) { | |
super(name, age, 4, "cat", status); |
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 cakes(recipe, available) { | |
const recipeItems = Object.keys(recipe); | |
const storage = Object.keys(available); | |
let total = [] | |
const hasAllItems = recipeItems.some(function(item){ | |
return storage.indexOf(item) >= 0; | |
}) | |
console.log(hasAllItems); |
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
import Reactotron, { asyncStorage, networking, openInEditor } from 'reactotron-react-native'; | |
import { reactotronRedux } from 'reactotron-redux'; | |
const reactotron = Reactotron.configure({ | |
name: 'App', | |
host: 'localhost', | |
}) | |
.use(asyncStorage({})) | |
.use(openInEditor()) | |
.use(reactotronRedux()) |
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 <string> | |
#include <iostream> | |
#include <map> | |
#include <vector> | |
using namespace std; | |
extern "C" int yylex(); |
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
/* Disciplina: Computacao Concorrente */ | |
/* Prof.: Silvana Rossetto */ | |
/* Laboratório: 11 */ | |
/* Codigo: Produtor/consumidor em Java */ | |
/* -------------------------------------------------------------------*/ | |
import java.util.*; | |
// Monitor | |
class Buffer { | |
static final int N = 10; //tamanho do buffer |
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
all: leitorescritor | |
./leitorescritor | |
barrier: | |
gcc barreira.c -o barreira -lpthread -Wall -lm | |
leitorescritor: | |
gcc leitorescritor.c -o leitorescritor -lpthread -Wall -lm |
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
/* Coloque aqui definições regulares */ | |
D [0-9] | |
L [A-Za-z_] | |
INI_COMMENT "/*" | |
END_COMMENT "/*" | |
/* Identificador, ex: a b _1 ab1 $tab _$5 */ | |
ID ({L}|[$])([$]|{L}|{D})* |
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 <stdlib.h> | |
#include <stdio.h> | |
#include <pthread.h> | |
#include <math.h> | |
#define _USE_MATH_DEFINES | |
int nthreads; | |
long double calculatePiSequencial(long long int quantidade_elementos); |
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
{"lastUpload":"2019-01-31T03:14:50.070Z","extensionVersion":"v3.2.4"} |
NewerOlder