Tutorial by Examples: ee

The following code sample demonstrates a quick and easy means of encrypting and decrypting files using the AES symmetric encryption algorithm. The code randomly generates the Salt and Initialization Vectors each time a file is encrypted, meaning that encrypting the same file with the same password ...
Encoded URL http%3A%2F%2Fwww.foo.com%2Findex.php%3Fid%3Dqwerty Use this command to decode the URL echo "http%3A%2F%2Fwww.foo.com%2Findex.php%3Fid%3Dqwerty" | sed -e "s/%\([0-9A-F][0-9A-F]\)/\\\\\x\1/g" | xargs -0 echo -e Decoded URL (result of command) http://www.foo...
The default style files generated and compiled by @angular/cli are css. If you want to use scss instead, generate your project with: ng new project_name --style=scss If you want to use sass, generate your project with: ng new project_name --style=sass
$a = 5; $b = 10; $a <=> $a; // 0, because $a == $a $a <=> $b; // -1, because $a < $b $b <=> $a; // 1, because $b > $a
Asymmetric encryption is often regarded as preferable to Symmetric encryption for transferring messages to other parties. This is mainly because it negates many of the risks related to the exchange of a shared key and ensures that whilst anyone with the public key can encrypt a message for the inten...
The configuration to make a secure connection using express.js (Since version 3): var fs = require('fs'); var http = require('http'); var https = require('https'); var privateKey = fs.readFileSync('sslcert/server.key', 'utf8'); var certificate = fs.readFileSync('sslcert/server.crt', 'utf8'); ...
To remote tracking between local and deleted remote branches use git fetch -p you can then use git branch -vv to see which branches are no longer being tracked. Branches that are no longer being tracked will be in the form below, containing 'gone' branch 12345e6 [origin/bran...
In the example below, the calculateShippingPrice method calculates shipping cost, which takes some processing time. In a real world example, this would e.g. be contacting another server which returns the price based on the weight of the product and the shipping method. By modeling this in an async ...
git diff-tree --no-commit-id --name-only -r COMMIT_ID

Page 54 of 54