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
// Example: buildSetup('src/Solution.sln', 'Project', 'Release', 'AnyCPU'); | |
function buildSetup(sln, vdproj, configuration, platform) { | |
sys.createRunner(jsmake.Fs.combinePaths(sys.getEnvVar('DevEnvDir', null), 'devenv.exe')) | |
.args(sln) | |
.args('/Build', [ configuration, platform ].join('|')) | |
.args('/Project', vdproj) | |
// .args('/Out', 'devenv_errors.txt') | |
.run(); | |
} |
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
qx.Class.define("MyClass", { | |
extend: qx.core.Object, | |
include: [qx.ui.core.MBlocker], | |
construct: function () { | |
this.base(arguments); | |
this.setBlockerColor("#D5D5D5"); // method from mixin | |
this.setBlockerOpacity(0.5); // method from mixin | |
} |
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
[Test] | |
public void Should_resolve_lazy_components() | |
{ | |
var container = new WindsorContainer(); | |
container.Register(Component.For<LazyOfTComponentLoader>()); | |
container.Register(Component.For<A>().LifeStyle.Transient); | |
var a = container.Resolve<A>(); // Ok | |
var lazyA = container.Resolve<Lazy<A>>(); // Fail |
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
/* | |
First problem: referencing direct action in proxies/FormPanels | |
When using Ext.Direct with either Ext.data.proxy.Direct or Ext.form.Basic, you have to specify the function directly, so the function MUST previously be defined by calling Ext.direct.Manager.addProvider. This is a problem because normally the call to addProvider comes after the config evaluation. | |
For example | |
*/ | |
Ext.create('Ext.data.proxy.Direct', { | |
api: { |
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
jsmake.git = {}; | |
jsmake.git.GitUtils = { | |
getLastCommitInfo: function (gitRepoPath) { | |
var git = new org.eclipse.jgit.api.Git(new org.eclipse.jgit.storage.file.FileRepository(jsmake.Fs.combinePaths(gitRepoPath, '.git'))); | |
var commit = git.log().call().iterator().next(); | |
return { | |
message: commit.getFullMessage(), | |
sha1: commit.getName(), | |
date: new Date(1000 * commit.getCommitTime()) | |
}; |
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
package com.github.gimmi.jsmake; | |
import org.mozilla.javascript.Context; | |
import org.mozilla.javascript.ContextAction; | |
import org.mozilla.javascript.ScriptableObject; | |
import org.mozilla.javascript.commonjs.module.Require; | |
import org.mozilla.javascript.tools.ToolErrorReporter; | |
import org.mozilla.javascript.tools.shell.Global; | |
import org.mozilla.javascript.tools.shell.QuitAction; | |
import org.mozilla.javascript.tools.shell.ShellContextFactory; |
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
jsmake.svn = {}; | |
jsmake.svn.SvnUtils = function () { | |
this._svnVersionPath = 'svnversion'; | |
}; | |
jsmake.svn.SvnUtils.prototype = { | |
isWorkingFolderClear: function (path) { | |
var version = this._svnVersion(path); | |
return !(version.modified || version.switched || version.partial || version.mixed); | |
}, |
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
private static T DefaultConverter<T>(IDataRecord rec) | |
{ | |
var obj = Activator.CreateInstance<T>(); | |
PropertyDescriptorCollection properties = TypeDescriptor.GetProperties(obj); | |
for(int i = 0; i < rec.FieldCount; i++) | |
{ | |
PropertyDescriptor property = properties.Find(rec.GetName(i), true); | |
object value = rec.GetValue(i); | |
if(property != null && value != DBNull.Value) | |
{ |
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
*.pyc |
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
import os, glob, shutil, subprocess | |
base_path = os.path.join(os.getcwd(), 'GesDB') | |
pkgs_path = os.path.join(base_path, 'packages') | |
os.path.relpath('c:\sviluppo\dir\packages', 'c:\sviluppo\dir') | |
for sln_path, directories, files in os.walk(base_path): | |
if not [f for f in files if f.lower().endswith(".sln")]: continue |
OlderNewer