UIScrollView with image resizing while you scroll up(made with constraints)
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
const minimumSleepTime = 4 | |
maximumSleepHoursByWeekdays = [8, 8, 8, 8, 12, 12, 8] | |
zIterator = 0 | |
zSymbols = ["Z", "Z", "Z", "z", "z", "z", "z", "z", ".", ".", ".", "\n"] | |
makeZzzzz = -> | |
if zIterator == zSymbols.length | |
zIterator := 0 |
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
#!/bin/sh | |
sudo npm cache clean -f | |
sudo npm install -g n | |
sudo n stable | |
node -v |
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
#!/bin/sh | |
history | awk '{a[$2]++ } END{for(i in a){print a[i] " " i}}'|sort -rn |head -n 10 |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title></title> | |
<script src="http://cdnjs.cloudflare.com/ajax/libs/socket.io/0.9.16/socket.io.min.js"></script> | |
</head> | |
<body> | |
<input id="messageToSend" type="" /> | |
<input type="button" value="send" onclick="send()" /> | |
<br /><br /><br /> |
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
// | |
// GLGLitchEffect.h | |
// Glitch | |
// | |
// Created by Igor on 27.08.14. | |
// Copyright (c) 2014 Igor Muzyka. All rights reserved. | |
// | |
#import <Foundation/Foundation.h> |
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
getVolume() { | |
osascript -e "output volume of (get volume settings)" | bc | |
} | |
alias gv=getVolume | |
setVolume() { | |
osascript -e "set volume output volume $1" | |
} |
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
// | |
// MMDirectionPanGestureRecognizer.h | |
// MMSimplifiedTransitions | |
// | |
// Created by Igor Muzyka on 8/3/14. | |
// Copyright (c) 2014 Igor Muzyka. All rights reserved. | |
// | |
#import <UIKit/UIKit.h> |
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
// | |
// AppDelegate.m | |
// AnimationExamplesiPhone | |
// | |
// Created by Eric Allam on 10/05/2014. | |
#import "AppDelegate.h" | |
#pragma mark - UIColor Additions |
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
#import <UIKit/UIKit.h> | |
@interface AppDelegate : UIResponder <UIApplicationDelegate> | |
@property (strong, nonatomic) UIWindow *window; | |
@end | |
OlderNewer