ctrl+\
,cmd-\
- показать скрыть деревоalt+\
,ctrl-0
- переместиться в дерево и обратноctrl+shift+c
- скопировать полный путь к файлуf2
- переименовать / переместитьd
- dublicate
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(); |
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
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
<!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
// 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
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
<VirtualHost *:80 *:443> | |
ServerName ruletka.plexdrop.ru | |
ServerAdmin webmaster@localhost | |
DocumentRoot /var/ruletka | |
<Directory /> | |
Options FollowSymLinks | |
AllowOverride All | |
</Directory> |
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
# README | |
# | |
# In order for this theme to render correctly, you will need a | |
# [Powerline-patched font](https://github.com/Lokaltog/powerline-fonts). | |
# | |
# In addition, I recommend the | |
# [Tomorrow Night theme](https://github.com/chriskempson/tomorrow-theme) and, if | |
# you're using it on Mac OS X, [iTerm 2](http://www.iterm2.com/) over | |
# Terminal.app - it has significantly better color fidelity. |
OlderNewer