$ curl -L -O https://github.com/getredash/redash/archive/v5.0.1.zip
// TrueCondition implement IConditionCheckable interface | |
func (test *TestStruct) TrueCondition() bool { | |
if test.IsTrue { | |
return true | |
} | |
return false | |
} |
$ curl -L -O https://github.com/getredash/redash/archive/v2.0.0.zip
(function(exports) { | |
exports.CNS_ADDRESS = "0xdummy99999999999999999999999999999999"; | |
exports.HISTORY_ADDRESS = "0xdummy99999999999999999999999999999999"; | |
exports.HISTORY_ABI = [{"constant":true,"inputs":[],"name":"organizations","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"nonces","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"histories","outputs":[{"name":"isCreated","type":"bool"},{"name":"allowGroupId","type":"bytes32"},{"name":"userDataObjectId","type":"bytes32"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"gmoCns","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"inputs":[{"name":"_gmoCns","type":"address"},{"name":"_organizations","type":"address"}] |
@echo off | |
SET CurrentWorkingDirectory=%CD% | |
SET CMDER_ROOT=C:\tools\cmder | |
CALL "%CMDER_ROOT%\vendor\init.bat" | |
CD /D %CurrentWorkingDirectory% |
{ | |
"workbench.iconTheme": "eq-material-theme-icons", | |
"terminal.integrated.shell.windows": "C:\\WINDOWS\\System32\\cmd.exe", | |
"terminal.integrated.shellArgs.windows": ["/K", "C:\\tools\\cmder\\vscode.bat"], | |
"vim.easymotion": true, | |
"vim.incsearch": true, | |
"vim.useCtrlKeys": true, | |
"vim.hlsearch": true, | |
"vim.sneak": true, | |
"vim.leader": "<space>", |
RELEASE="stable" | |
ARCH=$(uname -m) | |
VANITY_SERVICE_URL="https://vanity-service.parity.io/parity-binaries?architecture=$ARCH&format=markdown" | |
LIBSSL="undef" | |
check_os() { | |
if [ "$(uname)" = "Linux" ] ; then | |
PKG=linux # linux is my default |
{ | |
"env": { | |
"es6": true, | |
"node": true | |
}, | |
"extends": "standard", | |
"rules": { | |
"indent": [ | |
"error", | |
4 |
When implementing a custom scrollbars there’s a need to detect changes in height of the element to which you are applying the scrollbars to, as the height of the scrollbars need to be adjusted based on the content’s height. We also need to take into account that the content could change and height needs to be recalculated i.e paging on queries could yield 10 results, whilst on the last page it could yield just 5 results, and these changes need to be accounted for by the scrollbar. And the same problem arises when getting content asynchronously, because whilst the content is empty on initial render it gets rendered only after successful fetch of the required data and we should calculate the scrollbar height once the content is available which is hard to determine as the operation is asynchornous.
Different libraries and plugins deal with the problem separately.
- jQuery Scrollbar runs a timeout every 300ms to account for any changes in the DOM. https://github.com/gromo
// Example: | |
JavaScript.load("/javascripts/something.js"); | |
// With callback (that’s the good thing): | |
JavaScript.load("http://www.someawesomedomain.com/api.js", function() { | |
API.use(); // or whatever api.js provides ... | |
}); |