https://developer.microsoft.com/en-us/microsoft-edge/tools/vms/
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
/** | |
* @title objectUtils.js | |
* @description magical comprehensions for JS Object instances | |
* @author Max L Dolgov, [email protected] | |
* | |
* Here is `var` keyword for ability to re-declare functions, | |
* it makes tweaking functions in browser console possible. | |
* | |
*/ |
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
/** | |
* php.es6 | |
* @description PHP functions implemented in JavaScript/ES6 | |
* @author Max L Dolgov <[email protected]> | |
*/ | |
function count(value) { return value.length } | |
function chr(num) { return String.fromCharCode(num) } | |
function ord(str) { return String(str).charCodeAt(0) } | |
function trim(str) { return String(str).trim() } | |
function substr(str, start, length) { return String(str).substr(start, length) } |
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
<!DOCTYPE HTML> | |
<html> | |
<head> | |
<!-- HBox and VBox layouts have been implementated with many libraries/toolkits on | |
different platforms and languages (like ExtJS,QT,GTK,.NET...). | |
This tries to achieve the same but with CSS only. | |
Supported browsers: IE 10+, Safari 6.1, Latest FF, Chrome --> | |
<style type="text/css"> | |
html, body { |
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
// console.log `this` | |
{ | |
console: { | |
log: function log() | |
}, | |
scriptArgs: [], | |
print: function print(), | |
__loadScript: function __loadScript(), | |
os: { | |
O_APPEND: 8, |
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> | |
#include <sstream> | |
#include <functional> | |
#include <vector> | |
template <typename T, typename U> | |
U foldLeft(const std::vector<T>& data, | |
const U& initialValue, | |
const std::function<U(U,T)>& foldFn) { | |
typedef typename std::vector<T>::const_iterator Iterator; |
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
@import url("//unpkg.com/[email protected]/lib/theme-chalk/index.css"); |
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
function gcd (a, b) { | |
if (a === b) { | |
return a | |
} | |
const major = a > b ? a : b | |
const minor = a > b ? b : a | |
for (let i = minor; i > 0; --i) { | |
if (major % i === 0 && minor % i === 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> | |
#include <vector> | |
#include <cmath> | |
std::vector<double > calc_sqrt_results(int a, int b, int c) | |
{ | |
std::vector<double> results; | |
double discriminant = b * b - (4 * a * c); | |
if (discriminant == 0) { |