This document now exists on the official ASP.NET core docs page.
- Application
- Request Handling
This document now exists on the official ASP.NET core docs page.
I was poking around trying to figure out all the packages I have access to publish and got curious. So I write this little script to determine the download stats for all the packages I have publish access to.
Feel free to try it yourself. Just change the username passed to getUserDownloadStats.
By default, the stats are sorted by their average daily downloads (descending). That should give you an idea of the most "popular" package of a given user relative to how long that package has been around.
You can use it with npx like so:
| # Put this function to your .bashrc file. | |
| # Usage: mv oldfilename | |
| # If you call mv without the second parameter it will prompt you to edit the filename on command line. | |
| # Original mv is called when it's called with more than one argument. | |
| # It's useful when you want to change just a few letters in a long name. | |
| # | |
| # Also see: | |
| # - imv from renameutils | |
| # - Ctrl-W Ctrl-Y Ctrl-Y (cut last word, paste, paste) |
| const path = require('path') | |
| const fs = require('fs') | |
| const execSync = require('child_process').execSync | |
| if (!process.argv[2] || !process.argv[3]) { | |
| throw new Error('you did not pass the source and destination paths') | |
| } | |
| const searchPath = path.join(process.cwd(), process.argv[2]) | |
| const destination = path.join(process.cwd(), process.argv[3]) |
| #!/bin/bash | |
| defaults write com.oracle.workbench.MySQLWorkbench NSRequiresAquaSystemAppearance -bool yes | |
| echo "Successfully patched!" | |
| echo "Now restart MySQL Workbench to see the Workbench in light theme." | |
| #Restart MySQL Workbench after executing this. |
| var a = "j"; // "j" | |
| var b = "\\j"; // "\j" | |
| var c = "\\\\j"; // "\\j" | |
| var d = "\\\\\\j"; // "\\\j" | |
| var e = "\\\\\\\\j"; // "\\\\j" | |
| var f = "\\\\\\\\\\j"; // "\\\\\j" | |
| var just_j = nonescapedRE("j"); | |
| just_j.test(a); // true | |
| just_j.test(b); // false |
| [ | |
| { | |
| "latitude": "34° 31' 24.924", | |
| "longitude": "50° 0' 20.866", | |
| "province": "مرکزی", | |
| "state": "آشتیان", | |
| "city": "آشتیان" | |
| }, | |
| { | |
| "latitude": "33° 40' 29.197", |
| /** | |
| * Convert English numbers to Persian. | |
| * | |
| * @param {string} value | |
| * @return {string} converted string. | |
| */ | |
| function faNumbers(value) { | |
| if (typeof value === "number") { | |
| var value = value.toString(); | |
| } |
| /** | |
| * Convert English numbers to Persian. | |
| * | |
| * @param {string} value | |
| * @return {string} converted string. | |
| */ | |
| function faNumbers(value) { | |
| var englishNumbers = { | |
| '0': '۰', '1': '۱', '2': '۲', '3': '۳', '4': '۴', | |
| '5': '۵', '6': '۶', '7': '۷', '8': '۸', '9': '۹' |