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
jQuery.noConflict(); | |
jQuery(document).ready(function() { | |
jQuery('#deleteLink').click(function() { | |
return jQueryConfirm('#deleteLink', '<fmt:message key="buttons.delete.confirm"/>', 'Delete', 'Cancel'); | |
}); | |
}); | |
function jQueryConfirm(id, message, confirmButton, cancelButton) { | |
var dialog = jQuery('<div></div>'); |
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
Turned this .... | |
private void BindViews() | |
{ | |
var associatedTable = new DataTable(); | |
associatedTable.Columns.Add(new DataColumn("TestID", typeof (Int32))); | |
if (_onlineCourse != null && _onlineCourse.OnlineCourseID > 0) | |
{ | |
foreach (OnlineCourseTest oct in OnlineCourseTest.GetAllByOnlineCourseID(_onlineCourse.OnlineCourseID)) | |
associatedTable.Rows.Add(new object[] {oct.TestID}); |
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
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | |
<modelVersion>4.0.0</modelVersion> | |
<groupId>com.example</groupId> | |
<artifactId>project-name</artifactId> | |
<version>1.0-SNAPSHOT</version> | |
<packaging>jar</packaging> | |
<properties> |
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
'This script was based almost entirely on http://blogs.technet.com/b/heyscriptingguy/archive/2008/04/14/how-can-i-import-a-fixed-width-data-file-into-microsoft-excel.aspx | |
Const xlFixedWidth = 2 | |
'http://msdn.microsoft.com/en-us/library/office/bb241018(v=office.12).aspx | |
Const xlDMYFormat = 4 ' DMY date format. | |
Const xlDYMFormat = 7 ' DYM date format. | |
Const xlEMDFormat = 10 ' EMD date format. | |
Const xlGeneralFormat = 1 ' General. | |
Const xlMDYFormat = 3 ' MDY date format. |
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
#http://upstart.ubuntu.com/cookbook/ | |
#http://www.bryanmarty.com/2012/02/setting-nofile-limit-upstart/ | |
description "Hadoop @HADOOP_DAEMON@" | |
author "Chad Gorshing <gorshing@gmail.com>" | |
start on runlevel [2345] | |
stop on runlevel [!2345] | |
env LOG_FILE="/var/log/hadoop/@HADOOP_DAEMON@.log" |
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 | |
set -e | |
if ! getent group ganglia >/dev/null; then | |
echo Adding group: ganglia. | |
groupadd --system ganglia | |
fi | |
if ! getent passwd ganglia >/dev/null; then | |
echo Adding system user: ganglia. |
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
<expression-component> | |
payload.Address1 = app.registry.encryption.decrypt(payload.Address1) | |
</expression-component> | |
<scripting:component> | |
<scripting:script engine="groovy" file="scripts/create-player-request-transformer.groovy"/> | |
</scripting:component> | |
<expression-component> | |
Runtime.getRuntime().exec("C:\\myfile.exe arg1 " + message.correlationId); |
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
grep -B5 "pattern" filename | awk -F '\n' 'ln ~ /^$/ { ln = "matched"; print $1 } $1 ~ /^--$/ { ln = "" }' |
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
package com.example; | |
import org.mule.api.MuleEventContext; | |
import org.mule.api.lifecycle.Callable; | |
/** | |
* From the docs | |
* "To enable the component to work directly with the message, | |
* you must implement the Callable interface" | |
* |
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
#Functions are first | |
#Go to the end for the 'main' of the script | |
$ErrorActionPreference = "Stop" | |
Set-PSDebug -strict | |
Set-StrictMode –Version latest | |
$source = "Mule Monitoring" | |
#New-EventLog -LogName Application -Source $source | |
#EntryType - Valid values are Error, Warning, Information, SuccessAudit, and FailureAudit. The default value is Information. |
OlderNewer