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
#include<stdio.h> | |
#include <stdlib.h> | |
#include <unistd.h> | |
#include <signal.h> | |
#define EVER ;; | |
#define CPUTIME 50 //Mileseconds | |
#define ON 1 | |
#define OFF 0 | |
#define DEBUGMSGS OFF | |
static void filhoHandler (int sinal); |
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
/*********************************************************************** | |
* | |
* $FC Função: GRA &DFS | |
* | |
* $ED Descrição da função | |
* Esta função retorna o um vetor de ids de nós de grafo | |
* que são o todos os que são posíveis se chegar pelo no recebido. | |
* $EP Parâmetros | |
* grafo - ponteiro para a cabeça do grafo a ser impresso | |
* noId - inteiro para o Id do nó que virará corrente |
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
static void visit(GRA_noGrafo noCorr,int* visited,int tam,int* ordened); | |
/*************************************************************************** | |
* | |
* Função: GRA &DFS | |
* ****/ | |
GRA_tpCondRet GRA_DFS(GRA_tppGrafo grafo, int** refPtrIds, int * tam,int noId) | |
{ | |
/* vá em cada vértice e imprima suas componentes conexas */ | |
GRA_noGrafo p; //percorredor |
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
GRA_tpCondRet GRA_ExisteCaminho(GRA_tppGrafo grafo, int noInicioId, int noFimId) | |
{ | |
int* ptrIds; | |
int tam; | |
int i; | |
GRA_tpCondRet ret; | |
ret=GRA_DFS(grafo,&ptrIds,&tam,noInicioId); | |
if(ret!=GRA_CondRetOK) | |
return ret; | |
for(i=0;i<tam;i++) |
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
"-[FunctionPlotter plotFunctionWithPoints:numberOfPoints:withScale:colored:]": ## @"\01-[FunctionPlotter plotFunctionWithPoints:numberOfPoints:withScale:colored:]" | |
Lfunc_begin0: | |
.loc 20 13 0 ## /Users/lmenezes/Documents/PUC/VisualizeSpline/VisualizeSpline/FunctionPlotter.m:13:0 | |
.cfi_startproc | |
## BB#0: | |
pushq %rbp | |
Ltmp0: | |
.cfi_def_cfa_offset 16 | |
Ltmp1: | |
.cfi_offset %rbp, -16 |
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
--------------------------------------------- -- 001 | |
-- Funcional language with maybe computing -- 002 | |
--------------------------------------------- -- 003 | |
-- 004 | |
-- 005 | |
-- variables are just names -- 006 | |
type Var = String -- 007 | |
-- 008 | |
-- values are integers and functions -- 009 | |
data Value = ValInt Int -- 010 |
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
#/*[/**/include <stdio.h> | |
#define print(_) int main() { if (sizeof('a') > 1) { printf("Hello from C\n"); } else { printf("Hello from C++\n"); } } | |
#define X */[allow()] macro_rules! p { ($($t:tt)*) => (fn main() { println!("Hello from Rust") }) } p! { | |
""":" | |
false || "exec" "echo" "Hello from sh" | |
" """ | |
print((0 and "Hello from Ruby\n" or "Hello from Python")) | |
#define Y }/* | |
#define A ]-[------->+<]>-.-[->+++++<]>++.+++++++..+++.[--->+<]>-----.++[->+++<]>.++++++++++++.---.--.[->+++++<]>-.[->+++<]>++.[--->+<]>----.+++[->+++<]>++.++++++++.+++++.--------.-[--->+<]>--.+[->+++<]>+.++++++++.+[++>---<]>-.*/ |
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
/* BF INTERPRETER IN MONGA | |
Copyright 25/10/16 | |
Modified 17/12/16 | |
Lucas Menezes */ | |
int sleep(int t); | |
int exit(int number); | |
char getchar(); | |
void putchar(int c); |
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
let url = URL(string: "https//api.meusite.org") | |
do { | |
let data = try Data(contentsOf: url!) | |
let json = try JSONSerialization.jsonObject(with: data, options:.allowFragments) | |
let array = json as! [String: Any] | |
for (key,data) in array { | |
let dict = data as! [String : Any] | |
//print(key) | |
//print(data) | |
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
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> | |
<++ 2 as short | |
<<<<<<<<<<<<<<<<>+<[>-]>[->+>[<-]<[<]>[-<+>]]<-[+<>+<[>-]>[->>-<]<<->+<[>-]>[->+>[<-]<[<]>[-<+>]]<-]<>>>>>>>>>>>>>>>>>+<[>-]>[->+>[<-]<[<]>[-<+>]]<-[+<<<<<<<<<<<<<<<<<>+<+[>-]>[->>+<]<<>>>>>>>>>>>>>>>>>+<[>-]>[->>-<]<<->+<[>-]>[->+>[<-]<[<]>[-<+>]]<-]<Assign | |
>>>>>>>>++++++++++ 10 as short | |
Change both shorts if you wanna pow different numbers; Do not change the assign line; Do not | |
change any other part of the program; |
OlderNewer