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'; | |
class ObjectName extends Component { | |
render() { | |
return ( | |
<div className="ObjectName"> | |
Hello, World! | |
</div> | |
); | |
} |
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
#!/bin/sh | |
sudo sysctl -w net.inet.ip.ttl=65 |
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
// Server.call('GET', 'getVkData', { id: -145636 }) | |
// Server.call('POST', 'postVkData', { id: -145636 }) | |
const MAIN_API_PATH = "http://dune.com/bar/"; | |
class Server { | |
static call(httpMethod, apiMethod, params = {}) { | |
let fetchParams = { | |
headers: { "Content-Type": "application/json" }, | |
mode: "cors", |
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 { Line } from 'react-chartjs-2'; | |
import './App.css'; | |
class App extends Component { | |
... | |
render() { | |
const data = { |
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
render() { | |
return ( | |
<div className="container"> | |
{this.props.description !== undefined && this.props.description !== '' && | |
<div className="description"> | |
{this.props.description} | |
</div> | |
} | |
</div> | |
); |
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
<!doctype html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> | |
<meta name="theme-color" content="#000000"> | |
<link rel="manifest" href="%PUBLIC_URL%/manifest.json"> | |
<link rel="shortcut icon" href="%PUBLIC_URL%/favicon.ico"> | |
<title>React App</title> | |
</head> |
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
public double getPointDistance(int x1, int y1, int x2, int y2) | |
{ | |
return Math.Pow(x1 - x2, 2) + Math.Pow(y1 - y2, 2); | |
} |
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
export const CONST_EXAMPLE = 0; | |
class ClassName { | |
static method() { | |
return 'Hello'; | |
} | |
} | |
export default ClassName; |
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
const path = require('path'); | |
module.exports = { | |
entry: { | |
index: './src/index.js', | |
background: './bck/background.js' | |
}, | |
output: { | |
path: path.resolve('build'), | |
filename: '[name].bundle.js' |
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
// checkDomain('https://www.instagram.com/bizunow/', 'www.instagram.com') // === true | |
// checkDomain('https://www.google.ru/', 'www.instagram.com') // === false | |
// checkDomain('Test test test', 'www.instagram.com') // === false | |
function checkDomain(url, domain) { | |
var a = document.createElement('a'); | |
a.href = url; | |
return a.hostname == domain; | |
} |
OlderNewer