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 $1_10_2 = jQuery.noConflict(); | |
(function( $, undefined ) { | |
var $formTable = null, | |
results = [], | |
queryPosition = null | |
; | |
// Why wait for the DOM to be ready? | |
ExecuteOrDelayUntilScriptLoaded($.noop, "sp.js"); |
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 $1_10_2 = jQuery.noConflict(); | |
(function( $, undefined ) { | |
var $formTable = null, | |
results = [], | |
queryPosition = null | |
; | |
// Why wait for the DOM to be ready to download sp.js? | |
ExecuteOrDelayUntilScriptLoaded($.noop, "sp.js"); |
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.ajax({ | |
type: "GET", | |
url: "/sites/siteName/_vti_bin/ExcelRest.aspx/listName/Vendors.xlsx/OData/Table1?$inlinecount=allpages", | |
headers: { | |
"Accept": "application/json;odata=verbose", | |
"X-RequestDigest": __REQUESTDIGEST.value | |
} | |
}) | |
.done(function(data, status) { | |
console.dir(data); |
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 $1_10_2 = jQuery.noConflict(); | |
(function( $, undefined ) { | |
var results = [] | |
; | |
retrieveListItems(); | |
function retrieveListItems() { | |
var cachedItems = JSON.parse(localStorage.getItem("pl-Vendors")); |
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
# Create 21,000 folders and 21,000 txt files. | |
# Add one file per folder. | |
# Folder names will be sequential. | |
# File names will start with a GUID and end with a timestamp. | |
# This is to try and prove if ODB is FIFO and not any other way. | |
param( | |
[parameter(mandatory=$true)] | |
[string]$filePath | |
) |
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 Robot = function(robot){ | |
robot.turnLeft(robot.angle % 90); | |
//robot.turnGunRight(90); | |
robot.clone(); | |
this.direction = 1; | |
}; | |
Robot.prototype.onIdle = function(ev) { | |
var robot = ev.robot; | |
robot.ahead(1); | |
if (robot.parentId) { |
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
// Example itemUrl for Document: | |
// http://<site>/<DocLib>/doc7.docx | |
// Example itemUrl for Item: | |
// http://<site>/<customsite>/Lists/<ListName>/<ID>_.000 | |
function fireWorkflow ( itemUrl, workflowName, workflowParams ) { | |
workflowParams = workflowParams || "<root />"; | |
$().SPServices({ |
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
# https://www.petri.com/powershell-problem-solver-finding-long-file-names | |
$folderPath = "\\servername\c$\folderPath" | |
$csvPath = "C:\fileLengthCheck.csv" | |
dir -LiteralPath $folderPath -File -Recurse -Force | | |
Select Directory,Name,@{Name="NameLength";Expression={$_.name.length}} | | |
Where {$_.NameLength -ge 45} | | |
Export-Csv -LiteralPath $csvPath -Force -NoTypeInformation |
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
'use strict' | |
var Benchmark = require('benchmark') | |
var suite = new Benchmark.Suite; | |
var list = [1, 2, 3, [[4]], [[[5]]], [6], [[7]]] | |
function flattenRecursive (list) { | |
var flatList = [] | |
list.forEach(function (item) { |
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
<xsl:output method="html" indent="no"/> | |
<xsl:decimal-format NaN=""/> | |
<xsl:param name="dvt_apos">'</xsl:param> | |
<!-- Define the HttpVDir variable --> | |
<xsl:param name="HttpVDir"/> | |
<!-- | |
Usage: <xsl:call-template name="addnew" /> | |
--> | |
<xsl:template name="addnew"> |
OlderNewer