Skip to content

Instantly share code, notes, and snippets.

View JV17's full-sized avatar
๐Ÿ 
Working from home

Jorge JV17

๐Ÿ 
Working from home
View GitHub Profile
@JV17
JV17 / gist:1a9caed279570453c0b8
Last active August 29, 2015 14:17
Sorted Array of Link List
#include <iostream>
#include <algorithm>
using namespace std;
template <typename T>
class Node {
T _data;
Node *_next;
public:
@JV17
JV17 / gist:290034b1be2b9d9b933c
Created March 13, 2015 18:36
view with multiple table views in the view hierarchy for iOS 8
-(void)viewDidLayoutSubviews
{
if ([self respondsToSelector:@selector(topLayoutGuide)])
{
UIEdgeInsets currentInsets = self.myTableView.contentInset;
self.myTableView.contentInset = (UIEdgeInsets)
{
.top = self.topLayoutGuide.length,
.bottom = currentInsets.bottom,
.left = currentInsets.left,
/(youtu(?:\.be|be\.com)\/(?:.*v(?:\/|=)|(?:.*\/)?)([\w'-]+))/i
Tested examples:
http://www.youtube.com/user/Scobleizer#p/u/1/1p3vcRhsYGo
http://www.youtube.com/watch?v=cKZDdG9FTKY&feature=channel
http://www.youtube.com/watch?v=yZ-K7nCVnBI&playnext_from=TL&videos=osPknwzXEas&feature=sub
http://www.youtube.com/ytscreeningroom?v=NRHVzbJVx8I
http://www.youtube.com/user/SilkRoadTheatre#p/a/u/2/6dwqZw0j_jY
http://youtu.be/6dwqZw0j_jY
http://www.youtube.com/watch?v=6dwqZw0j_jY&feature=youtu.be