- Clear feature ownership
- Module usage predictibility (refactoring, maintainence, you know what's shared, what's not, prevents accidental regressions, avoids huge directories of not-actually-reusable modules, etc)
This file contains hidden or 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
| # watch-inbox.ps1 | |
| # File watcher that monitors 00 Inbox for new files and summarizes them | |
| # Works on Windows with PowerShell | |
| $ErrorActionPreference = "Stop" | |
| # Get the vault root directory (grandparent of Scripts folder: 99 System/Scripts) | |
| $ScriptDir = Split-Path -Parent $MyInvocation.MyCommand.Path | |
| $VaultRoot = Split-Path -Parent (Split-Path -Parent $ScriptDir) |
This file contains hidden or 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
| const arr = [{ name: "Joe", num: 9 }, { name: "Cami", num: 3 }, { name: "Cassidy", num: 4 }]; | |
| let gimmePizza = (arr, sliceNum) => Math.ceil((arr.map(i => i.num).reduce((prev, next) => prev + next) / sliceNum)); | |
| gimmePizza(arr, 8); |
- http://stackoverflow.com/questions/804115 (
rebasevsmerge). - https://www.atlassian.com/git/tutorials/merging-vs-rebasing (
rebasevsmerge) - https://www.atlassian.com/git/tutorials/undoing-changes/ (
resetvscheckoutvsrevert) - http://stackoverflow.com/questions/2221658 (HEAD^ vs HEAD~) (See
git rev-parse) - http://stackoverflow.com/questions/292357 (
pullvsfetch) - http://stackoverflow.com/questions/39651 (
stashvsbranch) - http://stackoverflow.com/questions/8358035 (
resetvscheckoutvsrevert) - http://stackoverflow.com/questions/5798930 (
git resetvsgit rm --cached)
This file contains hidden or 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
| SqlException: Invalid column name 'UserId'. | |
| System.Data.SqlClient.SqlCommand+<>c.<ExecuteDbDataReaderAsync>b__108_0(Task<SqlDataReader> result) | |
| System.Threading.Tasks.ContinuationResultTaskFromResultTask.InnerInvoke() | |
| System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, object state) | |
| System.Threading.Tasks.Task.ExecuteWithThreadLocal(ref Task currentTaskSlot) | |
| System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() | |
| System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) | |
| System.Runtime.CompilerServices.TaskAwaiter.GetResult() | |
| Microsoft.EntityFrameworkCore.Storage.Internal.RelationalCommand+<ExecuteAsync>d__17.MoveNext() |
This file contains hidden or 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
| from bs4 import BeautifulSoup | |
| import codecs | |
| import requests | |
| def get_film_names(doc): | |
| res = [] | |
| bs = BeautifulSoup(doc, 'html.parser') | |
| for a in bs.select('ul li .s-item-container h2'): | |
| name = a.text.replace('\t', ' ') | |
| yearTags = a.parent.parent.select('> span.a-color-secondary') |
This file contains hidden or 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
| # --- settings --- | |
| $feedUrl = "http://s.ch9.ms/Events/Build/2014/RSS/" | |
| $mediaType = "mp4high" | |
| $overwrite = $false | |
| $destinationDirectory = join-path ([Environment]::GetFolderPath("MyDocuments")) "Build14Video" | |
| # --- locals --- | |
| $webClient = New-Object System.Net.WebClient | |
| # --- functions --- |
This file contains hidden or 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( d ) { | |
| // Create a copy of this date object | |
| var target = new Date(d.valueOf()); | |
| // ISO week date weeks start on monday | |
| // so correct the day number | |
| var dayNr = (d.getDay() + 6) % 7; | |
| // Set the target to the thursday of this week so the |
This file contains hidden or 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
| Server Error in '/' Application. | |
| Timeout expired. The timeout period elapsed prior to obtaining a connection from the pool. This may have occurred because all pooled connections were in use and max pool size was reached. | |
| Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. | |
| Exception Details: System.InvalidOperationException: Timeout expired. The timeout period elapsed prior to obtaining a connection from the pool. This may have occurred because all pooled connections were in use and max pool size was reached. | |
| Source Error: |
NewerOlder