Skip to content

Instantly share code, notes, and snippets.

View hemant3370's full-sized avatar
๐Ÿ˜ƒ
Focusing

Hemant Singh hemant3370

๐Ÿ˜ƒ
Focusing
View GitHub Profile
//
// RBResizer.swift
// Locker
//
// Created by Hampton Catlin on 6/20/14.
// Copyright (c) 2014 rarebit. All rights reserved.
// Updated by Justin Winter on 11/29/15.
//
extension UIImage {
@hemant3370
hemant3370 / GIF-Screencast-OSX.md
Created April 28, 2016 05:20 — forked from dergachev/GIF-Screencast-OSX.md
OS X Screencast to animated GIF

OS X Screencast to animated GIF

This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.

Screencapture GIF

Instructions

To capture the video (filesize: 19MB), using the free "QuickTime Player" application:

@hemant3370
hemant3370 / popover.m
Created November 30, 2015 10:19
viewdidload with picker delegates
- (void)viewDidLoad {
[super viewDidLoad];
// Do any additional setup after loading the view.
[[self navigationController] setNavigationBarHidden:NO animated:NO];
pickerArray = [[NSArray alloc]init];
txtContent = [[NSString alloc]init];
__autoreleasing NSError* error = nil;
NSStringEncoding* enc = nil;
@hemant3370
hemant3370 / popover.m
Created November 30, 2015 10:16
popover initiation
-(void)countryPop{
UIViewController *countryContent = [[UIViewController alloc]init];
UIView *popDataPickerView = [[UIView alloc]init];
popDataPickerView.backgroundColor = [UIColor whiteColor];
UIPickerView *countryPicker = [[UIPickerView alloc]init];
self.countryList = [[UIPopoverController alloc]initWithContentViewController:countryContent];
self.countryList.delegate = self;
countryPicker.delegate=self;
countryPicker.dataSource = self;
http://www.devfright.com/uikitdynamics-sliding-menu/
@hemant3370
hemant3370 / 0_reuse_code.js
Created October 22, 2015 10:52
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console