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
// SPDX-License-Identifier: MIT | |
// OpenZeppelin Contracts (last updated v4.8.0) (utils/Strings.sol) | |
pragma solidity ^0.8.0; | |
import "./math/Math.sol"; | |
/** | |
* @dev String operations. | |
*/ |
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
console.log('Rrow update diff:'); | |
console.log('++++++++++++++++++++'); | |
console.log('++++++++++++++++++++'); | |
const now = Object.entries(this.props); | |
const added = now.filter(([key, val]) => { | |
if (prevProps[key] === undefined && val !== undefined) return true; | |
if (!isEqual(prevProps[key], val)) { | |
console.log(`${key} | |
- ${JSON.stringify(prevProps[key])} |
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
{"lastUpload":"2018-03-07T14:02:41.170Z","extensionVersion":"v2.9.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
// | |
// JHAVerticalTextView.h | |
// Quotes background | |
// | |
// Created by Jens Andersson on 23/02/14. | |
// Copyright (c) 2014 Jens Andersson. All rights reserved. | |
// | |
#import <UIKit/UIKit.h> |
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
#define $(...) ((NSString *)[[NSArray arrayWithObjects:__VA_ARGS__, nil] componentsJoinedByString:@""]) | |
/* | |
* Example | |
*/ | |
NSString *string = $(@"Hello", @" ", @"World!", @"\n", @"1 + 2 = ", @(1+2)); |
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
static CFAbsoluteTime JAProfilingBlock (void (^block)(void)) { | |
CFAbsoluteTime start = CFAbsoluteTimeGetCurrent(); | |
block (); | |
CFAbsoluteTime end = CFAbsoluteTimeGetCurrent(); | |
return end - start; | |
} | |
#example usage |