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'); | |
}); |
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
//****************************************************************************** | |
//* '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
#/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
DELETE FROM xyz where id in ( SELECT id from (SELECT id | |
FROM xyz | |
GROUP BY | |
name | |
HAVING COUNT(*) > 1) as newXYZ) |
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 [ $# -ne 1 ] | |
then | |
echo "Usage: createUser {username}" | |
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
Private Sub Migrate() | |
For i = 3 To 26 | |
For j = 3 To 62 | |
If Sheets("final").Cells(j, 1) = Cells(i, 1).Value Or Sheets("final").Cells(j, 1) = Cells(i, 2).Value Or Sheets("final").Cells(j, 1) = Cells(i, 3).Value Then | |
Sheets("final").Cells(j, 7) = Cells(i, 4).Value | |
Sheets("final").Cells(j, 8) = Cells(i, 5).Value | |
End If | |
Next j | |
Next i | |
End Sub |
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
sudo update-rc.d -f service defaults | |
sudo update-rc.d service enable |
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
sudo apt-get update | |
sudo apt-get install build-essential libx11-dev libssl-dev -y libgssglue-dev libpcsclite-dev | |
tar zxvf rdesktop-1.8.3.tar.gz | |
cd rdesktop-1.8.3 | |
./bootstrap | |
./configure | |
make | |
sudo make install |
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
./letsencrypt-auto certonly -a manual --rsa-key-size 4096 --email [email protected] -d abc.com |
OlderNewer