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/bash | |
# chkconfig: 2345 50 70 | |
SUCCESS=0 | |
FAILURE=1 | |
# | |
if [ $# -lt 2 ] | |
then | |
echo "Usage: deploy.sh mergeFromBranch {ListOFmergeToBranches}" | |
exit $FAILURE | |
fi |
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
//****************************************************************************** | |
//* 'k' M/M/1 tandem queue simulation * | |
//****************************************************************************** | |
//* Notes: * | |
//*----------------------------------------------------------------------------* | |
//* Build: gcc -o tandem tandem.c * | |
//*----------------------------------------------------------------------------* | |
//* Execute: ./tandem MAX_CUSTOMERS NUM_SERVERS(k) INTER_ARR_TIME1 * | |
//* SERV_TIME1 PROBABILITY1 .. INTER_ARR_TIME(k) SERV_TIME(k) PROBABILITY(k) * | |
//*----------------------------------------------------------------------------* |
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
//****************************************************************************** | |
//* A simple M/M/1 queue simulation * | |
//****************************************************************************** | |
//* Notes: 1. This program requires parameters for Inter Arrival time, * | |
//** Service time as well as maximum number of customers * | |
//*----------------------------------------------------------------------------* | |
//* Build: gcc -o mm1 mm1.c * | |
//*----------------------------------------------------------------------------* | |
//* Execute: ./mm1 MAX_CUSTOMERS ARR_TIME SERV_TIME * | |
//*----------------------------------------------------------------------------* |
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
var $allVideos = $("iframe[src^='http://player.vimeo.com'],iframe[src^='http://www.youtube.com']"); | |
var $fluidEl = $("figure"); | |
$allVideos.each(function() { | |
$(this) | |
// jQuery .data does not work on object/embed elements | |
.attr('data-aspectRatio', this.height / this.width) | |
.removeAttr('height') | |
.removeAttr('width'); | |
}); |
NewerOlder