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
import { Construct } from 'constructs'; | |
import * as customResources from 'aws-cdk-lib/custom-resources'; | |
import * as vpclattice from 'aws-cdk-lib/aws-vpclattice'; | |
export interface VPCLatticePrefixListsProps { | |
region: string; | |
serviceNetworkVpcAssociation: vpclattice.CfnServiceNetworkVpcAssociation; | |
} | |
export class VPCLatticePrefixLists extends Construct { |
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
const path = require('path'); | |
const escapeStringRegExp = require('escape-string-regexp'); | |
const _debug = require('debug'); | |
const PLUGIN_NAME = 'AlternativeFileReplacerPlugin'; | |
const debug = _debug(PLUGIN_NAME); | |
/** | |
* Create an "isFileAccessible" function for an `fs` interface that has a `stat` 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
<?php | |
/** | |
* Adapted from | |
* | |
* @param string $where | |
* | |
* @return bool | |
*/ | |
function car_debug_rewrite_rules() |
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
import { flatten } from 'ramda'; | |
/** | |
* The default alert message type. | |
* | |
* @constant | |
* @type {string} | |
*/ | |
export const DEFAULT_ALERT_TYPE = 'info'; |
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
yarn run v1.16.0 | |
$ PROJECT_PATH_OMITTED/node_modules/.bin/react-native-schemes-manager fix-libraries | |
✔ [fix-libraries]: Debug -> DevDebug created in node_modules/react-native/Libraries/ActionSheetIOS/RCTActionSheet.xcodeproj | |
✔ [fix-libraries]: Debug -> StagingDebug created in node_modules/react-native/Libraries/ActionSheetIOS/RCTActionSheet.xcodeproj | |
✔ [fix-libraries]: Release -> DevRelease created in node_modules/react-native/Libraries/ActionSheetIOS/RCTActionSheet.xcodeproj | |
✔ [fix-libraries]: Release -> StagingRelease created in node_modules/react-native/Libraries/ActionSheetIOS/RCTActionSheet.xcodeproj | |
✔ [fix-libraries]: Debug -> DevDebug created in node_modules/react-native/Libraries/ART/ART.xcodeproj | |
✔ [fix-libraries]: Debug -> StagingDebug created in node_modules/react-native/Libraries/ART/ART.xcodeproj | |
✔ [fix-libraries]: Release -> DevRelease created in node_modules/react-native/Libraries/ART/ART.xcodeproj | |
✔ [fix-libraries]: Release -> StagingRelease created in node_modules/react-native/Librari |
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
function createTimer (log) { | |
let prev = null; | |
function hrtimeDurationToMs([durS, durUs]) { | |
return ((durS * 1000) + (durUs / 1000000)).toFixed(4); | |
} | |
return (name = null) => { | |
if (prev) { | |
const dur = hrtimeDurationToMs(process.hrtime(prev[1])); | |
log(`end ${prev[0]}, took ${dur}ms`, { name: prev[0], hrtime: prev[1], dur }); | |
} |
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
# Built-in Trackpad toggle script | |
# https://github.com/Ryderpro/Apple-Scripts | |
osascript <<'END' | |
tell application "System Preferences" | |
quit | |
delay 1 | |
end tell | |
tell application "System Preferences" |
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 | |
namespace App\Support; | |
use App\User; | |
use Illuminate\Database\Eloquent\Model; | |
abstract class CurrentUserAwareModel extends Model | |
{ | |
/** |
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 | |
/** | |
* [list_searcheable_acf list all the custom fields we want to include in our search query] | |
* @return [array] [list of custom fields] | |
*/ | |
function list_searcheable_acf(){ | |
$list_searcheable_acf = array("title", "sub_title", "excerpt_short", "excerpt_long", "xyz", "myACF"); | |
return $list_searcheable_acf; | |
} |
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 | |
return [ | |
// ... | |
'redis' => [ | |
'options' => [ | |
// Options can be specified here (with the lowest precedence). | |
], |
NewerOlder