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
# ===================================================================================================================== | |
# Heap | |
# ===================================================================================================================== | |
# Heap is a complete binary tree ( Max. possible ht. is log(n) ) | |
# - Cannot be used for searching ele | |
# - used only for 1. inserting 2. Deleting (that too only max/min) | |
import os, time | |
class Heap: |
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> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
</head> | |
<body> | |
<button onclick="openFullscreen();">Open Video in Fullscreen Mode</button> | |
<p><strong>Tip:</strong> Press the "Esc" key to exit full screen.</p> |
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
The cleanest way to achieve this would be to symlink the binary in the /usr/local/bin directory (which is included in PATH by default). You might need to create this directory if it doesn't exist yet. You can check to see if these directories are already in your PATH by opening Terminal.app and typing: | |
echo $PATH | |
This will generate a colon delimited listing of all directories in your PATH. | |
If the directories /usr/local or /usr/local/bin do not exist yet, execute the following: | |
sudo mkdir -p /usr/local/bin | |
Symlink the binary, replace (/Applications) with the path to phantomjs.app if it differs: |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Radix Sort</title> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/three.js/r118/three.js"></script> | |
<style> | |
html { margin: 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
// Load IndexedDB | |
window.indexedDB = window.indexedDB || window.mozIndexedDB || window.webkitIndexedDB || window.msIndexedDB; | |
window.tx = window.IDBTransaction || window.webkitIDBTransaction || window.msIDBTransaction; | |
window.IDBKeyRange = window.IDBKeyRange || window.webkitIDBKeyRange || window.msIDBKeyRange | |
if (!window.indexedDB) { | |
window.alert("Your browser doesn't support a stable version of IndexedDB.") | |
} | |
// Operations |
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
time-interval (in any units) | loss/profit (in any units) | |
---|---|---|
1-Jan-2020 | -400 | |
5-Jan-2020 | 600 | |
10-Jan-2020 | -500 | |
15-Jan-2020 | 300 | |
20-Jan-2020 | 100 | |
25-Jan-2020 | 500 | |
30-Jan-2020 | -700 | |
5-Feb-2020 | -900 |
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
# empty |
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
βββββ βββ ββ ββββββ ββββββ βββββββββ ββββ β βββ βββββββββ βββ ββββββ ββββ β | |
βββ βββββββ βββββββ ββββββ β β βββ ββ ββ ββ β ββββββ β βββ ββββββββββ βββ ββ ββ β | |
ββββββββββββββββββββ ββββ ββββ β ββββ ββ βββ ββ ββββββ βββ β ββββ ββββββββββ ββββββ ββ βββ | |
βββ ββββββ βββ βββ βββ β ββββ ββββ β ββββ βββββββββββββββ ββββ β βββββββ βββββββ βββββ | |
βββββββββββββββββ ββββββββββββββββ ββββ β ββββ ββββ ββ ββββ ββββ β βββββ βββββββββββ ββββ | |
ββ β β ββββββ ββββββ β βββ β β β ββ β ββ β β ββ ββββ β ββ ββ β ββββββ β ββ β β | |
β β β βββ β β β ββ β ββ β β β β ββ β ββ β ββ β β β β β β ββ β ββ β ββ | |
β β β β ββ ββ β β β β β β β β β β β β β β ββ β β β β β β | |
β β β β β β β β β β β β β β | |
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
local t = {employees= | |
{employee= { | |
{ | |
id= "1", | |
firstName= "Tom", | |
lastName= "Cruise", | |
["photo"]= "https=//jsonformatter.org/img/tom-cruise.jpg" | |
}, | |
{ | |
id= "2", |