Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
'use strict'; | |
/** | |
npm i bluebird slack-node | |
CREATE YOUR TOKEN: https://api.slack.com/docs/oauth-test-tokens?team_id=T024G49EC&action=reissue&sudo=1 | |
npm package: https://www.npmjs.com/package/slack-node | |
user.list: https://api.slack.com/methods/users.list |
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
[ | |
{ | |
"inputs": [ | |
{ | |
"internalType": "string", | |
"name": "name", | |
"type": "string" | |
}, | |
{ | |
"internalType": "string", |
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
0xE50E7A437D07DBE748BC2DA92019048810DE21E0 | N/A | mock0 | |
---|---|---|---|
0x80B27341D4218B757AB60D041DDDEC3F5738FD0A | N/A | mock1 | |
0x53A4ED85795FEF056A588771F23F0CDADD75B27B | N/A | mock2 | |
0x63D3F4C5D5077292CD965C1E667FFF5FCF2C3BC8 | N/A | mock3 | |
0x48ACF0979B69734B9F7CEC01A70B110EA21845F6 | N/A | mock4 | |
0xE0F70DBF8F326DACFAD31611579ABE896C5B911F | N/A | mock5 | |
0xB2E492456C4443F480D797B377D18EEE0109FB73 | N/A | mock6 | |
0x9F6EA389417EFBC73E7869878121A5EE9BB335E9 | N/A | mock7 | |
0x8509232EECF789B9E1F8BCEDC4FBD8A8220FE795 | N/A | mock8 | |
0xF2A4D9BEE944F95799A79C1169F17E0536E89450 | N/A | mock9 |
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
/// @dev given a number get a slice of any bits, at certain offset | |
/// @param _n a number to be sliced | |
/// @param _nbits how many bits long is the new number | |
/// @param _offset how many bits to skip | |
function _sliceNumber(uint256 _n, uint256 _nbits, uint256 _offset) private pure returns (uint256) { | |
// mask is made by shifting left an offset number of times | |
uint256 mask = uint256((2**_nbits) - 1) << _offset; | |
// AND n with mask, and trim to max of _nbits bits | |
return uint256((_n & mask) >> _offset); | |
} |
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
d = { | |
"data": { | |
"points": { | |
"1367193600": { | |
"v": [ | |
144.5399932861328, | |
0, | |
1603768864.5, | |
1, | |
11095675.5153929 |
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
/*! | |
* Velocity.js: Accelerated JavaScript animation. | |
* @version 0.0.0 | |
* @requires jQuery.js | |
* @docs julian.com/research/velocity | |
* @license Copyright 2014 Julian Shapiro. MIT License: http://en.wikipedia.org/wiki/MIT_License | |
*/ | |
!function(e,t,a,r){function o(e){for(var t=-1,a=e?e.length:0,r=[];++t<a;){var o=e[t];o&&r.push(o)}return r}function i(e){return"[object Function]"===Object.prototype.toString.call(e)}function l(t){if(t)for(var a=(new Date).getTime(),o=0,i=e.velocity.State.calls.length;i>o;o++)if(e.velocity.State.calls[o]){var s=e.velocity.State.calls[o],g=s[0],d=s[2],f=s[3];f||(f=e.velocity.State.calls[o][3]=a-16);for(var y=Math.min((a-f)/d.duration,1),m=0,h=g.length;h>m;m++){var v=g[m],x=v.element;if(e.data(x,u)){var P=!1;d.display&&"none"!==d.display&&(p.setPropertyValue(x,"display",d.display),e.velocity.State.calls[o][2].display=!1);for(var b in v)if("element"!==b){var V=v[b],S=V.currentValue,k;if(1===y)k=V.endValue;else if(k=V.startValue+(V.endValue-V.startValue)*e.easing[V.easing](y),!/translate/i |
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
//https://tools.ietf.org/id/draft-msporny-base58-01.html | |
// N=10, search space = 4e17 | |
// N=18, search space = 5e31 | |
function rand58(length) { | |
const base = ('123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz').split('') | |
return Array.call(null, length).fill(0).map(() => base[Math.floor(Math.random() * 1e9) % base.length]).join('') | |
} |
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
const sleep = (seconds) => { | |
return new Promise((accept) => | |
setTimeout(accept, seconds * 1000, `slept ${seconds}`), | |
); | |
}; | |
async function execParallel() { | |
console.log(new Date(), 'starting'); | |
// promises will execute concurrently, so that execution time = slowest one (not the sum) | |
const out = await Promise.all([sleep(5), sleep(5), sleep(5)]); |
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
package main | |
import ( | |
"log" | |
"time" | |
) | |
type Kitty struct { | |
id uint | |
owner string |
NewerOlder