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
/** | |
* Prerequsite to run this script: | |
* - ImageMagick installed | |
* - Node (>= 12LTS) | |
* | |
* Save this somewhere on your machine as a node script (my choice is usually ~/bin/node_scripts) | |
* | |
* After alias it in zshrc as: | |
* alias image_combine="node ~/node_scripts/image-combine.js" | |
* |
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
// --------------------------------- | |
// USING | |
// --------------------------------- | |
// "@reduxjs/toolkit": "1.5.0", | |
// "@testing-library/react": "11.2.5", | |
// "typescript": "3.7.2" | |
// "react": "16.13.1" | |
// "react-redux": "7.2.0", | |
// "react-router-dom": "5.2.0", |
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
#include <iostream> | |
using namespace std; | |
int main(){ | |
char bitwiseMask = 0xdf, lowCase = 'a'; | |
char upperCase = (char)(lowCase & bitwiseMask); | |
cout << upperCase << endl; |
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
var above = function(limit){ | |
return function(value){ | |
return value > limit; | |
}; | |
}; | |
var isAbove10 = above(10); | |
console.log(isAbove10(5)); // false | |
console.log(isAbove10(8)); // false |