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
/// <summary> | |
/// Static class containing utilities to decrypt strings encrypted with the SLX RW EL | |
/// </summary> | |
public class SlxRwEl | |
{ | |
/// <summary> | |
/// Decode the specified data. | |
/// </summary> | |
/// <param name="data"></param> |
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 | |
// Execute with php -S 0.0.0.0:3000 to serve API | |
// And point the client to http://localhost:3000/cors-proxy.php/api | |
// | |
$path = $_SERVER['PATH_INFO']; | |
$base_url = MY_BASE_URL; | |
$url = $base_url . $path; | |
if(isset($_SERVER["QUERY_STRING"])) { | |
$url = $url . '?' . $_SERVER["QUERY_STRING"]; |
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
#set($stringObjectName = "${pagegenerator.FormName}${qfcontrol.ControlId}_Strings") | |
## -----------Column and Grid macros ----------------------------------------------- | |
#macro(doDefaultColParts $col) | |
field: '$col.DataField', | |
#if($col.TextFormatString != "") | |
displayFields: ['$col.DataField'], | |
displayFormatString: ${stringObjectName}['$generator.ConvertResourceKeyToScriptReference($col.getColResourceKey("FormatString"))'] || '$col.TextFormatString', | |
#end | |
#doHideCondition($col) | |
label: ${stringObjectName}['$generator.ConvertResourceKeyToScriptReference($col.getColResourceKey("ColumnHeading"))'] || '$col.ColumnHeading', |
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
// build a switch function that examines a key/value collection based on an object literal, | |
// and return the first match | |
// | |
// Example usage: | |
// ``` | |
// const result = switchBy({ | |
// entering: 'A', | |
// entered: 'B', | |
// default: 'C' | |
// })(props) |
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.Web; | |
namespace SSSWorld.CorsHelper | |
{ | |
public class CrossOriginSupportModule : IHttpModule | |
{ | |
public const string Options = "OPTIONS"; | |
public const string Origin = "Origin"; | |
public const string AccessControlRequestMethod = "Access-Control-Request-Method"; |
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
// xkbcomp map, for colemak layout | |
// - with the addition of the special layers accessible with Caps Lock, | |
// - and accented (French) layer with Right Alt | |
xkb_keymap { | |
xkb_keycodes "evdev+aliases(qwerty)" { | |
minimum = 8; | |
maximum = 255; | |
<ESC> = 9; | |
<AE01> = 10; |
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
/* Loading spinner in dashboard widgets */ | |
@keyframes circles-loader { | |
0% { | |
transform: rotate(-720deg); | |
} | |
50% { | |
transform: rotate(720deg); | |
} | |
} |
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
! | |
! xmodmap for the Colemak layout. | |
! 2006-01-01 Shai Coleman, http://colemak.com/ . Public domain. | |
keycode 49 = grave asciitilde dead_tilde asciitilde | |
keycode 10 = 1 exclam exclam onesuperior | |
keycode 11 = 2 at masculine twosuperior | |
keycode 12 = 3 numbersign ordfeminine threesuperior | |
keycode 13 = 4 dollar cent sterling | |
keycode 14 = 5 percent EuroSign yen |
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
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases. | |
#Warn ; Enable warnings to assist with detecting common errors. | |
#SingleInstance force | |
SendMode Input ; Recommended for new scripts due to its superior speed and reliability. | |
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory. | |
CapsLock & q:: Send, {\} | |
CapsLock & w:: Send, {=} | |
CapsLock & f:: Send, {[} | |
CapsLock & p:: Send, {]} |
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($) { | |
// Ajaxify links. | |
// $('a.xxx').ajaxLink('.where-to-load-new-content', | |
// '.where-to-display-loading-splash', | |
// 'html to display in loadingContainer (will be appended)', | |
// function to invoke when loading is complete) | |
$.fn.ajaxLink = function(containerSelector, loadingContainer, loadingHtml, callback) { | |
var $this = this; | |
$this.click(function() { | |
var href = $(this).attr('href'); |
NewerOlder