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
python C:\path\to\virtualenv\folder\Scripts\django-admin.py startproject projectname |
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
// This command downloads only one directory without 'parents' and includes cyrillic filenames | |
wget --page-requisites --restrict-file-names=nocontrol --no-parent -r -l 20 -e robots=off -U mozilla http://site.com |
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
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++ | |
FIND & REPLACE | |
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++ | |
Example: | |
/*------------------------------------------ | |
* Comment | |
*------------------------------------------*/ | |
Regex: |
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
Due to its folder nesting Windows can’t delete the folder as its name is too long. To solve this, install RimRaf: | |
[npm install rimraf -g] | |
and delete the node_modules folder easily with: | |
[rimraf node_modules] |
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
# Your init script | |
# | |
# Atom will evaluate this file each time a new window is opened. It is run | |
# after packages are loaded/activated and after the previous editor state | |
# has been restored. | |
# | |
# An example hack to log to the console when each text editor is saved. | |
# | |
# atom.workspace.observeTextEditors (editor) -> | |
# editor.onDidSave -> |
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
<?php | |
// Заголовок e-mail | |
switch ($_POST['subject']) { | |
case 'zvonok': | |
$subject = 'Обратный звонок'; | |
break; | |
case 'budjet': | |
$subject = 'Просчёт бюджета'; | |
break; |
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
purifycss src/css/main.css src/css/bootstrap.css src/js/main.js --min --info --out src/dist/index.css | |
==================================================================================================== | |
In example above the command will concat both main.css and bootstrap.css and purify it by looking at what CSS selectors were used inside of main.js. It will then write the result to dist/index.css | |
usage: purifycss <css> <content> [option ...] | |
options: | |
--min Minify CSS | |
--out [filepath] Filepath to write purified CSS to |
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
2016-09-17 12:35:05> Program: Starting Squirrel Updater: --download https://atom.io/api/updates?version=1.10.2 | |
2016-09-17 12:35:06> Program: Fetching update information, downloading from https://atom.io/api/updates?version=1.10.2 | |
2016-09-17 12:35:08> SingleGlobalInstance: Failed to grab lockfile, will retry: C:\Users\Grigoriy\AppData\Local\Temp\.squirrel-lock-B7C190BD54AF9728A704F75EEE3602DC045E16CD: System.IO.IOException: Процесс не может получить доступ к файлу "C:\Users\Grigoriy\AppData\Local\Temp\.squirrel-lock-B7C190BD54AF9728A704F75EEE3602DC045E16CD", так как этот файл используется другим процессом. | |
в System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) | |
в System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost) | |
в System.IO.FileStream..ctor(String path, FileMode mode, FileA |
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 lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
<title>Full-width 2GIS Map</title> | |
<style> | |
.map { | |
margin: 0; |
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
<!-- Битрикс24.Сайты. Вставить в head. --> | |
<script> | |
document.addEventListener("DOMContentLoaded", function(event) { | |
var whiteLabels = document.getElementsByClassName('bitrix-footer'), i; | |
for (var i = 0; i < whiteLabels.length; i ++) { | |
whiteLabels[i].style.display = 'none'; | |
} | |
}); | |
</script> |
OlderNewer