Skip to content

Instantly share code, notes, and snippets.

View kanlanc's full-sized avatar
🏠
Working from home

Vikranth Kanumuru kanlanc

🏠
Working from home
View GitHub Profile
@kanlanc
kanlanc / install-docker.md
Last active June 23, 2021 18:43 — forked from npearce/install-docker.md
Amazon Linux 2 - install docker & docker-compose using 'sudo amazon-linux-extras' command

UPDATE (March 2020, thanks @ic): I don't know the exact AMI version but yum install docker now works on the latest Amazon Linux 2. The instructions below may still be relevant depending on the vintage AMI you are using.

Amazon changed the install in Linux 2. One no-longer using 'yum' See: https://aws.amazon.com/amazon-linux-2/release-notes/

Docker CE Install

Install docker with

sudo amazon-linux-extras install docker

### Keybase proof
I hereby claim:
* I am kanlanc on github.
* I am kanlanc (https://keybase.io/kanlanc) on keybase.
* I have a public key ASC2SlDl3r1-BapFPM06tKLTxgJl9T_BiO_k9mSU9G03GQo
To claim this, I am signing this object:
@kanlanc
kanlanc / Climatify.sol
Created December 10, 2018 16:03
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.5.0+commit.1d4f565a.js&optimize=false&gist=
pragma solidity >0.4.99 <0.6.0;
contract InsuranceClaimFactory{
address public claimer;
InsuranceClaim[] public deployedInsuranceClaim;
function createInsuranceClaim () public {
InsuranceClaim newInsuranceClaim = new InsuranceClaim(msg.sender);
deployedInsuranceClaim.push(newInsuranceClaim);
}
@kanlanc
kanlanc / Climatify.sol
Created December 10, 2018 10:45
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.5.0+commit.1d4f565a.js&optimize=false&gist=
pragma solidity >0.4.99 <0.6.0;
contract InsuranceClaimFactory{
address public claimer;
InsuranceClaim[] public deployedInsuranceClaim;
function createInsuranceClaim () public {
InsuranceClaim newInsuranceClaim = new InsuranceClaim(msg.sender);
deployedInsuranceClaim.push(newInsuranceClaim);
}
@kanlanc
kanlanc / Climatify.sol
Created December 8, 2018 20:02
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.5.0+commit.1d4f565a.js&optimize=false&gist=
pragma solidity >0.4.99 <0.6.0;
contract InsuranceClaimFactory{
address public claimer;
InsuranceClaim[] public deployedInsuranceClaim;
function createInsuranceClaim () public {
InsuranceClaim newInsuranceClaim = new InsuranceClaim(msg.sender);
deployedInsuranceClaim.push(newInsuranceClaim);
}
@kanlanc
kanlanc / 01_load_basic.js
Last active October 19, 2018 17:39 — forked from zadvorsky/01_load_basic.js
Three.js Promise Loading
const material = new THREE.MeshStandardMaterial({
map: new THREE.TextureLoader().load('map.jpg'),
normalMap: new THREE.TextureLoader().load('normalMap.jpg')
});
const loader = new THREE.JSONLoader();
loader.load('geometry.json', geometry => {
const mesh = new THREE.Mesh(geometry, material);