I hereby claim:
- I am hamin on github.
- I am harisamin (https://keybase.io/harisamin) on keybase.
- I have a public key ASACyIRY0fUPf2dfVGQ2rfvMEfEfcdGG0axDgVdSXV77qQo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
// | |
// ByteBuffer.swift | |
// mpush-client | |
// | |
// Created by OHUN on 16/6/3. | |
// Copyright © 2016年 OHUN. All rights reserved. | |
// | |
import Foundation |
I hereby claim:
To claim this, I am signing this object:
require "./points" | |
p1 = RustPoint::make_point(10, 10) # => #<Fiddle::Pointer:0x007f8231e56510 ptr=0x0000010b824000 size=0 free=0x00000000000000> | |
p2 = RustPoint::make_point(20, 20) # => #<Fiddle::Pointer:0x007f8231f20970 ptr=0x0000010b824010 size=0 free=0x00000000000000> | |
RustPoint::get_distance(p1, p2) # => 14.142135623730951 |
// Discussion on how to do custom cropping overlay on UIImageViewPicker | |
// https://gist.github.com/Raiden996/74ea67db8f17673f1b8b | |
func navigationController(navigationController: UINavigationController, willShowViewController viewController: UIViewController, animated: Bool) { | |
println("viewcontrollers count: \(navigationController.viewControllers.count)") | |
if navigationController.viewControllers.count == 3 { | |
println("viewcontrollers name: \(navigationController.viewControllers[2].classString())") | |
if (navigationController.viewControllers[2].classString() == "PUUIImageViewController") || (navigationController.viewControllers[2].classString() == "PLUIImageViewController") { | |
addOverlayToImagePicker(viewController) |
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
in_thread do | |
loop do | |
sample :drum_bass_hard, amp: 2 | |
sleep 2 | |
end | |
end | |
in_thread do | |
loop do | |
sleep 1 |
package main | |
import ( | |
"bufio" | |
"flag" | |
"fmt" | |
"io" | |
"net" | |
"net/textproto" | |
"os" |
#import <UIKit/UIKit.h> | |
@interface VerticalPeekingPagingLayout : UICollectionViewLayout | |
@property (readonly) NSInteger currentPage; | |
@property (assign, nonatomic) NSInteger startPage; | |
@property (nonatomic, assign) UIOffset offset; | |
@property (nonatomic, strong) NSDictionary *layoutInfo; | |
@end |