A Pen by Mikhail Baranov on CodePen.
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
Файл настройки: ~/.vimrc | |
Можно редактировать файлы через сеть, например | |
:e <scp|ftp|ftps>://user@host/path/to/the/file.txt | |
:Ex или :e ./ - файловый менеджер | |
hjkl перемещение в разные стороны | |
i режим вставки | |
I добавление в начало строки | |
a режим добавления | |
A добавление в конец строки |
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
{ | |
"requireCurlyBraces": [ "if", "else", "for", "while", "do", "try", "catch" ], | |
"requireSpaceAfterKeywords": [ "if", "else", "for", "while", "do", "switch", "return", "try", "catch" ], | |
"requireSpaceBeforeBlockStatements": true, | |
"requireParenthesesAroundIIFE": true, | |
"requireSpacesInConditionalExpression": true, | |
"requireSpacesInFunctionDeclaration": { "beforeOpeningCurlyBrace": true }, | |
"disallowSpacesInFunctionDeclaration": { "beforeOpeningRoundBrace": true }, | |
"requireMultipleVarDecl": true, | |
"requireBlocksOnNewline": true, |
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
/** | |
* Data collection class | |
* @param serialized | |
* @param promise | |
* @constructor | |
*/ | |
var Data = function(serialized, promise) { | |
serialized || (serialized = {}); | |
this._promise = promise; |
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 "webview.js" | |
*/ | |
window.OperaIce||(window.OperaIce={});OperaIce.Navigation||(OperaIce.Navigation={}); | |
OperaIce.Navigation.BodyClickNotifier=function(){this.lastClickEvent=null;this.onClick=function(b){if(b&&b.target){var a=b.target;if("INPUT"!=a.tagName.toUpperCase()||"submit"!=a.type.toLowerCase()&&"button"!=a.type.toLowerCase()){var a=this.targetRect(a),c=this.screenSize();this.lastClickEvent=b;OperaIce.WebView.performCallback("document-onclick",a,c)}}};this.register=function(){var b=this;document.addEventListener("click",function(a){b.onClick(a)},!1)};this.targetRect=function(b){var a=b.getBoundingClientRect(), | |
a={top:a.top,left:a.left,width:Math.round(a.width),height:Math.round(a.height)};try{for(;b=b.ownerDocument.defaultView.frameElement;){var c=getComputedStyle(b,null),d=b.getBoundingClientRect();a.top+=d.top+parseFloat(c.borderTopWidth)+parseFloat(c.paddingTop);a.left+=d.left+parseFloat(c.borderLeftWidth)+parseFloat(c.paddingLeft)}a.top=Math.round(a.top);a.left=Math.round(a.left)}catch |
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
==> default: Successfully added box 'hashicorp/precise64' (v1.1.0) for 'virtualbox'! | |
==> default: Importing base box 'hashicorp/precise64'... | |
There was an error while executing `VBoxManage`, a CLI used by Vagrant | |
for controlling VirtualBox. The command and stderr is shown below. | |
Command: ["import", "/Users/h4/.vagrant.d/boxes/hashicorp-VAGRANTSLASH-precise64/1.1.0/virtualbox/box.ovf", "--vsys", "0", "--vmname", "precise64_1411496426411_2197", "--vsys", "0", "--unit", "9", "--disk", "/Volumes/Truck/Users/h4/VirtualBox VMs/precise64_1411496426411_2197/box-disk1.vmdk"] | |
Stderr: 0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100% | |
Interpreting /Users/h4/.vagrant.d/boxes/hashicorp-VAGRANTSLASH-precise64/1.1.0/virtualbox/box.ovf... | |
OK. |
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
#!/usr/bin/env bash | |
LOG_FILE=/var/log/conver-new-raw.log | |
# echo "$# $%" >> $LOG_FILE | |
inotifywait -e delete -e create -r -m $1 | while read dir events file; do | |
filepath=$dir$file | |
previewpath=$dir"jpg/" | |
deletedpath=$previewpath"__deleted/" |
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
var stylus = require('stylus'); | |
var fs = require('fs'); | |
var str = fs.readFileSync('contacts/contacts.styl', {encoding: 'utf-8'}); | |
console.log(__dirname); | |
stylus(str) | |
.set('filename', __dirname + '/contacts/contacts.styl') | |
.define('url', stylus.url()) // Включает base64 |
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
UDEV [7270.882870] change /devices/pci0000:00/0000:00:1a.7/usb1/1-1/1-1:1.0/host6/target6:0:0/6:0:0:0/block/sdc (block) | |
ACTION=change | |
DEVLINKS=/dev/disk/by-id/usb-Generic_USB_SD_Reader_058F312D81B-0:0 /dev/disk/by-path/pci-0000:00:1a.7-usb-0:1:1.0-scsi-0:0:0:0 | |
DEVNAME=/dev/sdc | |
DEVPATH=/devices/pci0000:00/0000:00:1a.7/usb1/1-1/1-1:1.0/host6/target6:0:0/6:0:0:0/block/sdc | |
DEVTYPE=disk | |
DISK_MEDIA_CHANGE=1 | |
ID_BUS=usb | |
ID_INSTANCE=0:0 | |
ID_MODEL=USB_SD_Reader |
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
aggregator | |
block | |
blog | |
book | |
color | |
comment | |
contact | |
contextual | |
dashboard | |
dblog |
OlderNewer