This file contains 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 nextSlide() { | |
myEditor.saveHTML(); | |
window.setTimeout(function() { | |
var current = YAHOO.util.Dom.get('currentslide').value; | |
YAHOO.util.Dom.get(current).value = myEditor.get('textarea').value; | |
myEditor.setEditorHTML(YAHOO.util.Dom.get('nextslideid').value); | |
YAHOO.util.Dom.get('currentslide').value = 'nextslideid'; | |
}, 200); // So that saveHTML has had time to run | |
} |
This file contains 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
DTS.control = { | |
... | |
init: function() { | |
if (placeEditor) { DTS.control.defaultEditor(placeEditor) }; | |
if (loadBlocks) { DTS.control.refreshBlocks() }; | |
}, | |
defaultEditor: function(el) { |
This file contains 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 getFile() { | |
var postData = "foo=bar&this=that"; | |
var request = YAHOO.util.Connect.asyncRequest('POST', 'script.php', getFileCallback, postData); | |
} | |
getFileCallback = { | |
success: function(o) { | |
panel.setBody(o.responseText); | |
}, | |
failure: function(o) { |
This file contains 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
<rule name="www.example.com" stopProcessing="true"> | |
<match url=".*" /> | |
<conditions logicalGrouping="MatchAll"> | |
<add input="{HTTP_HOST}" pattern="^www.example.com" /> | |
<add input="{REQUEST_FILENAME}" matchType="IsFile" /> | |
</conditions> | |
<action type="Rewrite" url="/site-files/example_com/{R:0}" /> | |
</rule> | |
<rule name="Image Cache" stopProcessing="true"> | |
<match url="^assets/cache/([0-9]+)/([0-9]+)/(.+)" /> |
This file contains 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
SELECT UnitName, ( | |
SUM( HostNationKIA ) + SUM( EnemyKIA ) + Sum( CivilianKIA ) | |
) AS Kills | |
FROM war_diary | |
GROUP BY UnitName | |
ORDER BY Kills DESC |
This file contains 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 preventBack(){ | |
try{ | |
history.forward(); | |
setTimeout('preventBack()', 500); | |
}catch(e){} | |
} | |
preventBack(); |
This file contains 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 createDialog(strName, intWidth, strHeader, strTemplate, funcOnLoad, objButtons) { | |
var dialog = $('<div id="' + strName + '"><div style="text-align: center"><img src="/assets/images/ajax-loader.gif" /></div></div>').dialog({ | |
modal: true, | |
open: function () { | |
if (typeof (strTemplate) != "undefined") $(this).load(strTemplate, funcOnLoad); | |
}, | |
close: function (event, ui) { | |
$(this).remove(); | |
}, | |
width: intWidth, |
This file contains 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
$.ajaxSetup({ | |
url: '/api/', | |
type: 'POST', | |
dataType: 'json' | |
}); | |
//------ e.g. 1, just need to specify data | |
$.ajax({ | |
data: 'serverid=' + YAMS.admin.selectedServer + '&action=save-server-settings&' + $('#settings-form').serialize() |
This file contains 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
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js"></script> | |
<script src="jquery.cookie.js"></script> | |
<div id="other-yams"> | |
<div id="oy-close">X</div> | |
<h3>Got the right YAMS?</h3> | |
<div id="oy-text">This is the site for YAMS, a tool to make running your own Minecraft server as easy as possible.<br /> | |
Looking to play on the family friendly public Minecraft server "<a href="http://www.darrenstraight.com/minecraft.php" target="_blank">Yet Another Minecraft Server</a>"?</div> | |
</div> | |
<script type="text/javascript"> | |
$(document).ready(function() { |
This file contains 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
#!/bin/sh | |
REQUESTS=10000 | |
COUNT=250 | |
BEES=4 | |
KEYNAME=<whateveryourkey.pem is> | |
GROUP=public | |
while getopts "h:r:c:b:" opt; do | |
case $opt in |
OlderNewer