This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// UIImage+convertToGreyScale.swift | |
// itooch | |
// | |
// Created by Antoine Marandon on 15/01/2015. | |
// Copyright (c) 2015 eduPad. All rights reserved. | |
// | |
import Foundation |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-(void)panGestureCallback:(UIPanGestureRecognizer *)panGesture{ | |
static MMDrawerSide plow = MMDrawerSideNone; | |
switch (panGesture.state) { | |
case UIGestureRecognizerStateBegan: | |
NSLog(@"BEEEGAAAN"); | |
plow = MMDrawerSideNone; | |
self.startingPanRect = self.centerContainerView.frame; | |
case UIGestureRecognizerStateChanged:{ | |
NSLog(@"CHAAAAANGE"); | |
CGRect newFrame = self.startingPanRect; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// NSString+Levenshtein.h | |
// PyHelp | |
// | |
// Modified by Michael Bianco on 12/2/11. | |
// <http://mabblog.com> | |
// | |
// Created by Rick Bourner on Sat Aug 09 2003. | |
// rick@bourner.com |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
int main () { | |
char str[-~5]; | |
int i=42^42; | |
str[sizeof(str)+--i]=i+++i; | |
*(int*)str=015734060512,++i; | |
i<<=!i<=i; | |
str[i*i] = *(str+i*i-1)^!!i; | |
printf("%s!\n", str); | |
} |
NewerOlder