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
#!/usr/bin/env zsh | |
set -euo pipefail ${DEBUGSH+-x} | |
# List your repositories' URLs here, one per line | |
repositories=( | |
"https://github.com/user/repo1.git" | |
"https://github.com/user/repo2.git" | |
) | |
# Ensure the "packages" directory exists |
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
def reward_function(params): | |
# Read input parameters | |
all_wheels_on_track = params['all_wheels_on_track'] | |
distance_from_center = params['distance_from_center'] | |
track_width = params['track_width'] | |
progress = params['progress'] | |
waypoints = params['waypoints'] | |
closest_waypoints = params['closest_waypoints'] | |
# Give a very low reward by default |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<Package xmlns="http://soap.sforce.com/2006/04/metadata"> | |
<types> | |
<members>*</members> | |
<name>ActionLinkGroupTemplate</name> | |
</types> | |
<types> | |
<members>*</members> | |
<name>AnalyticSnapshot</name> | |
</types> |
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
<div> | |
<p> <a href= "#secondaryLogo_modal"> Example</a></p> | |
</div> | |
<div> | |
<div class="modal" id="secondaryLogo_modal" onclick="CloseModal(event, this);"> | |
<div> | |
<a href="#close" title="Close" class="close">X</a> | |
<img src="<?echo $_SESSION["site"]->serverURL;?>/media/rto/envelopesBottomLeft.png" style="height:100%;"alt=""> | |
</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
<? | |
function dbconnect_lowlevel() | |
{ global $dbname,$dbuser,$dbpass,$db, $conn; | |
$db = mysql_connect("localhost",$dbuser,$dbpass); | |
$conn = new mysqli("localhost", $dbuser, $dbpass, $dbname); | |
mysql_query("use $dbname",$db); | |
} | |
session_start(); |
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 dbconnect_lowlevel() | |
{ global $dbname,$dbuser,$dbpass,$db, $conn; | |
$db = mysql_connect("localhost",$dbuser,$dbpass); | |
$conn = new mysqli("localhost", $dbuser, $dbpass, $dbname); | |
mysql_query("use $dbname",$db); | |
} | |
session_start(); |
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
$certCustom = Certificates\Custom::Load($_GET['id'], "id, studentID", array( |
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 mediaQueryList = window.matchMedia('print'); | |
var mqlScreen = window.matchMedia("screen") | |
mediaQueryList.addListener(function(mql) { | |
if (mql.matches) { | |
console.log('js you want to apply before print'); | |
} | |
else if (mqlScreen.matches) { | |
console.log('js you want to apply after print'); | |
} |
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 createSignaturePads() { | |
//-----Selects all elements that start with the id signaturePad-// | |
var elems=document.querySelectorAll("*[id^='signaturePad-']"); | |
//-----Start of the forEach Loop// | |
[].forEach.call(elems,function(elem){ | |
console.log(elem) | |
var oldId=elem.getAttribute("id"); | |
console.log(oldId) | |
// can not resizeCanvas with out getElementById of 'oldId' |
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
studentSignaturePad = new SignaturePad(document.getElementById('student-signature-pad'), { | |
var saveButton = document.getElementById('submit'); | |
var cancelButton = document.getElementById('clear1'); | |
cancelButton.addEventListener('click', function (event) { | |
studentSignaturePad.clear(); | |
}); |
NewerOlder