Skip to content

Instantly share code, notes, and snippets.

View sherzader's full-sized avatar
💭
pensive

SH Zada sherzader

💭
pensive
View GitHub Profile
import React from "react"
import ReactDOM from "react-dom"
class App extends React.PureComponent {
state = { blocks: {} }
handleDragStart = (e) => {
// find block in blocks and set isDragging property to true
const blockId = e.target.dataset.id
const block = { ...this.state.blocks[blockId] }
const width = 7;
const length = 7;
const totalMines = 4;
let numMinesOnBoard = 0;
const board = [];
function buildBoard() {
for (let row = 0; row < width; row++) {
board[row] = [];

Keybase proof

I hereby claim:

  • I am sherzader on github.
  • I am shrzdr (https://keybase.io/shrzdr) on keybase.
  • I have a public key ASBCSBGfXy0g3TEWqUoFj1mPLT8Wjz7KsNZh3ES4RW8JKwo

To claim this, I am signing this object:

render: function() {
var scroll_node = this.refs.blog;
if (scroll_node) {
scroll_node.scrollTop = 0;
}
return (...);
}
#name {
position: fixed !important;
top:0;
}
.show-about {
top: 0px;
animation: 2s ease-in slidein;
}