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 Node(data) { | |
this.data = data; | |
this.next = null; | |
} | |
function SinglyList() { | |
this._length = 0; | |
this.head = null; | |
} |
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 stringInt = {}; | |
var name = "Tony Stark"; | |
stringInt.variable(() => { | |
console.log(`Yo, ${name}!`); | |
}); | |
stringInt.method(() => { | |
console.log(`Hey, ${this.iamMethod(name)}!`); | |
}); |
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 ironman; | |
if(ironman){ // Check Declaration | |
console.log('Defined and has value'); | |
} | |
if(!ironman){ // Check for null | |
console.log('Defined and has null value'); | |
} | |
if(!!ironman){ //Check for Null & Defined | |
console.log('Defined and not empty'); | |
} |
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
/* | |
Add clienttemplates.js reference in master page | |
<script type="text/javascript">RegisterSod("clienttemplates.js", "/_layouts/15/clienttemplates.js");</script> | |
*/ | |
(function () { | |
SPClientTemplates.TemplateManager.RegisterTemplateOverrides({ | |
Templates: { | |
Header: "<div class='col-md-12'>", | |
Body: function (ctx) { | |
for(var v in ctx.ListData.Row){ |
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
#Deplo tensorflow image in docker | |
sudo docker run -it gcr.io/tensorflow/tensorflow:latest-devel | |
#Copy Image Set- | |
sudo docker run -it -v /home/arivu/MyWorld/tensorflow/tf_files/starwars:/tf_files/starwars gcr.io/tensorflow/tensorflow:latest-devel | |
#Re-Train model | |
python /tensorflow/tensorflow/examples/image_retraining/retrain.py \ | |
--bottleneck_dir=/tf_files/bottlenecks \ | |
--how_many_training_steps 500 \ |
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
openssl x509 -inform PEM -in cacert.pem -outform DER -out certificate.cer |
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 GetFieldsForList(Site, ListName) | |
{ | |
var ctx = new SP.ClientContext(Site); | |
var list = ctx.get_web().get_lists().getByTitle(ListName); | |
this.fields = list.get_fields(); | |
ctx.load(fields, 'Include(Title,InternalName,FieldTypeKind)'); | |
ctx.executeQueryAsync(Function.createDelegate(this, this.Success), Function.createDelegate(this, this.Failure)); | |
} | |
function Success() |
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 bootstrapModelDialog(id, title, body, buttons) { | |
try { | |
if (!document.getElementById(id)) { | |
var innerHtml = "<div class=\"modal fade\" id=\"" + id + "\" tabindex=\"-1\" role=\"dialog\" aria-labelledby=\"basicModal\" aria-hidden=\"true\"><div class=\"modal-dialog\"><div class=\"modal-content\"><div class=\"modal-header\"><button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-hidden=\"true\">×</button><h2 class=\"modal-title\" id=\"myModalTitle\">" + title + "</h2></div><div class=\"modal-body\" id=\"modalBody\">" + body + "</div><div class=\"modal-footer\" id=\"modalFooter\">" + buttons + "</div></div></div></div>"; | |
$("body").append(innerHtml); | |
$('#' + id).modal('show'); | |
} else { | |
$('#myModalTitle').html(title); | |
$('#modalBody').html(body); | |
$('#modalFooter').html(buttons); |
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
<!--Requires Bootstrap CSS & JS --> | |
<div id="loading_Modal" class="modal fade" tabindex="-1" role="dialog" data-keyboard="false" | |
data-backdrop="static"> | |
<div class="modal-dialog" style="width:400px;top:30%;"> | |
<div class="modal-content"> | |
<div class="modal-header" style="padding: 0px; text-align: center;"> | |
<h2 style="margin-top: 5px;">Please wait ....</h2> | |
</div> | |
<div class="modal-body" > | |
<div style="height:20px"> |
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 CAMLGetListItems(SPHostUrl,listTitle,query){ | |
var SPContext = new SP.ClientContext.get_current(SPHostUrl); | |
var web = SPContext.get_web(); | |
var List = web.get_lists().getByTitle(listTitle); | |
var listItems; | |
var query = new SP.CamlQuery(query); | |
query.set_viewXml(query); | |
listItems = List.getItems(query); | |
SPContext.load(listItems); |