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
| @echo off | |
| title Office2016 Retail to VOL | |
| if exist "%ProgramFiles%\Microsoft Office\Office16\ospp.vbs" cd /d "%ProgramFiles%\Microsoft Office\Office16" | |
| if exist "%ProgramFiles(x86)%\Microsoft Office\Office16\ospp.vbs" cd /d "%ProgramFiles(x86)%\Microsoft Office\Office16" | |
| cls |
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
| int str2hex(char *str, int len) { | |
| len = MIN(len, 8); | |
| int hex = 0; | |
| int bit = 0; | |
| for (int i = len - 1; i >= 0; i--) { | |
| int n; | |
| char ch = str[i]; | |
| if (ch >= '0' && ch <= '9') { | |
| n = ch - '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
| #!/usr/bin/env python3 | |
| # -*- coding: UTF-8 -*- | |
| import os | |
| import sys | |
| import platform | |
| def useage(): | |
| print("useage: bcompare_patch.py /path/to/BCompare") |
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
| #!/usr/bin/env bash | |
| set -e | |
| # Variable that will hold the name of the clang-format command | |
| FMT="" | |
| # Some distros just call it clang-format. Others (e.g. Ubuntu) are insistent | |
| # that the version number be part of the command. We prefer clang-format if | |
| # that's present, otherwise we work backwards from highest version to lowest |
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
| #import <UIKit/UIKit.h> | |
| NS_ASSUME_NONNULL_BEGIN | |
| @interface UIImage (Extension) | |
| + (instancetype)imageWithSize:(CGSize)size drawingHandler:(BOOL (^)(CGRect bounds))handler; | |
| + (instancetype)imageWithColor:(UIColor *)color; |
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
| #import <UIKit/UIKit.h> | |
| NS_ASSUME_NONNULL_BEGIN | |
| @interface UIColor (Extension) | |
| + (instancetype)colorWithRGB:(NSUInteger)value alpha:(CGFloat)alpha; | |
| @end |
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
| #!/bin/zsh | |
| styles=( \ | |
| abap \ | |
| algol \ | |
| algol_nu \ | |
| api \ | |
| arduino \ | |
| autumn \ | |
| borland \ | |
| bw \ |
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
| extension UIColor { | |
| static func hex(_ val: UInt) -> UIColor { | |
| var r: UInt = 0, g: UInt = 0, b: UInt = 0; | |
| var a: UInt = 0xFF | |
| var rgb = val | |
| if (val & 0xFFFF0000) == 0 { | |
| a = 0xF | |
| if val & 0xF000 > 0 { |
NewerOlder