Skip to content

Instantly share code, notes, and snippets.

View logankilpatrick's full-sized avatar
🤹
Juggling many things - please be patient

Logan Kilpatrick logankilpatrick

🤹
Juggling many things - please be patient
View GitHub Profile

This is a test gist!

@logankilpatrick
logankilpatrick / helpdesk.md
Created January 14, 2021 01:26
Bridging the JuliaLang Slack Helpdesk to Discourse

TLDR; Realized we can use Zapier to do a Discourse post each time someone posts in Helpdesk, https://discourse.julialang.org/c/testing/54 (ping Matt if you can't access this).

All posts will be posted to a new Slack Bridge section where posts are by default wiki's so we can ensure that they are editable by everyone (this doesn't have to be the case but helps with maintainability, we can also look at privilege levels and who can edit these). The other option would be to expand the # of users with mod privileges to help with this influx of potential work.

Proposed course of action:

  • make a bot discourse user where the messages will come from
  • post an @ channel message notifying folks that we are bridging help desk
  • discourse post after we are setup/if this all ends up working
  • I and hopefully others can hand around Helpdesk for a few weeks more actively to gently remind folks to use threads when possible (so we don’t port over incomplete questions).
  • monitor the health of this and iterate as needed
@logankilpatrick
logankilpatrick / Bank.sol
Created March 11, 2021 14:58
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.7.4+commit.3f05b770.js&optimize=false&runs=200&gist=
// SPDX-License-Identifier: GPL-3.0
pragma solidity >=0.7.0 <0.8.0;
contract Bank {
address private owner;
mapping (address => uint) private balances;
@logankilpatrick
logankilpatrick / Bank.sol
Created March 11, 2021 15:30
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.7.4+commit.3f05b770.js&optimize=false&runs=200&gist=
// SPDX-License-Identifier: GPL-3.0
pragma solidity >=0.7.0 <0.8.0;
contract Bank {
address private owner;
mapping (address => uint) private balances;
@logankilpatrick
logankilpatrick / AverageStream.sol
Created March 13, 2021 18:48
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.7.4+commit.3f05b770.js&optimize=false&runs=200&gist=
// SPDX-License-Identifier: GPL-3.0
pragma solidity >=0.7.0 <0.8.0;
contract AverageStream {
uint private count;
uint private pre_average;
uint public decimal;
@logankilpatrick
logankilpatrick / AverageStream.sol
Created March 14, 2021 16:23
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.7.4+commit.3f05b770.js&optimize=false&runs=200&gist=
// SPDX-License-Identifier: GPL-3.0
pragma solidity >=0.7.0 <0.8.0;
contract AverageStream {
uint private count;
uint private pre_average;
uint public decimal;
@logankilpatrick
logankilpatrick / AverageStream.sol
Created March 14, 2021 18:57
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.7.4+commit.3f05b770.js&optimize=false&runs=200&gist=
// SPDX-License-Identifier: GPL-3.0
pragma solidity >=0.7.0 <0.8.0;
contract AverageStream {
uint private count;
uint private pre_average;
uint public decimal;
@logankilpatrick
logankilpatrick / AverageStream.sol
Created March 14, 2021 23:35
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.7.4+commit.3f05b770.js&optimize=false&runs=200&gist=
// SPDX-License-Identifier: GPL-3.0
pragma solidity >=0.7.0 <0.8.0;
contract AverageStream {
uint private count;
uint private pre_average;
uint public decimal;
@logankilpatrick
logankilpatrick / AverageStream.sol
Created March 14, 2021 23:35
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.7.4+commit.3f05b770.js&optimize=false&runs=200&gist=
// SPDX-License-Identifier: GPL-3.0
pragma solidity >=0.7.0 <0.8.0;
contract AverageStream {
uint private count;
uint private pre_average;
uint public decimal;
@logankilpatrick
logankilpatrick / AverageStream.sol
Created March 15, 2021 01:00
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.7.4+commit.3f05b770.js&optimize=false&runs=200&gist=
// SPDX-License-Identifier: GPL-3.0
pragma solidity >=0.7.0 <0.8.0;
contract AverageStream {
uint private count;
uint private pre_average;
uint public decimal;