Skip to content

Instantly share code, notes, and snippets.

View ZhukV's full-sized avatar
🏠
Working from home

Vitaliy Zhuk ZhukV

🏠
Working from home
View GitHub Profile
/**
ks0066.c - Working with LCD displays on based controllers KS0066
Author: Vitaliy Zhuk
*/
#include <util/delay.h>
#include "ks0066.h"
void lcdInit()
#import "UIScreen+ScreenBounds.h"
@implementation UIScreen (ScreenBounds)
+ (CGRect)screenBounds
{
CGRect screenBounds = [UIScreen mainScreen].bounds;
if(NSFoundationVersionNumber > NSFoundationVersionNumber_iOS_7_1){
return screenBounds;
+ (UIImage *)imageNamedWithoutCache:(NSString *)imagePath withMask:(NSString *)maskPath
{
UIImage *realImage = [self imageNamedWithoutCache:imagePath];
UIImage *maskImage = [self imageNamedWithoutCache:maskPath];
CGImageRef maskRef = maskImage.CGImage;
CGImageRef mask = CGImageMaskCreate(CGImageGetWidth(maskRef),
CGImageGetHeight(maskRef),
CGImageGetBitsPerComponent(maskRef),
@ZhukV
ZhukV / crash.log
Created May 28, 2015 17:06
Crash PHPStorm with undefined symbols
Process: phpstorm [20244]
Path: /Applications/PhpStorm.app/Contents/MacOS/phpstorm
Identifier: com.jetbrains.PhpStorm
Version: 8.0.3 (PS-139.1348)
Code Type: X86-64 (Native)
Parent Process: ??? [1]
Responsible: phpstorm [20244]
User ID: 501
Date/Time: 2015-05-28 20:05:52.713 +0300
@ZhukV
ZhukV / test.php
Last active August 31, 2016 06:45
<?php
$client = new Client();
$api = new Api($client);
$api->patient()->sendReceiptEmail($practiceId, $appointmentId, $paymentId, '[email protected]');
$api->appointment()->get($practiceId, $appointmentId);