Skip to content

Instantly share code, notes, and snippets.

elemento(Tablero, Fila, Columna, Valor) :-
nth1(Fila, Tablero, ListaFila),
nth1(Columna, ListaFila, Valor).
%borrar_interseccion(+L,+L2,-R)
%Saca los elementos que estan en L2 de L y los pone en R
borrar_interseccion(L, [], L).
borrar_interseccion(L, [X|Tail], R):-
delete(L, X, S),
borrar_interseccion(S, Tail, R).
elemento(Tablero, Fila, Columna, Valor) :-
nth1(Fila, Tablero, ListaFila),
nth1(Columna, ListaFila, Valor).
%borrar_interseccion(+L,+L2,-R)
%Saca los elementos que estan en L2 de L y los pone en R
borrar_interseccion(L, [], L).
borrar_interseccion(L, [X|Tail], R):-
delete(L, X, S),
borrar_interseccion(S, Tail, R).
elemento(Tablero, Fila, Columna, Valor) :-
nth1(Fila, Tablero, ListaFila),
nth1(Columna, ListaFila, Valor).
%borrar_interseccion(+L,+L2,-R)
%Saca los elementos que estan en L2 de L y los pone en R
borrar_interseccion(L, [], L).
borrar_interseccion(L, [X|Tail], R):-
delete(L, X, S),
borrar_interseccion(S, Tail, R).
#!/bin/bash
for (( i = 500 ; i <= 540; i= i +10 ))
do
sleep 1
xte "mousemove 500 $i" "mousedown 1" "sleep 2" "mouseup 1"
xte "mousemove 500 440" "sleep 1" "mouseclick 1"
done
for (( j = 552 ; j <= 540; i= j +10 ))
do
PS C:\Users\Trufa\Documents\Visual Studio 2010\Projects\Viernes 7> git push origin master
Enter passphrase for key '/c/Users/Trufa/.ssh/id_rsa':
Counting objects: 63, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (37/37), done.
Writing objects: 100% (49/49), 28.15 KiB, done.
Total 49 (delta 28), reused 0 (delta 0)
To git@github.com:trufa/Viernes7.git
827d1ea..4235781 master -> master
PS C:\Users\Trufa\Documents\Visual Studio 2010\Projects\Viernes 7> git branch
PS C:\Users\Trufa\Documents\Visual Studio 2010\Projects\Viernes 7> git checkout cocina
error: Your local changes to the following files would be overwritten by checkout:
Cocina/bin/Debug/Cocina.exe
Cocina/bin/Debug/Cocina.pdb
Cocina/obj/x86/Debug/Cocina.exe
Cocina/obj/x86/Debug/Cocina.pdb
Viernes 7.suo
Please, commit your changes or stash them before you can switch branches.
Aborting
PS C:\Users\Trufa\Documents\Visual Studio 2010\Projects\Viernes 7> git checkout master
using System;
using System.Collections;
using System.Linq;
using System.Text;
namespace ObligatorioPOO
{
interface IFigurasGeometricas
{
void HallarArea();
using System;
using System.Collections;
using System.Linq;
using System.Text;
namespace ObligatorioPOO
{
interface IFigurasGeometricas
{
double HallarArea();
using System;
using System.Collections;
using System.Linq;
using System.Text;
namespace ObligatorioPOO
{
class Cuadrado : IFigurasGeometricas
{
// CUADRADO = RECTANGULO
// VERSION: 2.2 LAST UPDATE: 13.03.2012
/*
* Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php
*
* Made by Wilq32, wilq32@gmail.com, Wroclaw, Poland, 01.2009
* Website: http://code.google.com/p/jqueryrotate/
*/
// Documentation removed from script file (was kinda useless and outdated)