Discover gists
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
/** | |
* VIN decoder. | |
* | |
* kevinboutin on 3/11/18. | |
* | |
* My VIN for testing is WBA3A5G59DNP26082 so use the following command to invoke: | |
* node vindecoder WBA3A5G59DNP26082 | |
* | |
* Examples: | |
* KM8JM12D56U303366 |
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
<?php | |
/** | |
* StatusCodes provides named constants for | |
* HTTP protocol status codes. Written for the | |
* Recess Framework (http://www.recessframework.com/) | |
* | |
* @author Kris Jordan | |
* @license MIT | |
* @package recess.http | |
* |
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
/* eslint-disable require-await */ | |
import type { BulkOperationResult } from 'node_modules/payload/dist/collections/config/types'; | |
import type { PaginatedDocs } from 'payload/database'; | |
import type { Where } from 'payload/types'; | |
import type { Config } from 'payload-types'; | |
import type { DeepPartial } from 'ts-essentials'; | |
import type { APIBuilderArgs } from './types'; | |
import { buildQueryString } from './buildQueryString'; |
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
# Usage: git total [OPTION...] | |
# | |
# Options: | |
# | |
# In theory, the command accepts all command line options supported by | |
# the "git log" command. In reality, however, only few commit-limiting | |
# options are useful. This includes: | |
# | |
# --author=PATTERN, --committer=PATTERN | |
# Displays the number of lines changed by a certain author. |
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
int main() | |
{ | |
printf("hello world"); | |
return 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
// JS array equivalents to C# LINQ methods - by Dan B. | |
// First: This version using older JavaScript notation for universal browser support (scroll down for ES6 version): | |
// Here's a simple array of "person" objects | |
var people = [ | |
{ name: "John", age: 20 }, | |
{ name: "Mary", age: 35 }, | |
{ name: "Arthur", age: 78 }, | |
{ name: "Mike", age: 27 }, |
The privacy details that you may need to add for Apple Privacy Manifest.
This config plugin it's already available from expo >=50.0.17 (Part of this PR by aleqsio)
Tip
Read more about Privacy Manifest File from Apple docs
All of the below properties or methods, when requested/called in JavaScript, will trigger the browser to synchronously calculate the style and layout*. This is also called reflow or layout thrashing, and is common performance bottleneck.
Generally, all APIs that synchronously provide layout metrics will trigger forced reflow / layout. Read on for additional cases and details.
elem.offsetLeft
,elem.offsetTop
,elem.offsetWidth
,elem.offsetHeight
,elem.offsetParent
NewerOlder