Skip to content

Instantly share code, notes, and snippets.

(() => {
const cTimesToRun = 5;
const cListOfWords = ["airplane", "boat", "car"];
for(let iRun=0; iRun < cTimesToRun; iRun++)
{
for(let iWord=0; iWord < cListOfWords.length; iWord++)
{
let url = `https://www.google.pt/search?q=${cListOfWords[iWord]}&start=${10 * iRun}`;
@gerardolima
gerardolima / sdk_resolvido.pl
Created April 26, 2017 14:40
sudoku solver in prolog
%% -----------------------------------------------------------------------------
%% PROLOG program to solve SUDOKU puzzles
%% gerardo.lima<AT>gmail.com 2007-07-02
%%
%% usage:
%% edit the initial state predicate 'numlist_init' and run the following
%% ?- numlist_init(L), sudoku_solve(L).
%%
%% see also this good site:
%% http://www.csupomona.edu/~jrfisher/www/prolog_tutorial/pt_framer.html
/// ======================================================================
/// This gist is intended to be copy-and-pasted to the codebehind cs file
/// for a aspx page; please check the InitializeComponent before proceed.
/// ======================================================================
/// <summary>
/// The target page most likelly will have other event handlers, do not overwrite
/// them, just add the correct event hendler to the PreRender event.
/// </summary>
private void InitializeComponent() {