- Похищенный (Takken)
- Пропавшая комната (The Lost Room)
- Игра престолов (Game of Thrones)
- Фарго (Fargo)
- Черное зеркало (Black Mirror)
- Новый день (Day Break)
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
https://gist.github.com/isuvorov/794581a49a1dfdb126a436d5edd7e003 |
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 _ from 'lodash' | |
export default class Api{ | |
constructor(params){ | |
this.base = params.base | |
this.prefix = params.prefix | |
if(params.auth){ | |
this.setAuth(params.auth) |
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> | |
<head> | |
<meta charset="utf-8"/> | |
<title>Untitled benchmark</title> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/benchmark/1.0.0/benchmark.min.js"></script> | |
<script src="./suite.js"></script> | |
</head> | |
<body> | |
<h1>Open the console to view the results</h1> |
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 countLetters = function(s){ | |
var letters = {}; | |
for(var i = 0; i < s.length; i++){ | |
var letter = s[i]; | |
if(letter == " ") continue; | |
letters[letter] = (letters[letter] || 0) + 1; | |
} | |
return letters; | |
}; |
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 pool(callback, timeout){ | |
setTimeout(function(){ | |
callback(function(err){ | |
if(err) return false; // exit from pool | |
pool(callback, timeout); | |
}) | |
}, timeout); | |
} | |
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 function registration() | |
{ | |
$users = new User(); | |
$users->username = $this->service->getAttribute('name'); | |
$users->password = md5($this->service->getId()); | |
$users->email = $this->service->getServiceName() . '@services.ru'; | |
$users->save(); | |
$userlink = new Userlink(); |
NewerOlder