mofcomp %programfiles(x86)%\Microsoft SQL Server\:number\Shared\sqlmgmproviderxpsp2up.mofChange the :number with your version:
- 90 : MS SS 2005
- 100 : MS SS 2008
- 100 : MS SS 2008 R2
| #!/usr/bin/python | |
| from os import popen | |
| def main(): | |
| # Retrieve information for current renderer hw | |
| # it depends on `optimus-manager` package, you could download it on AUR. | |
| current_renderer = popen( | |
| "optimus-manager --print-mode").read().strip().split(":")[1].strip() |
| #include <ncurses.h> | |
| void onRender() { | |
| while (1) { | |
| mvprintw(0, 0, "Size: Cols(%d), Lines(%d)", COLS, LINES); | |
| switch (getch()) { | |
| case KEY_F(1): { | |
| return; | |
| }; |
| #include <cstdint> | |
| int main() { | |
| /** | |
| * Debugger: LLDB on x86_64 machine | |
| * | |
| * Assume that address of `a` is located at: 0x00007fffffffecf0 | |
| * Then for each element: | |
| * 1 -> 0x00007fffffffecf0 | |
| * 2 -> 0x00007fffffffecf0 + 2 |
| --- | |
| BasedOnStyle: Chromium | |
| AccessModifierOffset: '-4' | |
| AlignAfterOpenBracket: Align | |
| AlignConsecutiveMacros: 'true' | |
| AlignConsecutiveAssignments: 'false' | |
| AlignConsecutiveDeclarations: 'false' | |
| AlignTrailingComments: 'false' | |
| AllowAllArgumentsOnNextLine: 'false' | |
| AllowAllConstructorInitializersOnNextLine: 'true' |
| # | |
| # Djikstra's algorithm: The shortest path | |
| # @KennFatt | |
| # | |
| class Node(object): | |
| def __init__(self, identifier): | |
| self.__identifier = identifier | |
| self.__adjacents = {} |
| <?php | |
| declare(strict_types=1); | |
| function eraseImageContent(string $fileName) : void { | |
| $baseImage = imagecreatefrompng($fileName); | |
| $w = imagesx($baseImage); | |
| $h = imagesy($baseImage); | |
| imagedestroy($baseImage); |
| import java.util.Scanner; | |
| import java.util.Date; | |
| public class Laundry { | |
| // Jenis laundry | |
| private static final int JENIS_PAKAIAN = 0; | |
| private static final int JENIS_TAS = 1; | |
| private static final int JENIS_SEPATU = 2; | |
| private static final int JENIS_KARPET = 3; |
| <?php | |
| declare(strict_types=1); | |
| /** | |
| * Copy all fonts file from path `types` to `temp`. | |
| * This make me easier to install multiple fonts to the machine. | |
| */ | |
| /** @var $iterator \RecursiveIteratorIterator */ | |
| $iterator = new RecursiveIteratorIterator(new RecursiveDirectoryIterator("types")); |
| Program TypeSize; | |
| Uses sysutils; | |
| Var | |
| a : Byte; // u8 | |
| b : ShortInt; // i8 | |
| c : SmallInt; // i16 | |
| d : Word; // u16 | |
| e : Integer; // i16 or i32 (compiler depends, fpc use i16 by default) |