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 PageRenderer = require('../js_modules/page_render'); | |
exports.index = function(req, res){ | |
res.send(PageRenderer.getPage(req.route.path)); | |
}; |
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
List<string> folderNames = Arrays.asList("Folder1", "Folder2", "..."); | |
List<string> userMails = Arrays.asList("user1@domain.com", "user2@domain.com", "..."); | |
String role = "reader"; // or "owner", "writer", "peeker", "none" | |
String appsName = "MyComp-MyApps-version"; | |
String username = "username"; | |
String password = "password"; | |
if(!role.equals("reader") | |
&& !role.equals("writer") | |
&& !role.equals("owner") |
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
namespace delme.ext | |
{ | |
public class CDelmeExt | |
{ | |
public string WhoAreYou(bool tellTruth) | |
{ | |
if (tellTruth) | |
{ | |
return "It's me, CDelmeExt, man!"; | |
} |
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
Assembly assembly = Assembly.LoadFrom(@"./delme.ext.dll"); | |
object instance = assembly.CreateInstance("delme.ext.CDelmeExt"); | |
Type delmeext = assembly.GetType("delme.ext.CDelmeExt"); | |
object res = | |
delmeext.InvokeMember( | |
"WhoAreYou", | |
BindingFlags.InvokeMethod | BindingFlags.Default, | |
null, | |
instance, | |
new object[] {true}); |
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
Assembly assembly = Assembly.LoadFrom(@"./delme.ext.dll"); | |
dynamic instance = assembly.CreateInstance("delme.ext.CDelmeExt"); | |
object res = instance.WhoAreYuo(true); | |
if (res is string) | |
MessageBox.Show((string)res); |
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
.entrypoint | |
.custom instance void [mscorlib]System.STAThreadAttribute::.ctor() = ( 01 00 00 00 ) | |
// Code size 95 (0x5f) | |
.maxstack 8 | |
.locals init ([0] class [mscorlib]System.Reflection.Assembly 'assembly', | |
[1] object 'instance', | |
[2] class [mscorlib]System.Type delmeext, | |
[3] object res, | |
[4] object[] CS$0$0000) | |
IL_0000: ldstr "./delme.ext.dll" |
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
.method private hidebysig static void Main() cil managed | |
{ | |
.entrypoint | |
.custom instance void [mscorlib]System.STAThreadAttribute::.ctor() = ( 01 00 00 00 ) | |
// Code size 123 (0x7b) | |
.maxstack 7 | |
.locals init ([0] class [mscorlib]System.Reflection.Assembly 'assembly', | |
[1] object 'instance', | |
[2] object res, | |
[3] bool CS$4$0000) |
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
Assembly assembly = Assembly.LoadFrom(@"./delme.ext.dll"); | |
object instance = assembly.CreateInstance("delme.ext.CDelmeExt"); | |
CSharpCallPayload payload = | |
new CSharpCallPayload( | |
RuntimeBinder.GetInstance(), | |
false, | |
false, | |
"WhoAreYou", | |
typeof(object), | |
null); |
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
<integration> | |
<microsoft> | |
<mouse> | |
<allow type="boolean">true</allow> | |
</mouse> | |
... | |
</microsoft> | |
</integration> |
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
<integration> | |
<microsoft> | |
<mouse> | |
<allow type="boolean">true</allow> | |
</mouse> | |
<components> | |
<host_time_sync> | |
<enabled type="boolean">false</enabled> | |
</host_time_sync> | |
</components> |
OlderNewer