Skip to content

Instantly share code, notes, and snippets.

View k06a's full-sized avatar
🚀
DeFi dreamer

Anton Bukov k06a

🚀
DeFi dreamer
View GitHub Profile
@k06a
k06a / ERC888
Last active July 8, 2018 18:40 — forked from troverman/ERC888
ERC888-imporvement
contract MultidimensionalToken {
string public name;
string public symbol;
mapping (uint256 => string) internal tokenNames;
mapping (uint256 => string) internal tokenSymbols;
mapping (uint256 => uint8) internal tokenDecimals;
mapping (uint256 => mapping (address => uint)) internal balances;
@k06a
k06a / gist:6ab1c52b6c0d63a659e46bfb414b8f92
Created September 9, 2016 09:21 — forked from podkovyrin/fix_xcode_plugins.sh
Update XCode plugins compatibility id
find ~/Library/Application\ Support/Developer/Shared/Xcode/Plug-ins -name Info.plist -maxdepth 3 | xargs -I{} defaults write {} DVTPlugInCompatibilityUUIDs -array-add `defaults read /Applications/Xcode.app/Contents/Info DVTPlugInCompatibilityUUID`
@k06a
k06a / fizzbuzz.cpp
Last active May 25, 2016 05:57 — forked from bgaff/fizzbuzz.cpp
FizzBuzz C++: Template Recursion
/*
* fizzbuzz.cpp
*
* Created on: Apr 25, 2012
* Author: Brian Geffon
*
* Modified on: May 25, 2016
* Author: Anton Bukov
*
* fizzbuzz solved without looping or conditionals using only template recursion.
@k06a
k06a / Bike.m
Created April 28, 2016 18:33 — forked from mgamer/Bike.m
contentsRect animation
#import <QuartzCore/QuartzCore.h>
#import "Bike.h"
@implementation Bike {
}
- (id)initWithFrame:(CGRect)frame {
self = [super initWithFrame:frame];
@k06a
k06a / UIImage+ResizableFallback.m
Last active December 13, 2015 21:18 — forked from arbales/UIImage_ResizableFallback.m
Portable version of resizable UIImage constructor
@interface UIImage (ResizeableFallback)
- (UIImage *)resizableImageWithInsets:(UIEdgeInsets *)insets;
@end
@implementation
- (UIImage *)resizableImageWithInsets:(UIEdgeInsets *)insets
{
if ([UIImage respondsToSelector:@selector(resizableImageWithCapInsets:)])
return [self resizableImageWithCapInsets: insets];
return [self stretchableImageWithLeftCapWidth:insets.left topCapWidth:insets.top];
}