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
| my @product = qw( | |
| WSDOMREGUS | |
| WSDOMREGTO | |
| WSDOMREGORGNZ | |
| WSDOMREGORGAU | |
| WSDOMREGORG | |
| WSDOMREGNETNZ | |
| WSDOMREGNET | |
| WSDOMREGMOBI | |
| WSDOMREGINFO |
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
| myflat([],[]). | |
| myflat([H|T], AllFlat) :- is_list(H), myflat(H, HFlat), myflat(T, TFlat), append(HFlat, TFlat, AllFlat). | |
| myflat([H|T], [H|TFlat]) :- myflat(T,TFlat). |
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
| compress([],[]). | |
| compress([X],[X]). | |
| compress([X,X|T], Result) :- compress([X|T], Result). | |
| compress([X,Y|T], [X|Rest]) :- compress([Y|T], Rest). |
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
| wget http://www.renesys.com/challenge_site/static/data/no_zealand.txt.bz2 | |
| bzip2 -d no_zealand.txt.bz2 | |
| # http://www.renesys.com/challenge_site | |
| CREATE TABLE IF NOT EXISTS ipnos ( | |
| ip varchar(40) default NULL, | |
| source varchar(40) NOT NULL, | |
| country varchar(4) default NULL, | |
| region varchar(40) default NULL, |
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
| { | |
| my $acct_code = $self->get_domreg_account_code; | |
| $acct_code =~ s/REG/NEW/; # ENH27417 | |
| # Populate billing structure | |
| my $product = | |
| { | |
| virtkey => $self->get_name, | |
| length => $args->{length}, | |
| acct_code => $acct_code |
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
| #!/usr/bin/perl | |
| # appease songbird | |
| use strict; | |
| use warnings; | |
| while (my $filename = <STDIN>) { | |
| chomp $filename; |
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
| % | |
| % GCHORDS, a LaTeX2e package to draw guitar chord diagrams. | |
| % | |
| % $Id: gchords.sty,v 1.20 2009/02/04 20:25:59 peekas Exp $ | |
| % | |
| % Copyright (C) 2001-2009 Kasper Peeters <[email protected]> | |
| % Available under the GNU General Public License. | |
| % | |
| % - minor additions by D. R. Lovell, 05-nov-1998 | |
| % - bug fixes by Yotam Medini <[email protected]>, 11-aug-2001 |
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
| % http://sites.google.com/site/prologsite/prolog-problems/1 | |
| % working on 1.08 | |
| compress([], []). | |
| compress([X,Y], [X,Y]) :- X /= Y. | |
| compress([X,Y], [X]) :- X = Y. | |
| % problems writing other clauses |
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
| % http://sites.google.com/site/prologsite/prolog-problems/1 | |
| % working on 1.08 | |
| compress([], []). | |
| compress([X,Y], [X,Y]) :- X /= Y. | |
| compress([X,Y], [X]) :- X = Y. | |
| % problems writing other clauses |