function foo() {
return "bar";
}
This file contains 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> | |
#include <functional> | |
#include <chrono> | |
uint64_t sum1(int n) { | |
return (n <= 1) ? 1 : n + sum1(n - 1); | |
} | |
std::function<uint64_t(int)> sum2 = [&] (int n) { | |
return (n <= 1) ? 1 : n + sum2(n - 1); |
This file contains 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> | |
#include <string> | |
#include <algorithm> | |
/* | |
* Sample Output: http://ideone.com/EbKsF5 | |
* | |
* Tested on: g++ 4.7, g++ 4.8, clang 3.3 | |
* | |
*/ |
This file contains 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
# This file is automatically generated by Android Tools. | |
# Do not modify this file -- YOUR CHANGES WILL BE ERASED! | |
# | |
# This file must be checked in Version Control Systems. | |
# | |
# To customize properties used by the Ant build system edit | |
# "ant.properties", and override values to adapt the script to your | |
# project structure. | |
# | |
# To enable ProGuard to shrink and obfuscate your code, uncomment this (available properties: sdk.dir, user.home): |
This file contains 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
# This file is automatically generated by Android Tools. | |
# Do not modify this file -- YOUR CHANGES WILL BE ERASED! | |
# | |
# This file must be checked in Version Control Systems. | |
# | |
# To customize properties used by the Ant build system use, | |
# "ant.properties", and override values to adapt the script to your | |
# project structure. | |
# Indicates whether an apk should be generated for each density. |
This file contains 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 cordova = require('cordova-lib'); | |
var INPUT_WEBAPP = 'path/to/my/project/dist/app'; | |
var CDV_CONFIG = 'path/to/my/project/src/config.xml'; | |
var OUTPUT_CDVROOT = 'path/to/my/project/dist/cordova'; | |
var platforms = [ | |
require(‘cordova-android’), | |
require(‘cordova-ios’), | |
// ... |
This file contains 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
Verifying that +mmocny is my blockchain ID. https://onename.com/mmocny |
This file contains 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
/** | |
* A bookmarklet for viewing shifted elements while debugging | |
* Cumulative Layout Shift (web.dev/cls). Works in Chrome 84+ | |
* Shows the previous position of shifted elements in yellow, | |
* and the new position in red. | |
* | |
* To install: | |
* 1. Copy the code starting from the line beginning `javascript:` | |
* 2. Add a new bookmark in Chrome, and paste the code in as the URL. | |
**/ |
This file contains 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
/* | |
* Re-implement based on conventions from: | |
* https://source.chromium.org/chromium/chromium/src/+/master:cc/trees/layer_tree_host_impl.cc;l=160-176 | |
* | |
* With help from github.com/dontcallmedom and his library: | |
* https://github.com/dontcallmedom/metaviewport-parser (MIT https://github.com/dontcallmedom/metaviewport-parser/blob/master/LICENSE) | |
*/ | |
function HasFixedPageScale() { | |
// Simpler variant: |
OlderNewer