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 { }; | |
| type GenericFunction = (...params: any[]) => any; | |
| type PromisifiedFunction<T extends GenericFunction> = (...params: Parameters<T>) => Promise<ReturnType<T>>; | |
| declare global { | |
| // tslint:disable-next-line:interface-name | |
| interface Function { | |
| leadingDebounce<T extends GenericFunction>(this: T, wait: number): PromisifiedFunction<T>; | |
| trailingDebounce<T extends GenericFunction>(this: T, wait: number): PromisifiedFunction<T>; |
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.ComponentModel; | |
| using System.Diagnostics; | |
| using System.IO; | |
| using System.Linq; | |
| using System.Runtime.InteropServices; | |
| using System.ServiceProcess; | |
| namespace RestartManager | |
| { |
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
| /* Remove the "Dashboard" from the admin menu for non-admin users ********************************** | |
| ** http://wordpress.stackexchange.com/questions/52752/hide-dashboard-from-non-admin-users ******* */ | |
| /* !관리자 아닌 회원 알림판 제거 & 리다이렉트 *********************************************************** */ | |
| function custom_remove_dashboard () { | |
| global $current_user, $menu, $submenu; | |
| get_currentuserinfo(); | |
| if( ! in_array( 'administrator', $current_user->roles ) ) { | |
| reset( $menu ); | |
| $page = key( $menu ); |
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
| internal class Nullable<T> | |
| { | |
| public static Nullable<T> Null = new Nullable<T>(); | |
| private readonly bool _hasValue; | |
| private Nullable() | |
| { | |
| _hasValue = false; | |
| } |
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 BlankStream | |
| { | |
| public static $methods = false; | |
| public $method = false; | |
| static function GeneratePath($callBack) | |
| { | |
| $args = array(); | |
| if (func_num_args() > 1) | |
| { | |
| $args = func_get_args(); |
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
| // ------------------------------------------------------------------------------------------ // | |
| // ABOUT | |
| // By DarkPlayer (IR) for CSGO | |
| // http://steamcommunity.com/id/darkplayer | |
| // | |
| // BASED ON | |
| // "Samer Sultan"'s Config: https://github.com/samersultan/csgo/blob/master/autoexec.cfg | |
| // "Budi"'s Config: https://gist.github.com/nickbudi/3916475 | |
| // SPEED SHOOT By "Mayron": http://csgo.gamebanana.com/scripts/7645 | |
| // VOICE SCALE By "Josh": http://css.gamebanana.com/scripts/6384 |