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> | |
void troca(int *x, int *y); | |
int main(void) { | |
int x, y; | |
x = 10; | |
y = 20; |
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
<!DOCTYPE html> | |
<html ng-app="app"> | |
<head> | |
<meta charset="utf-8"> | |
<title>Olar</title> | |
</head> | |
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.3.15/angular.js"></script> | |
<script> | |
var app = angular.module(['app'], []); |
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 struct head { | |
int * first; | |
int * last; | |
int count; | |
} head_t; | |
typedef struct node { | |
struct node *prev; |
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 struct node { | |
struct node * prev; | |
struct node * next; | |
int val; | |
} node_t; | |
typedef struct head { | |
node_t *first; |
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 struct node { | |
int val; | |
struct node *next; | |
} node_t; | |
typedef struct head { | |
node_t *first; | |
node_t *last; |
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 sys | |
def toNum(data): | |
result = [] | |
for n in data.split(): | |
result.append(int(n)) | |
return result | |
def goals(data): | |
result = toNum(data[:7]) |
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
# Funcoes | |
def appendWord(line, vector): | |
l = line.split() | |
for i in l: | |
vector.append(i) | |
def subWord(word): | |
w = "" | |
for c in range(len(word)): | |
w += "#" |
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> | |
// Estruturas | |
typedef struct caixa { | |
int dado; | |
struct caixa *proximaCaixaPonteiro; | |
} Caixa; | |
typedef Caixa *PonteiroParaInicio; |
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> | |
typedef struct node { | |
int data; | |
struct node *next; | |
} Node; | |
void initialize(Node **list); |
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
# -*- coding: utf-8 -*- | |
import mechanize | |
import cookielib | |
from lxml import html | |
from lxml import etree | |
HEADERS = [('Accept-Language', 'en-us,en;q=0.5'), | |
('Accept-Encoding', 'deflate'), | |
('Keep-Alive', '115'), | |
('Connection', 'keep-alive'), |