This file contains hidden or 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
| class MyComponent extends React.Component { | |
| constructor(props) { | |
| super(props); | |
| this.state = { | |
| users: [ | |
| { | |
| username: 'Jeff', | |
| online: true | |
| }, | |
| { |
This file contains hidden or 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
| { | |
| "quotes": [ | |
| { | |
| "quote": "Life isn’t about getting and having, it’s about giving and being.", | |
| "author": "Kevin Kruse", | |
| "url": "life-isnt-about-getting-and-having-its-about-giving-and-being" | |
| }, | |
| { | |
| "quote": "Whatever the mind of man can conceive and believe, it can achieve.", | |
| "author": "Napoleon Hill", |
This file contains hidden or 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
| var called = 0; | |
| var hash = string => { | |
| called++; | |
| var hash = 0; | |
| for (var i = 0; i < string.length; i++) { | |
| hash += string.charCodeAt(i); | |
| } | |
| return hash; | |
| }; | |
| var HashTable = function() { |
This file contains hidden or 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
| [ | |
| { | |
| "movie_title": "Avatar ", | |
| "director_name": "James Cameron", | |
| "actor_1_name": "CCH Pounder", | |
| "actor_2_name": "Joel David Moore", | |
| "genres": "Action|Adventure|Fantasy|Sci-Fi", | |
| "language": "English", | |
| "country": "USA", | |
| "content_rating": "PG-13", |
This file contains hidden or 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
| [ | |
| { | |
| "movie_title": "Avatar ", | |
| "director_name": "James Cameron", | |
| "actor_1_name": "CCH Pounder", | |
| "actor_2_name": "Joel David Moore", | |
| "genres": "Action|Adventure|Fantasy|Sci-Fi", | |
| "language": "English", | |
| "country": "USA", | |
| "content_rating": "PG-13", |
This file contains hidden or 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
| /* | |
| ##Device = Desktops | |
| ##Screen = 1281px to higher resolution desktops | |
| */ | |
| @media (min-width: 1281px) { | |
| //CSS | |
This file has been truncated, but you can view the full file.
This file contains hidden or 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
| { | |
| "data": [ | |
| { | |
| "s_no": "1", | |
| "district": "Thiruvallur", | |
| "village_panchayat": "Thiruvallur", | |
| "school_name": "MUNICIPAL MIDDLE SCHOOL", | |
| "school_id": "33010105701", | |
| "category_of_school": "Secondary School", | |
| "yearof_establishment": "1940", |
This file contains hidden or 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
| import React, { Component } from 'react'; | |
| import DevTools from 'mobx-react-devtools'; | |
| import Konva from 'konva'; | |
| import {Stage, Layer, Rect, Line, Image} from 'react-konva'; | |
| import Img from './Img/Img.js'; | |
| import './App.css'; | |
| import pg from '../assets/scribo-doc-dia-00008061.json' | |
| console.log(pg); |
This file contains hidden or 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
| Array.prototype.myFlat = function (depth) { | |
| function getFlattenedArr(arr) { | |
| let res = []; | |
| let isSpreaded = false; | |
| for (let value of arr) { | |
| if (Array.isArray(value)) { | |
| isSpreaded = true; | |
| res.push(...value); | |
| } else { | |
| res.push(value); |
This file contains hidden or 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
| function chunk(arr, chunkSize) { | |
| let result = []; | |
| function getChunkedArr(arrToChunk) { | |
| let res = []; | |
| for(let i = 0; i < arrToChunk.length; i++) { | |
| res.push(arrToChunk[i]); | |
| } | |
| return res; | |
| } |
OlderNewer