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
Get-ChildItem -re -in "*.cs" | | |
Foreach-Object { | |
$fileStats = Get-Content $_.FullName | Measure-Object -line | |
$linesInFile = $fileStats.Lines | |
Write-Host "$_=$linesInFile" | |
} |
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 loadMoreCoachesAttempts = 0; | |
var loadMoreButtonSelector = '#main-app-content-container > div > ui-view > promote-container > div > div > div > div:nth-child(1) > promote-recipient-select > div > div.promote-recipient-select-pager.ng-scope > button'; | |
function waitForElementToDisplay(selector, time) { | |
if (document.querySelector(selector) != null) { | |
document.querySelector(selector).click(); | |
setTimeout(function() { |
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 lastScrollHeight = 0; | |
function autoScroll() { | |
var sh = document.documentElement.scrollHeight; | |
if (sh != lastScrollHeight) { | |
lastScrollHeight = sh; | |
document.documentElement.scrollTop = sh; | |
} | |
} | |
window.setInterval(autoScroll, 100); |
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
firebase login --no-localhost |
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 Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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
UPDATE table | |
SET city_end = ( | |
SELECT DISTINCT cityname | |
FROM cities | |
WHERE ST_Intersects(the_geom, table.the_geom) | |
LIMIT 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
finalrow = Cells(Rows.Count, 1).End(xlUp).Row | |
finalrow = Cells(Rows.Count, "C").End(xlUp).Row | |
finalrowORcolumn = Cells.Find(What:="*", SearchOrder:=xlRows, SearchDirection:=xlPrevious, LookIn:=xlValues).Row ' or LookIn:=xlFormulas |