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 obj = {} | |
| obj.__index = obj | |
| obj.menuBarItem = nil | |
| function obj:start() | |
| self.menuBarItem = hs.menubar.new() | |
| self.menuBarItem:setClickCallback(self.clicked) | |
| self.setDisplay(hs.caffeinate.get("displayIdle")) |
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 <string.h> | |
| int main() { | |
| int i; | |
| for (i = 0; i < 108; i++) { | |
| printf("%d. %s\n", i, strerror(i)); | |
| } |
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 <iostream> | |
| #include <iomanip> | |
| #include <vector> | |
| #include <set> | |
| #define ARRAYSIZE(a) (sizeof(a))/(sizeof(a[0])) | |
| using namespace std; | |
| template <class T> |
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
| ''' | |
| TicTacToe Game | |
| Console based. | |
| MiniMax AI based on a scoring matrix of the game tree | |
| Python 2.7.9 - 32 bit | |
| @author Andre Cruz | |
| ''' |
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
| // Future versions of Hyper may add additional config options, | |
| // which will not automatically be merged into this file. | |
| // See https://hyper.is#cfg for all currently supported options. | |
| module.exports = { | |
| config: { | |
| // Choose either "stable" for receiving highly polished, | |
| // or "canary" for less polished but more frequent updates | |
| updateChannel: 'stable', |
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
| :- use_module(library(lists)). | |
| :- dynamic film/4. | |
| % Factos | |
| film('A', [action, adventure, fantasy], 115, 7.6). | |
| film('B', [biography, drama, romance], 131, 8.7). | |
| film('C', [action, adventure, crime], 121, 6.4). | |
| film('D', [drama, mystery, scifi], 116, 8.5). | |
| film('E', [action, crime, drama], 127, 7.6). | |
| film('F', [drama, mystery, thriller], 112, 6.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
| :- use_module(library(lists)). | |
| %% Teste Modelo 17/18 | |
| %participant(Id,Age,Performance) | |
| participant(1234, 17, 'Pé coxinho'). | |
| participant(3423, 21, 'Programar com os pés'). | |
| participant(3788, 20, 'Sing a Bit'). | |
| participant(4865, 22, 'Pontes de esparguete'). | |
| participant(8937, 19, 'Pontes de pen-drives'). |
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
| :- use_module(library(lists)). | |
| :- use_module(library(sets)). | |
| :- dynamic film/4. | |
| :- dynamic user/3. | |
| :- dynamic vote/2. | |
| %film/Title,Categories,Duration,AvgClassification). | |
| film('Doctor Strange',[action,adventure,fantasy],115,7.6). |
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
| % PLOG Exame Normal 2013/2014 | |
| :- use_module(library(lists)). | |
| :- use_module(library(sets)). | |
| % EXERCICIO 2 | |
| stat(ana, evelyn, 150, 200). | |
| stat(ana, thresh, 200, 200). |
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
| %% Mini-Teste 2 2017 (16-17) | |
| :- use_module(library(lists)). | |
| :- use_module(library(clpfd)). | |
| %% P3 | |
| p2(L1,L2) :- | |
| length(L1,N), | |
| length(L2,N), | |
| % |
OlderNewer