-
node: command not foundOh, yeah sorry that's probably because when you run
/bin/shfrom your terminal it's picking up thePATHfrom the parent shell, which allows node to work.Different approach then, try (from your usual terminal where node is working):
ln -s $(which node) /usr/local/bin/nodeThat should put a symlink to node somewhere in the
PATHthatshuses. If it already exists, I'm stumped.
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
| "use client"; | |
| import { | |
| type ColumnDef, | |
| flexRender, | |
| getCoreRowModel, | |
| useReactTable, | |
| getPaginationRowModel, | |
| getSortedRowModel, | |
| getFilteredRowModel, |
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
| public String getRealPathFromUri(final Uri uri) { | |
| // DocumentProvider | |
| if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT && DocumentsContract.isDocumentUri(this, uri)) { | |
| // ExternalStorageProvider | |
| if (isExternalStorageDocument(uri)) { | |
| final String docId = DocumentsContract.getDocumentId(uri); | |
| final String[] split = docId.split(":"); | |
| final String type = split[0]; | |
| if ("primary".equalsIgnoreCase(type)) { |
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
| import React from 'react'; | |
| import { TextInput as Input } from 'react-native'; | |
| export default class TextInput extends React.Component { | |
| static defaultProps = { | |
| onFocus: () => { }, | |
| } | |
| constructor(props) { | |
| super(props); |
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
| 'use strict'; | |
| module.exports = function CustomError(message, extra) { | |
| Error.captureStackTrace(this, this.constructor); | |
| this.name = this.constructor.name; | |
| this.message = message; | |
| this.extra = extra; | |
| }; | |
| require('util').inherits(module.exports, Error); |
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
| class MyClass { | |
| } | |
| private var key: Void? | |
| extention MyClass { | |
| var title: String? { | |
| get { | |
| return objc_getAssociatedObject(self, &key) as? String | |
| } |
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
| struct SwiftOption: OptionSet { | |
| let rawValue: UInt | |
| static let none = SwiftOption(rawValue: 0) | |
| static let option1 = SwiftOption(rawValue: 1) | |
| static let option2 = SwiftOption(rawValue: 1 << 1) | |
| } |
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
| // | |
| // TextEffectView.swift | |
| // TextEffects | |
| // | |
| // Created by Ben Scheirman on 2/15/16. | |
| // Copyright © 2016 NSScreencast. All rights reserved. | |
| // | |
| import UIKit | |
| import CoreText |