Skip to content

Instantly share code, notes, and snippets.

View Mr-Kumar-Abhishek's full-sized avatar

Abhishek Kumar Mr-Kumar-Abhishek

View GitHub Profile
@Mr-Kumar-Abhishek
Mr-Kumar-Abhishek / jekyll-start.sh
Last active April 30, 2022 14:46
how to start jekyll for development
bundle install
bundle exec jekyll serve --incremental --trace
@Mr-Kumar-Abhishek
Mr-Kumar-Abhishek / byobuCommands
Created April 2, 2022 12:13 — forked from jshaw/byobuCommands
Byobu Commands
Byobu Commands
==============
byobu Screen manager
Level 0 Commands (Quick Start)
------------------------------
<F2> Create a new window
@Mr-Kumar-Abhishek
Mr-Kumar-Abhishek / .deps...remix-tests...remix_accounts.sol
Created March 1, 2022 15:56
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.6.5+commit.f956cc89.js&optimize=false&runs=200&gist=
// SPDX-License-Identifier: GPL-3.0
pragma solidity >=0.4.22 <0.9.0;
library TestsAccounts {
function getAccount(uint index) pure public returns (address) {
address[15] memory accounts;
accounts[0] = 0x5B38Da6a701c568545dCfcB03FcB875f56beddC4;
accounts[1] = 0xAb8483F64d9C6d1EcF9b849Ae677dD3315835cb2;
@Mr-Kumar-Abhishek
Mr-Kumar-Abhishek / .deps...remix-tests...remix_accounts.sol
Created March 1, 2022 15:09
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.8.7+commit.e28d00a7.js&optimize=false&runs=200&gist=
// SPDX-License-Identifier: GPL-3.0
pragma solidity >=0.4.22 <0.9.0;
library TestsAccounts {
function getAccount(uint index) pure public returns (address) {
address[15] memory accounts;
accounts[0] = 0x5B38Da6a701c568545dCfcB03FcB875f56beddC4;
accounts[1] = 0xAb8483F64d9C6d1EcF9b849Ae677dD3315835cb2;
https://discord.com/oauth2/authorize?scope=bot&permissions=8&client_id=YOUR_CLIENT_ID
@Mr-Kumar-Abhishek
Mr-Kumar-Abhishek / pass_props_stateless_functional_component.js
Last active November 16, 2021 22:11
Pass props to stateless functional component
const CurrentDate = (props) => {
return (
<div>
{ /* Change code below this line */ }
<p>The current date is: {props.date } </p>
{ /* Change code above this line */ }
</div>
);
};
@Mr-Kumar-Abhishek
Mr-Kumar-Abhishek / react_scratch.js
Created November 16, 2021 21:55
React component from scratch
class MyComponent extends React.Component {
constructor(props){
super(props);
}
render(){
return(
<h1>My First React Component!</h1>
);
}
@Mr-Kumar-Abhishek
Mr-Kumar-Abhishek / react_component_styles.js
Created November 16, 2021 21:33
react component styles
return (
<App>
<Navbar />
<Dashboard />
<Footer />
</App>
)
@Mr-Kumar-Abhishek
Mr-Kumar-Abhishek / stateless_functional_component.js
Last active November 16, 2021 22:14
Stateless functional component in React
const DemoComponent = function() {
return (
<div className='customClass' />
);
};
@Mr-Kumar-Abhishek
Mr-Kumar-Abhishek / react_component.js
Created November 16, 2021 21:17
Basic React Component
class Kitten extends React.Component {
constructor(props) {
super(props);
}
render() {
return (
<h1>Hi</h1>
);
}