This file contains hidden or 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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
This file contains hidden or 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) setAnchorPoint:(CGPoint)anchorPoint forView:(UIView *)view{ | |
CGPoint oldOrigin = view.frame.origin; | |
view.layer.anchorPoint = anchorPoint; | |
CGPoint newOrigin = view.frame.origin; | |
CGPoint transition; | |
transition.x = newOrigin.x - oldOrigin.x; | |
transition.y = newOrigin.y - oldOrigin.y; | |
view.center = CGPointMake (view.center.x - transition.x, view.center.y - transition.y); |
This file contains hidden or 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 | |
# directories | |
SOURCE="ffmpeg-2.5.2" | |
FAT="FFmpeg-Mac" | |
SCRATCH="scratch" | |
# must be an absolute path | |
THIN=`pwd`/"thin" |
This file contains hidden or 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 | |
# directories | |
SOURCE="ffmpeg-2.5.2" | |
FAT="FFmpeg-iOS" | |
SCRATCH="scratch" | |
# must be an absolute path | |
THIN=`pwd`/"thin" |
This file contains hidden or 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 | |
# directories | |
SOURCE="ffmpeg-2.5.2" | |
FAT="FFmpeg-Mac" | |
SCRATCH="scratch" | |
# must be an absolute path | |
THIN=`pwd`/"thin" |
This file contains hidden or 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/bash | |
DEVELOPER=`xcode-select -print-path` | |
SDK_VERSION="10.10" | |
LAMEDIR="/Users/fuzhiyang/Downloads/lame-3.99.5" | |
mkdir build | |
This file contains hidden or 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/bash | |
DEVELOPER=`xcode-select -print-path` | |
SDK_VERSION="8.1" | |
LAMEDIR="/Users/fuzhiyang/Downloads/lame-3.99.5" | |
mkdir build |
This file contains hidden or 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
# Mac | |
.DS_Store | |
# Xcode | |
build/* | |
*.pbxuser | |
!default.pbxuser | |
*.mode1v3 | |
!default.mode1v3 | |
*.mode2v3 |
This file contains hidden or 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
# =============== # | |
# Unity generated # | |
# =============== # | |
Temp/ | |
Library/ | |
# ===================================== # | |
# Visual Studio / MonoDevelop generated # | |
# ===================================== # | |
ExportedObj/ |
This file contains hidden or 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
### Objective-C ### | |
# OS X | |
.DS_Store | |
# Xcode | |
build/ | |
*.pbxuser | |
!default.pbxuser | |
*.mode1v3 | |
!default.mode1v3 |