reg query "HKLM\Software\Microsoft\NET Framework Setup\NDP" /s /v version | findstr /i version | sort /+26 /r
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
| class Program | |
| { | |
| interface IPrinter | |
| { | |
| void Print(); | |
| } | |
| class InjectPrinter : IPrinter | |
| { | |
| public void Print() |
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
| export function parseQueryString() { | |
| const qs = decodeURIComponent(window.location.search.substring(1)).split('&'); | |
| const result = {}; | |
| for (const i in qs) { | |
| if (Object.prototype.hasOwnProperty.call(qs, i)) { | |
| const keyValue = qs[i].split('='); | |
| result[keyValue[0]] = keyValue[1]; | |
| } |
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
| <?php | |
| function flattenArray($source, $key = null) | |
| { | |
| $result = array(); | |
| if ($key) { | |
| array_walk_recursive($source, function ($v, $k) use ($key, &$result) { | |
| if ($k === $key) { | |
| $result[] = $v; |
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
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <title></title> | |
| <style> | |
| .lightbox { | |
| position: fixed; | |
| /* Remove default browser outline */ | |
| outline: none; |
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
| let lastScrollTop = 0 | |
| $(window).scroll(function(event) { | |
| const st = $(this).scrollTop() | |
| if (st > lastScrollTop) { | |
| // downscroll code | |
| } | |
| else { | |
| // upscroll code |
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 () { | |
| if (window.jQuery) { | |
| console.log('jQuery already loaded'); | |
| } else { | |
| var s = document.createElement('script'); | |
| s.setAttribute('type', 'text/javascript'); | |
| s.setAttribute('src', 'https://code.jquery.com/jquery.min.js'); | |
| document.body.appendChild(s); | |
| console.log('jQuery has been attached'); | |
| } |
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
| Helper.php | |
| === | |
| <?php | |
| class Helper | |
| { | |
| private static $instance; | |
| public static $alert; | |
| public function __construct() |
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
| <?php | |
| class Request | |
| { | |
| public static function get($input, $cleaning = true) | |
| { | |
| // global $db; | |
| $input = isset($_GET[$input]) ? $_GET[$input] : null; | |
| // if ($input && gettype($input) !== 'array') { | |
| // $input = $cleaning ? @$db->clean($input) : $input; |
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
| 'use strict'; | |
| const state = { | |
| a: { | |
| aa: { | |
| aaa: 'AAA' | |
| }, | |
| ab: { | |
| aab: 'AAB' | |
| } |
OlderNewer