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
| using System; | |
| using System.Collections.Generic; | |
| using System.Text; | |
| using System.Text.RegularExpressions; | |
| using CrystalDecisions.CrystalReports.Engine; | |
| using CrystalDecisions.Shared; | |
| using SSSWorld.Common; | |
| using System.IO; |
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
| var http = require('http'); | |
| var stdin = process.openStdin(); | |
| const PORT = 8080; | |
| function handleRequest(request, response) { | |
| console.log('Incoming request...'); | |
| body = ''; | |
| request.on('data', function(chunk) { | |
| body += chunk; | |
| }); |
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
| #cVim-link-container, .cVim-link-hint, #cVim-command-bar, #cVim-command-bar-mode, #cVim-command-bar-input, #cVim-command-bar-search-results, .cVim-completion-item, .cVim-completion-item .cVim-full, .cVim-completion-item .cVim-left, .cVim-completion-item .cVim-right, #cVim-hud, #cVim-status-bar { | |
| font-family: Helvetica, Helvetica Neue, Neue, sans-serif, monospace, Arial; | |
| font-size: 10pt !important; | |
| -webkit-font-smoothing: antialiased !important; | |
| } | |
| #cVim-link-container { | |
| position: absolute; | |
| pointer-events: none; | |
| width: 100%; left: 0; |
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
| (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'); |
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
| #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 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
| ! | |
| ! 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 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
| /* Loading spinner in dashboard widgets */ | |
| @keyframes circles-loader { | |
| 0% { | |
| transform: rotate(-720deg); | |
| } | |
| 50% { | |
| transform: rotate(720deg); | |
| } | |
| } |
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
| // 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 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
| 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 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
| // 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) |