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 | |
| function forum_block($op = 'list', $delta = 0, $edit = array()) { | |
| switch ($op) { | |
| case 'list': | |
| $blocks[0]['info'] = t('Active forum topics'); | |
| $blocks[1]['info'] = t('New forum topics'); | |
| return $blocks; | |
| case 'configure': |
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
| HELLO WORLD |
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
| backend default { | |
| .host = "127.0.0.1"; | |
| .port = "8080"; | |
| // No more than 30% of requests should take more than 20s. | |
| .probe = { | |
| .url = "/"; | |
| .timeout = 30s; | |
| .window = 10; | |
| .threshold = 3; |
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
| pushd "..\..\..\" | |
| set INSTALL_DIR=%CD% | |
| set INSTALL_DIR=%INSTALL_DIR:\=/% | |
| popd | |
| CALL replace.bat "@FOLDER_NAME_SLASH" "%INSTALL_DIR%" "..\..\..\Apache\conf\httpd.conf" > "..\..\..\Apache\conf\httpd.conf.tmp" | |
| DEL "..\..\..\Apache\conf\httpd.conf" /F /Q | |
| REN "..\..\..\Apache\conf\httpd.conf.tmp" "httpd.conf" |
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
| // Initialization | |
| var app = new Application({ | |
| container: "div#container", | |
| database: "database.sqlite" | |
| }); | |
| // Events | |
| app.bind("startup", function(e) {}); | |
| app.bind("shutdown", function(e) {}); |
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
| /* | |
| * MoveB jQuery Plugin v0.0.1 | |
| * | |
| * Copyright (c) 2010 Chad Hutchins | |
| * Licensed under the MIT license. | |
| * | |
| */ | |
| (function($) { |
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
| function packVXxx(n:int):String { | |
| var binaryString:String = new String; | |
| binaryString += String.fromCharCode(n & 0x000000ff); | |
| binaryString += String.fromCharCode((n >> 8) & 0x000000ff); | |
| binaryString .= String.fromCharCode((n >> 16) & 0x000000ff); | |
| return binaryString += String.fromCharCode(0) + String.fromCharCode(0); | |
| } |
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 | |
| for ($x = 0; $x < strlen($string); $x += 2) | |
| { | |
| print(hexdec($string[$x] . $string[$x + 1]) . " "); | |
| $binary_string .= chr(hexdec($string[$x] . $string[$x + 1])); | |
| } |
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
| <rss version="2.0" xmlns:media="http://search.yahoo.com/mrss/"> | |
| <channel> | |
| <title>Picture's of your amazing son!!!</title> | |
| <link>http://pifantastic.com</link> | |
| <description>Basically pictures of Aaron doing amazing shit.</description> | |
| <item> | |
| <title>Title</title> | |
| <link>Link</link> | |
| <media:content url="http://path.to.my/photo.jpg" /> | |
| </item> |
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
| """ | |
| AIR builder v%(VERSION)s | |
| Synopsis: build.py [options] | |
| -b Build the final .air file (will prompt for password) | |
| -d Launch the application in the debugger | |
| -s Create a new Self-Signed security certificate | |
| -h This help message | |
| """ |