Can I use gsap, parallax.js in angular7 - angular7

I'm new to angular Im planning to create a website with parallax.js and gsap tweenmax effects with angular7. I want to know where do I get some reference regarding with this

Angular works with most JavaScript libraries. An example on parallax.js in particular can be found here. The post uses parallax.js with angular 5, on angular 7 the angular-cli.json was renamed and remodelled to angular.json but the rest should be the same. For tweenmax, a tutorial can be found here.
You will notice, the process to include a third party library is always the same or pretty similiar:
Install the library through npm
Include the library either through the angular.json script section or through import in your project (depends on the packaging)

Related

How to include libsignal-protocol-c in my Swift iOS app?

I would like to write something like import SignalProtocol at the top of one of my Swift files and then be able to call the C functions from libsignal-protocol-c.
libsignal-protocol-c's README says: "When integrating into actual applications, you should not need anything beyond CMake. Alternatively, you may integrate the code using a build system of your choice."
I think I'd like to use the Swift Package Manager to integrate libsignal-protocol-c into my Swift iOS app. Is there a way to automatically generate a manifest file, ie, Package.swift, and a module map, ie, a module.modulemap file, from libsignal-protocol-c's CMake files? Or if I need to create these files manually, what should they include? Otherwise, how would I do this with CMake?
How to import and use libsignal-protocol-c in an existing .xcodeProj? is a similar question but for Objective-C projects.
I'm not sure its an answer but I'm going to start using https://github.com/christophhagen/LibSignalProtocolSwift. Seems like a good start.

using import 'dart:html' in flutter - Do I need additional dependencies?

I came across a websocket example that I would like to use. However it uses import 'dart:html';. When I introduce that in my Flutter project seems like its not being picked up. Do I need to add additional dependencies to the pubspec.yaml?
dart:html can't be used in Flutter.
It is for browser applications only.
dart:html also only comes with the regular Dart SDK, not with the Dart SDK shipped with Flutter.
I know this is an old question but let me drop this answer here.
I've searched for a web crawler/scraper for Flutter for a while now. I've tried to use FlutterWebview and also the HTML package but no way. Recently I've found a new package for this.
The advantage of this package is that it is really cross platform as explained:
Cross-platform dart:html that works in the browser, Dart VM, and Flutter.
Typical use cases are:
Cross-platform application development (e.g. Flutter mobile and web versions).
Web crawling and scraping
you can use universal_html for any scraping/crawling purpose
Since the merge of Flutter-web into the main Flutter repository, it's no longer possible to directly add imports for web libraries (e.g. dart:html) in a Flutter project on the main channel when targeting Web, Android and iOS.
Use the universal html package which provides extensive support for multiple platforms and web libraries.
From the root level of your project, command
1.
flutter pub add universal_html
2. import 'package:universal_html/html.dart' as html
This package isn't required to run some web files (e.g. dart:js). In my case, I just had to remove the import 'dart:js' import statement.

Using a modified PDFTron Tools Framework

I'm working on a iOS Framework (using CocoaPods) that, as of today, uses PDFNet.framework as its only dependency.
Everything works as expected when I use the resulting framework in another "top level" project.
Now I'm trying to make this same Framework use the Tools.framework, as I intend to use the annotations from the Tools library.
Is there a common approach in doing so?
I've tried building the Tools source code but it fails as the dependency isn't found.
Everything you need should be in the following guide.
https://blog.pdftron.com/2016/11/14/getting-started-with-pdfnet-for-ios/
If that guide does not help, then please answer my comment above.

How to create a library that improves the official TextInput component in React Native

I've added a small feature that improves the UX of the <TextInput> component in React Native. The new code is in the native side so I had to make changes to several files inside official RCTText library.
Currently, I got this working locally by manually changing the code inside node_modules and rebuilding the project. I plan to make a PR to the official React Native project once I fix all the edge cases. I understand that sometimes features takes a while to make it into the official release(if at all) so in the meantime, I would like to release this improved <TextInput>as a library for other's that might be interested.
The goal is to release a library that once added to project will allow you to create a <MyTextInput> component which does everything the original <TextInput> does. And here is where I got a bit lost. Can someone please point me to the right direction on how to make a library out of this, or perhaps a link to a library that does a similar thing(augmenting an official RN component in native code)?
You can bootstrap a linkable library project using react-native-create-library and then copy your modified RCTText library project into it.
You'll want to rename the library, e.g. by giving it a prefix other than RCT to avoid collisions with the main RCTText component. Additionally, you'll need to rename all the references to the RCT* components in the source files.
Once you have created the library, you can publish it to NPM and install it to your React Native app with:
npm install your-text-component
react-native link your-text-component
I haven't tried this for built-in React components, but releasing a third-party native library for React Native should not really be any different, whether or not the original implementation is based on existing React Native component or not.

iOS Facebook SDK: show progress of received data with FBURLConnection

I'm using the Facebook-SDK to make some FQL queries. Now I want to know how much of the requested data has already been transferred to the app to visualize the loading process in a progressbar.
So I used this https://github.com/nyankichi820/FBRequestConnection-FBRequestConnection_progress plugin which extends the FBURLConnection class to provide the progress of a data transfer.
The problem is, that I included the Facebook-SDK as an XCode framework into the project and the header file FBURLConnection.h which is necessary for the plugin is not published in the framework and cannot be found.
So how can I include the header file FBURLConnection.h into the frameworks visible headers so that I can access it? I dont't want to include all the FB-SDK files, I wanted to do this by relying on the XCode framework structure. Thanks in advance.
You should probably include the source of the framework yourself manually or much more simply using cocoapods.
Here is the github link to the SDK source: https://github.com/facebook/facebook-ios-sdk
The official cocoapod is named "Facebook-iOS-SDK", if you decide to go that route. I recommend doing this as it is much simpler to install the SDK and update it later on. Cocoapods are very nice for external components in general and will almost certainly save you time and frustration in the long run.

Resources