i " вставить текст до курсора
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
| 'editor': | |
| 'showInvisibles': true | |
| 'invisibles': | |
| 'cr': '↩' | |
| 'eol': '' | |
| 'space': '·' | |
| 'tab': '⇥' |
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 Gallery = function($el, path, count) { | |
| this.iterator = 0; | |
| this.count = count; | |
| this.$el = $el; | |
| this.path = path; | |
| this.$img = this.$el.find('js-img'); | |
| // bind clicks | |
| this.$el.find('js-next-img').on('click', this.next.bind(this)); | |
| this.$el.find('js-prev-img').on('click', this.prev.bind(this)); | |
| } |
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 addLeadingZero = function (pos) { | |
| pos = pos + ''; | |
| while (position.length < 3) { | |
| position = '0' + position; | |
| } | |
| return pos; | |
| } |
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
Show hidden characters
| { | |
| "browser": true, | |
| "curly": true, | |
| "expr": true, | |
| "indent": false, | |
| "laxbreak": true, | |
| "maxcomplexity": 10, | |
| "maxdepth": 3, | |
| "maxparams": 4, | |
| "trailing": true, |
This is a post for those, who feels that Sprockets is not enough to structure his JS in a Rails app. If you’re not satisfied with #= require and window.Global mess, come under the cut.
CommonJS modules are a way of encapsulating and packaging up JavaScript files to ensure they’re name-spaced and loosely coupled, a crucial aspect to ensuring JavaScript code quality and maintainability.
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
| #IE6 - XP | |
| curl -O -L "http://www.modern.ie/vmdownload?platform=mac&virtPlatform=virtualbox&browserOS=IE6-WinXP&parts=0&filename=VMBuild_20131127/VirtualBox/ls/Mac/IE6.WinXP.For.MacVirtualBox.sfx" | |
| #IE8 – XP | |
| curl -O -L "http://www.modern.ie/vmdownload?platform=mac&virtPlatform=virtualbox&browserOS=IE8-WinXP&parts=2&filename=VMBuild_20131127/VirtualBox/IE8_WinXP/Mac/IE8.WinXP.For.MacVirtualBox.part{1.sfx,2.rar}" | |
| #IE7 – Vista | |
| curl -O -L "http://www.modern.ie/vmdownload?platform=mac&virtPlatform=virtualbox&browserOS=IE7-Vista&parts=4&filename=VMBuild_20131127/VirtualBox/IE7_Vista/Mac/IE7.Vista.For.MacVirtualBox.part{1.sfx,2.rar,3.rar,4.rar}" | |
| #IE8 – Win7 |
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
| "dependencies": { | |
| "async": "^0.9.0", | |
| "backbone": "~1.1.2", | |
| "backbone-undo": "^0.2.1", // Форкнул. Автор принял PR и я вернулся на официальную версию | |
| "debounce": "0.0.3", | |
| "extend": "~1.2.1", | |
| "jade": "~0.35.0", | |
| "jquery": "~2.1.0", | |
| "jquery-form": "git://github.com/shuvalov-anton/form", // Форкнул, жду пока автор пример PR | |
| "jquery-mousewheel": "~3.1.11", |
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
| [root@12time ~]# cat ./start_node | |
| #!/bin/bash | |
| export NODE_ENV=development | |
| export MONGODB=0.0.0.0/justchat-prod | |
| export HOST=82.146.58.73 | |
| export PORT=800 | |
| export PWD=/www/project | |
| supervisor /www/project/app.js | |
| [root@12time ~]# ./start_node |
Раздражает, что я ничего не могу сделать с треками, которые мне не нравятся в стриме sc. Их можно скрывать так
Можно плагином добавить кнопку крестика, удаляющего трек из стрима, он будет записывать url трека к себе в базу, а затем просто искать треки с урлами из базы при подгрузке стрима и скрывать их, примерно так:
$('a[href="/diversa/murkmusic"]').closest('.soundList__item').hide()