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
{ | |
widget: { | |
loadmask: 'Ext.LoadMask', | |
button: 'Ext.button.Button', | |
cycle: 'Ext.button.Cycle', | |
splitbutton: 'Ext.button.Split', | |
buttongroup: 'Ext.container.ButtonGroup', | |
viewport: 'Ext.container.Viewport', | |
flash: 'Ext.flash.Component', | |
checkboxgroup: 'Ext.form.CheckboxGroup', |
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
_und.each(this.collection, function (postmanRequest) { | |
var found = postmanRequest.name.match(/(\[loop=\d+\])/i); | |
if (found) { | |
found = found[0].substr(6, found[0].length - 7); | |
found = Number(found); | |
for(var i=0; i<found; i++) { | |
RequestRunner.addRequest(postmanRequest); |
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 FileExists(ByVal AFileName As String) As Boolean | |
On Error GoTo Catch | |
strFile = Dir(AFileName, MacID("TEXT")) | |
FileExists = True | |
GoTo Finally | |
Catch: |
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
// 実行アプリ名前空間取得 | |
let namespace = NSStringFromClass(self.dynamicType).componentsSeparatedByString(".")[0] | |
// 生成クラス名取得 | |
let clsName = namespace + ".MyViewController" | |
// ViewController生成 | |
var cls:UIViewController.Type = NSClassFromString(clsName) as! UIViewController.Type | |
var vc:UIViewController = (cls.init() as UIViewController) |
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
// http://www.sencha.com/forum/showthread.php?296296 | |
Ext.define('Ext.patch.EXTJS16164', { | |
// {{{ override | |
override: 'Ext.selection.CheckboxModel', | |
// }}} | |
// {{{ compatibility |
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
Ext.define('MyApp.overrides.util.Observable', { | |
override: 'Ext.util.Observable', | |
requires: [ | |
'Ext.mixin.Observable' | |
], | |
statics: { | |
capture: function(o, fn, scope) { | |
Ext.mixin.Observable.capture(o, fn, scope); | |
}, | |
releaseCapture: function(o) { |
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
" It's just write following code to your .vimrc. | |
" Last line specified keybind to "F8". | |
function! Extcute_ksdiff() "{{{ | |
let current_nr = winnr() | |
let bufnr = 1 | |
let leftwin = "" | |
let rightwin = "" | |
while bufnr <= winnr('$') | |
if getwinvar(bufnr, '&filetype') ==# 'vimfiler' |
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(path) { | |
var paths = path.split('.'), | |
current = window, | |
i, len; | |
len = paths.length; | |
for (i = 0; i < len; ++i) { | |
if (current[paths[i]] == undefined) { | |
return undefined; |
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 me = this, | |
p = me.getEditView(), | |
form = p.getForm(), | |
fn = p.api.remove; | |
if (typeof fn !== 'function') { | |
//<debug> | |
var fnName = fn; | |
//</debug> |
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
Ext.define('MyApp.form.Panel', { | |
extend: 'Ext.form.Panel', | |
initComponent: function() { | |
var me = this; | |
// スーパークラスメソッドコール | |
me.callParent(arguments); |