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
| // Set to autorun on sourceforge\.net\/.*/trac/.*/changeset/ | |
| (function ($) { | |
| var mods = $("#file-legend .mod + dd"); | |
| if (mods.length == 0) return; | |
| var modsLen = parseInt(mods[0].textContent); | |
| if (!modsLen) return; | |
| // Cache diff dimensions. | |
| var tops = new Array(modsLen); |
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
| [tung@tung-901 ~/Install/nethack4-4.2.0/build/aimake]$ ../../aimake ../../ | |
| Use of "goto" to jump into a construct is deprecated at ../../aimake line 1057. | |
| Use of "goto" to jump into a construct is deprecated at ../../aimake line 1057. | |
| Use of "goto" to jump into a construct is deprecated at ../../aimake line 1057. | |
| Use of "goto" to jump into a construct is deprecated at ../../aimake line 1057. | |
| Use of "goto" to jump into a construct is deprecated at ../../aimake line 1057. | |
| Use of "goto" to jump into a construct is deprecated at ../../aimake line 1057. | |
| Use of "goto" to jump into a construct is deprecated at ../../aimake line 1057. | |
| Use of "goto" to jump into a construct is deprecated at ../../aimake line 1057. | |
| Use of "goto" to jump into a construct is deprecated at ../../aimake line 1057. |
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/env python | |
| # Print phoenix download URL if not already downloaded. | |
| import urllib2 | |
| from BeautifulSoup import BeautifulSoup | |
| import re | |
| import glob | |
| protocol = 'http' |
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
| /* Hide the homepage's sidebar. */ | |
| .guide-container { display: none !important; } | |
| .guide-background { display: none !important; } | |
| /* Hide recommended/promoted videos on the right. */ | |
| #video-sidebar { display: none !important; } | |
| /* Widen the subscription feed for our newly-freed space. */ | |
| #feed { | |
| margin-left: 0 !important; |
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
| <?php | |
| /** | |
| * Abstraction-breaking custom tag lister. | |
| * This block lists all tags under the given taxonomy vocabulary, | |
| * in order of frequency, and then name. The tags are hyperlinked. | |
| */ | |
| $vocabulary_id = 8; | |
| $cutoff = 15; // don't show results that don't pass the threshold | |
| $threshold = 5; // after cutoff, don't show tags with counts less than this | |
| $tag_query = "SELECT td.tid, td.name, COUNT(DISTINCT tn.nid) as num " . |
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
| // Ban a spambot | |
| $('th:contains("Reason:") + td > input').val("Spambot"); | |
| $('#main_ip_check').attr('checked', true); | |
| $('#email_check').attr('checked', true); | |
| $('#user_check').attr('checked', true); | |
| $(':submit[name="add_ban"]').css('fontSize', '30pt'); |
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
| diff -r -u nethack-3.4.3/src/allmain.c defername/src/allmain.c | |
| --- nethack-3.4.3/src/allmain.c 2003-12-07 18:39:14.000000000 +0000 | |
| +++ defername/src/allmain.c 2003-12-14 18:58:28.000000000 +0000 | |
| @@ -450,6 +450,9 @@ | |
| void | |
| display_gamewindows() | |
| { | |
| + if(WIN_MESSAGE != WIN_ERR) | |
| + return; | |
| + |
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
| diff -U 3 -r nethack-3.4.3-pre-defername/sys/unix/unixmain.c nethack-3.4.3/sys/unix/unixmain.c | |
| --- nethack-3.4.3-pre-defername/sys/unix/unixmain.c 2011-04-09 15:33:59.000000000 +1000 | |
| +++ nethack-3.4.3/sys/unix/unixmain.c 2011-04-11 00:39:42.000000000 +1000 | |
| @@ -160,6 +160,12 @@ | |
| #endif | |
| /* | |
| + * Set DECgraphics again in case option loading didn't set it. | |
| + */ | |
| + if(iflags.DECgraphics) |
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
| diff -r -U 3 -x '*.o' -x nethack -x nhdat -x date.h vanilla/include/extern.h nethack-3.4.3/include/extern.h | |
| --- vanilla/include/extern.h 2011-04-09 00:08:56.000000000 +1000 | |
| +++ nethack-3.4.3/include/extern.h 2011-04-12 03:28:47.000000000 +1000 | |
| @@ -638,6 +638,7 @@ | |
| E int NDECL(open_savefile); | |
| E int NDECL(delete_savefile); | |
| E int NDECL(restore_saved_game); | |
| +E int NDECL(saved_game_exists); | |
| E void FDECL(compress, (const char *)); | |
| E void FDECL(uncompress, (const char *)); |
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
| # Sample usage of Ruby recursive shadowcasting implementation: | |
| # http://roguebasin.roguelikedevelopment.org/index.php?title=Ruby_shadowcasting_implementation | |
| require "ShadowcastingFieldOfView" | |
| class Map | |
| def initialize(map) | |
| @map = map | |
| @view = Array.new(map.length) | |
| @view.length.times do |y| |