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
<cfcomponent> | |
<cfproperty name="query" type="query"> | |
<cfproperty name="current" type="number"> | |
<cfproperty name="recordcount" type="number"> | |
<cfproperty name="columns" type="array"> | |
<cffunction name="init" access="public" returntype="any"> | |
<cfargument name="query" type="query"> | |
<cfset this.query=arguments.query> | |
<cfset this.recordcount=arguments.query.recordcount> |
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
Array.prototype.unique = function() { | |
return this.filter(function (value, index, self) { | |
return self.indexOf(value) === index; | |
}); | |
}; |
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
Array.prototype.diff = function(a) { | |
return this.filter(function(i) {return a.indexOf(i) < 0;}); | |
}; |
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
<cfcomponent> | |
<cffunction name="flatten" access="public" returntype="array"> | |
<cfargument name="data" type="any"> | |
<cfargument name="flattenArray" type="array" default="#arrayNew(1)#"> | |
<cfargument name="parentName" type="string" default=""> | |
<cfset arguments.flattenArray = flattenFactory( arguments.data, arguments.flattenArray, arguments.parentName )> | |
<cfreturn arguments.flattenArray> |
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
$des = "d:\diff_backup\" | |
$safe = Get-Content ".\diff.txt" | |
$safe | ForEach-Object{ | |
#find drive-delimeter | |
$first=$_.IndexOf(":\"); | |
if($first -eq 1){ | |
#stripe it | |
$newdes=Join-Path -Path $des -ChildPath @($_.Substring(0,1)+$_.Substring(2))[0] | |
} | |
else{ |
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(document).ready(function( $ ){ | |
$(".menu-item a[href*='#']:not([href='#'])").click(function( e ) { | |
if (document.location.pathname != '/') { | |
e.preventDefault(); | |
document.location.href = '/#' + $(this).attr("href").split('#')[1]; | |
} | |
}); | |
}); |
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
WITH duplicates AS ( | |
SELECT | |
*, | |
ROW_NUMBER() OVER ( | |
PARTITION BY SpecificationAttributeId, Name | |
ORDER BY SpecificationAttributeId, Name | |
) RN | |
FROM | |
[nopdb].[dbo].[SpecificationAttributeOption] | |
) |
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
.list-image { | |
max-width: 100%; | |
height: 300px; | |
background-size: cover; | |
background-repeat: no-repeat; | |
background-position: center center; | |
} |
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
for %a in (*.*) do ren "%a" "prefix - %a" |
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
for file in $(git ls-files --others --exclude-standard --modified); do mkdir -p d://BACKUP/unstageds/$(dirname $file) ; cp $file d://BACKUP/unstageds/$file ; done |