Install the OpenSSL on Debian based systems
sudo apt-get install opensslNote: This guide applies to the project created by quasar-cli.
First install typescript and ts-loaderpackages in your project.
npm i -D typescript ts-loaderThen modified the quasar.conf.js file in your project:
| /* | |
| This example shows how you can use your data structure as a basis for | |
| your Firebase security rules to implement role-based security. We store | |
| each user by their Twitter uid, and use the following simplistic approach | |
| for user roles: | |
| 0 - GUEST | |
| 10 - USER | |
| 20 - MODERATOR |
| #!/usr/bin/env bash | |
| # Usage: goo.gl [URL] | |
| # | |
| # Shorten a URL using the Google URL Shortener service (http://goo.gl). | |
| goo.gl() { | |
| [[ ! $1 ]] && { echo -e "Usage: goo.gl [URL]\n\nShorten a URL using the Google URL Shortener service (http://goo.gl)."; return; } | |
| curl -qsSL -m10 --connect-timeout 10 \ | |
| 'https://www.googleapis.com/urlshortener/v1/url' \ | |
| -H 'Content-Type: application/json' \ | |
| -d '{"longUrl":"'${1//\"/\\\"}'"}' | |
| <?php | |
| function wp_log_http_requests( $response, $args, $url ) { | |
| // set your log file location here | |
| $logfile = plugin_dir_path( __FILE__ ) . '/http_requests.log'; | |
| // parse request and response body to a hash for human readable log output | |
| $log_response = $response; | |
| if ( isset( $args['body'] ) ) { |
| using System; | |
| namespace ClassLibrary | |
| { | |
| public interface IDependency | |
| { | |
| void SomeMethod(string s); | |
| } | |
| public class MyClass |
| """ | |
| Determine IPv4 addresses on a Linux machine via the socket interface. | |
| Thanks @bubthegreat the changes to make it Py2/3 compatible and the helpful | |
| code comments: https://gist.github.com/pklaus/289646#gistcomment-2396272 | |
| This version has all comments removed for brevity. | |
| """ | |
| import socket | |
| import array | |
| import struct |