as main.s -o main.o
ld main.o -o main
./main
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
Dir { | |
ArchiveDir "./debian"; | |
CacheDir "./cache"; | |
}; | |
Default { | |
Packages::Compress ". gzip bzip2"; | |
Sources::Compress ". gzip bzip2"; | |
Contents::Compress ". gzip bzip2"; | |
}; | |
TreeDefault { |
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
:- use_module(library(pio)). | |
:- use_module(library(dcgs)). | |
:- use_module(library(charsio)). | |
:- use_module(library(reif)). | |
:- use_module(library(dif)). | |
:- use_module(library(lists)). | |
lines([]) --> []. | |
lines([X|Xs]) --> | |
line(X), |
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
:- use_module(library(format)). | |
:- use_module(library(lists)). | |
:- use_module(library(pio)). | |
:- initialization(run). | |
run :- | |
phrase_from_file(state(was_space, 1, 0, 0, Lines, Words, Chars), "quijote.txt"), | |
format("~d ~d ~d~n", [Lines, Words, Chars]), | |
halt. |
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
:- use_module(library(clpz)). | |
:- use_module(library(lists)). | |
:- use_module(library(format)). | |
cols(6). | |
rows(6). | |
board([ | |
c,c,2,c,3,c, | |
2,c,c,c,c,c, | |
c,c,2,4,c,3, |
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
default: | |
gcc -o fib fib.s -static | |
clean: | |
rm -rf fib |
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
.data | |
fibs: .quad 0,0,0,0,0,0,0,0,0,0,0,0 | |
size: .quad 12 | |
printf_str: .asciz "%d\n" | |
head: .ascii "The Fibonacci numbers are:\n" | |
head_len = . - head | |
.text | |
.global main | |
main: |
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
:- use_module(library(lists)). | |
:- use_module(library(random)). | |
:- use_module(library(tabling)). | |
:- table move/2. | |
run(N) :- | |
generate_random(N, State), | |
solve(State, History), | |
maplist(display_state, History). |
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
import wx | |
from enum import Enum | |
import random | |
from collections import deque | |
import xml.etree.ElementTree as ET | |
GRID_SIZE = 20 | |
WIDTH = 650 | |
HEIGHT = 690 | |
TABLE_SIZE = 30 |
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
% Runs on Scryer Prolog | |
% | |
% scryer-prolog morse.pl | |
% | |
% ?- solve("TEXT or MORSE", Output). | |
% | |
:- use_module(library(dcgs)). | |
:- use_module(library(lists)). | |
:- use_module(library(reif)). |
NewerOlder