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
ko.openfiles.groupers.byPattern.patterns = [ | |
{ | |
name: 'Databases', | |
pattern: /\/databases(?:\/|$)/i | |
}, | |
{ | |
name: 'Scripts', | |
pattern: /\/scripts(?:\/|$)/i | |
}, | |
{ |
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
ko.openfiles.groupers.byPattern.patterns = [ | |
{ | |
name: 'Plat - %match% - config', | |
pattern: /\/skin\/plat\/([a-z0-9_-]*)\/_config\//i | |
}, | |
{ | |
name: 'Plat - %match%', | |
pattern: /\/skin\/plat\/([a-z0-9_-]*)\//i | |
}, | |
{ |
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
/** | |
* @fileoverview Auto completes curly braces to start on a new line - experimental | |
* @author Nathan Rijksen | |
* @version 0.1 | |
*/ | |
/** | |
* Komodo Extensions Namespace. | |
* This namespace was suggested by JeffG. More information is available at: | |
* {@link http://community.activestate.com/forum-topic/extension-s-namespace} |
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
(function() { | |
var sm = ko.views.manager.currentView.scimoz; | |
function selBraceContents() | |
{ | |
ko.commands.doCommand('cmd_selectToMatchingBrace'); | |
var selText = sm.selText; |
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 view = ko.views.manager.currentView; | |
var tabbox = view.parentNode; | |
while (tabbox && tabbox.nodeName != "tabbox" && tabbox.nodeName != "xul:tabbox") { | |
tabbox = tabbox.parentNode; | |
} | |
// Vertical tabs | |
tabbox.setAttribute("orient", "horizontal"); | |
tabbox.setAttribute("dir", "reverse"); | |
tabbox.tabs.setAttribute("orient", "vertical"); |
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 notify = require("notify/notify"); | |
var editor = require("ko/editor"); | |
/* Quickly thrown together, only supports Komodo 9 and GitHub */ | |
var koDoc = ko.views.manager.currentView.koDoc; | |
if ( ! koDoc || ! koDoc.file) return; | |
var uri = koDoc.file.URI; | |
var sccSvc = ko.scc.getServiceForUrl(uri); |
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
/** | |
* Original macro: http://community.activestate.com/forum/macro-quick-find-highlight | |
* Forked to fix API's for Komodo 7 and beyond | |
* | |
* Copyright (c) 2009 Stan Angeloff http://blog.angeloff.name | |
* | |
* Permission is hereby granted, free of charge, to any person | |
* obtaining a copy of this software and associated documentation | |
* files (the "Software"), to deal in the Software without | |
* restriction, including without limitation the rights to use, |
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
function flatten_array($array, $parents = '') | |
{ | |
if ( !is_array($array) AND !is_object($array)) | |
{ | |
return array($parents . $array); | |
} | |
$array = (array) $array; | |
$flat = array(); | |
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
function object_to_array($ob) | |
{ | |
if (!is_array($ob) AND !is_object($ob)) | |
{ | |
return $ob; | |
} | |
$ob = (array) $ob; | |
foreach ($ob AS $k => $v) |
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 | |
function renderYaml($result, $prefix = '', $indentation = 0, $ptype = '') | |
{ | |
$result = json_decode(json_encode($result)); // convert key based arrays to objects | |
$indent = $prefix; | |
for ($c=0;$c<$indentation; $c++) { | |
$indent = ' ' . $indent; |
OlderNewer