This file contains 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
<!-- particles.js container --> | |
<div id="particles-js"></div> <!-- stats - count particles --> <div class="count-particles"> <span class="js-count-particles">--</span> particles </div> <!-- particles.js lib - https://github.com/VincentGarreau/particles.js --> <script src="http://cdn.jsdelivr.net/particles.js/2.0.0/particles.min.js"></script> <!-- stats.js lib --> <script src="http://threejs.org/examples/js/libs/stats.min.js"></script> |
This file contains 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
contract DenCoin { | |
uint256 public totalSupply; | |
event Transfer(address indexed _from, address indexed _to, uint256 _value); | |
event Approval(address indexed _owner, address indexed _spender, uint256 _value); | |
uint256 constant private MAX_UINT256 = 2**256 - 1; | |
mapping (address => uint256) public balances; | |
mapping (address => mapping (address => uint256)) public allowed; | |
This file contains 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 { Observable, BehaviorSubject } from 'rxjs'; | |
import { distinctUntilChanged } from 'rxjs/operators'; | |
export class Store<T> { | |
state$: Observable<T>; | |
private _state$: BehaviorSubject<T>; | |
protected constructor(initialState: T) { | |
this._state$ = new BehaviorSubject(initialState); | |
this.state$ = this._state$ |
This file contains 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 from 'react'; | |
import ReactDOM from 'react-dom'; | |
import { Subject } from 'rxjs'; | |
import { startWith, scan } from 'rxjs/operators' | |
// create our stream as a subject so arbitrary data can be sent on the stream | |
const action$ = new Subject(); | |
// Initial State | |
const initState = { name: 'Harry' }; |
This file contains 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> | |
<head> | |
<meta charset="utf-8" /> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<title>Test tasl</title> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<link rel="stylesheet" type="text/css" media="screen" href="main.css" /> | |
</head> |
This file contains 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 numpy | |
import matplotlib.pyplot as plt | |
print("Введите X_min") | |
xmin=int(input()) | |
print("Введите X_max") | |
xmax=int(input()) | |
xcoords = numpy.arange(xmin, xmax+1, 0.1) |
This file contains 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
object Main extends App { | |
def identity[T](value: T): T = value | |
class Box[T] { | |
self => | |
var value: Option[T] = None | |
def save(arg: T): Unit = value = Some(arg) | |
def get: T = value.get |
This file contains 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
object Main extends App { | |
val counterFunc: () => Int = { | |
var count = 0 | |
() => { | |
count = count + 1 | |
val returnVal = count | |
returnVal | |
} | |
} | |
This file contains 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
object Main extends App { | |
def processList1(list: List[(Int, Int)]): List[Option[Double]] = | |
list.map(elem => { | |
val (c, z) = elem | |
z match { | |
case 0 => None | |
case _ => Some(c*1.0/z) | |
} | |
}) |
This file contains 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
# Анализ популярности операционных систем Unix | |
# Автор: denismaster | |
# Github: denismaster | |
# Лицензия: MIT | |
# In[1]: | |
# Импорт библиотек для работы с данными | |
import pandas as pd | |
import numpy as np | |
import matplotlib.pylab as plt |
NewerOlder