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
private Dictionary<string, Type> typeCache = new Dictionary<string, Type>(); | |
public bool TryFindType(string typeName, out Type t) | |
{ | |
lock (typeCache) | |
{ | |
if (!typeCache.TryGetValue(typeName, out t)) | |
{ | |
t = Type.GetType(typeName); | |
if (t == 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
/*! | |
* Ext JS Library 3.2.1 | |
* Copyright(c) 2006-2010 Ext JS, Inc. | |
* licensing@extjs.com | |
* http://www.extjs.com/license | |
*/ | |
Ext.ns('Ext.ux.form'); | |
/** | |
* @class Ext.ux.form.HtmlTableEditor |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta name="viewport" content="initial-scale=1.0, user-scalable=no" /> | |
<style type="text/css"> | |
html { height: 100% } | |
body { height: 100%; margin: 0px; padding: 0px } | |
</style> | |
<script type="text/javascript" | |
src="http://maps.google.com/maps/api/js?sensor=false"> |
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
Thread thread = new Thread(() => | |
{ | |
try | |
{ | |
<func_name>(<func_parms>); | |
} | |
catch (Exception ex) { <exception_handling> } | |
}); | |
thread.Start(); |
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
public static ICommand GetCommand(HttpRequest httpRequest) | |
{ | |
try | |
{ | |
return ((ICommand)Activator.CreateInstance(Type.GetType(string.Format("{0}.Cmd{1}", MethodBase.GetCurrentMethod().DeclaringType.Namespace, httpRequest.Headers["Command"])))).Init(httpRequest); | |
} | |
catch (Exception ex) | |
{ | |
return new Command(ex); | |
} |
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
// if (IsAsyncUploadAllowed(oAct, encAttachsToUpload) && BroadcastAsyncUploadAttachments(encAttachsToUpload)) | |
// { | |
// COlUIHandler.OnAllAttachUploadedComplete(null, new AttachUploadedEventArgs(false, null)); | |
// return; | |
// } | |
private static bool IsAsyncUploadAllowed(CActivation activation, CEncoding attachments) | |
{ | |
if (activation.pen.penProfile.useAsyncUpload) | |
{ |
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
public static class CAutoStartUtils | |
{ | |
public static string exePath | |
{ | |
get | |
{ | |
return (ApplicationDeployment.IsNetworkDeployed) ? Path.Combine(CDeploymentInfo.AppPath, exeName) : Assembly.GetExecutingAssembly().Location; | |
} | |
} |
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
public static class CContextMenu | |
{ | |
public static string Name | |
{ | |
get { return "Send File Securely"; } | |
} | |
public static string Command | |
{ | |
get { return string.Format("{0}\"{1}\" \"%1\"", (ApplicationDeployment.IsNetworkDeployed) ? "cmd.exe /c " : string.Empty, exePath); } |
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
<html> | |
<body onload="Test()"> | |
<script> | |
function Filter(dictionary, letter, pos){ // Return a subset of words containing letter @ pos | |
var result = []; | |
for(idx in dictionary){ | |
var word = dictionary[idx]; | |
if (word[pos] == letter){ | |
result.push(word); |
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
using System; | |
using System.Linq; | |
using System.Security.Cryptography; | |
using System.Text; | |
namespace Logon.IdPx.Shopify | |
{ | |
// https://shopify.dev/api/admin/rest/reference/plus/multipass | |
// https://bitbucket.org/logonlabs/breadbutter-shopify-poc/src/master/shopify/multipass.js | |
// https://stackoverflow.com/questions/44782910/aes128-decryption-in-c-sharp |
OlderNewer