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
class FormValidator | |
attrs: | |
state: 'validation' | |
url: 'validation-url' | |
root: 'root' | |
options: | |
msgCls: 'b-input__error-message' | |
wrapperCls: 'b-input' |
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
grunt = require('grunt') | |
exec = require("child_process").exec | |
grunt.loadNpmTasks('grunt-shell') | |
request = require('request') | |
cheerio = require('cheerio') | |
grunt.registerTask 'check_status', (branch) -> | |
if branch = branch.replace(/^[\s]*|[\s]*$/, '') |
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 SWF = (function(root){ | |
var errors = { | |
wrong_instance : "new SWF($0): wrong argument type -> only Function and SWF object are acceptable", | |
wrong_args : "swf.define($0, $1): wrong argument type -> only non-empty String with Function or SWF object are acceptable", | |
name_collision : "swf.define($0, $1): name collision -> $0 is reserved", | |
alias_collision : "swf.makeAlias($0, $1): name collision -> $0.$2 exists", | |
forbidden : "swf.define($0, $1): forbidden wrapper -> wrapper must return function, but not $2", |
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
$ -> | |
UI.env('login_form.hint_cookie', 'login_first_msg_viewed') | |
if UI.env('user.authorized') | |
$.removeCookie UI.env('login_form.hint_cookie') | |
UI "signInForm", | |
###* | |
* FadeIn/Out animation spid | |
* @type {Number} |
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
[ | |
{ | |
"keys": [ | |
"super+t" | |
], | |
"command": "tab_filter", | |
"context": [ | |
{ | |
"key": "setting.command_mode" |
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
perl -pi.bak -e "use open ':std', ':encoding(UTF-8)'; s/Chrome\"/Chrome Canary\"/g" /Applications/Google\ Chrome\ Canary.app/Contents/Resources/ru.lproj/InfoPlist.strings > /dev/null 2>&1 |
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 php | |
<?php | |
# usage: ./patch kerbyfc origin/devel 'json|yml|js|html|yaml|rb|Gemfile|lock|coffee|png|jpg|ico|gif|txt|scss|css|stylus|cfg|md|map$' | |
$auth = $argv[1]; | |
$to = $argv[2]; | |
$grep = $argv[3]; | |
$preview_only = $argv[4]; |
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
"use strict" | |
App.Behaviors.Common ?= {} | |
###* | |
* Behavior to prevent data loss while navigation, it should be invoked | |
* with browser history state changes | |
* | |
* @note all passed options should be passed to ConfirmDialog view | |
* @note you should manually destroy view in #accept & #omit methods |
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
"use strict" | |
mousetrap = require "mousetrap" | |
module.exports = class FancyTreeBehavior extends Marionette.Behavior | |
###* | |
* Default options, that should be merged with | |
* constructor options argument, and then mixed to | |
* fancytree view |
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
( | |
(root, factory) -> | |
if typeof define is 'function' and define.amd | |
# AMD. Register as an anonymous module. | |
define [], factory | |
else if typeof exports is 'object' | |
# Node. Does not work with strict CommonJS, but | |
# only CommonJS-like environments that support module.exports, | |
# like Node. |
OlderNewer