This is what I did to install all apps onto laptop
- Chrome
- iTerm
- Dropbox
- Atom
- Spotify
- Tweetbot
// --- vibrateDevice--------------- | |
value nme_vibrate_device() | |
{ | |
#ifdef WEBOS | |
VibrateDevice(); | |
return alloc_null(true); | |
#enif | |
} | |
DEFINE_PRIM(nme_vibrate_device,0); |
# Update the system | |
sudo yum update | |
# Install gcc, make, openssl, git | |
sudo yum install gcc-c++ make | |
sudo yum install openssl-devel | |
sudo yum install git | |
# Clone the git repo and build | |
git clone git://github.com/joyent/node.git |
#!/bin/bash | |
cd /Shared\ Items/Public/AUTO/project | |
BUILDDIR="/Shared Items/Public/AUTO/project_build" | |
NAME="Project" | |
CONFIGURATION="Ad Hoc" | |
API_TOKEN="..." | |
TEAM_TOKEN="..." |
# Xcode Crap | |
build/* | |
*.pbxuser | |
*.mode2v3 | |
*.mode1v3 | |
*.xcworkspace | |
xcuserdata | |
# OS Crap | |
.DS_Store |
Obj-c | |
find . -iname "*.m" -o -iname "*.h" -not -path "*/Pods/*" -not -path "*ThirdParty*" -exec wc -l '{}' + | |
Swift: | |
find . -iname "*.swift" -not -path "*/Pods/*" -not -path "*/Carthage/*" -not -path "*submodules*" -exec wc -l '{}' + |
cd ~ | |
mkdir bin | |
echo "export PATH=~/bin:$PATH" >> ~/.profile | |
ln -s "/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl" ~/bin/subl | |
#ifdef DEBUG | |
# define DLog(fmt, ...) NSLog((@"%s [Line %d] " fmt), __PRETTY_FUNCTION__, __LINE__, ##__VA_ARGS__); | |
#else | |
# define DLog(...) | |
#endif | |
#ifdef DEBUG | |
# define ULog(fmt, ...) { UIAlertView *alert = [[UIAlertView alloc] initWithTitle:[NSString stringWithFormat:@"%s\n [Line %d] ", __PRETTY_FUNCTION__, __LINE__] message:[NSString stringWithFormat:fmt, ##__VA_ARGS__] delegate:nil cancelButtonTitle:@"Ok" otherButtonTitles:nil]; [alert show]; } | |
#else | |
# define ULog(...) | |
#endif |
- (void)hideAdBannerViewAnimated:(BOOL)animated | |
{ | |
void (^animations)() = ^void() { | |
CGRect addBannerViewFrame = self.adBannerView.frame; | |
addBannerViewFrame.origin.y = self.view.frame.size.height; | |
self.adBannerView.frame = addBannerViewFrame; | |
}; | |
if (animated) { | |
[UIView animateWithDuration:0.3 delay:0.0 usingSpringWithDamping:1.0 initialSpringVelocity:1.0 options:UIViewAnimationOptionCurveEaseInOut animations:animations completion:nil]; |
NSArray *fontFamilies = [UIFont familyNames]; | |
for (int i = 0; i < [fontFamilies count]; i++) | |
{ | |
NSString *fontFamily = [fontFamilies objectAtIndex:i]; | |
NSArray *fontNames = [UIFont fontNamesForFamilyName:[fontFamilies objectAtIndex:i]]; | |
NSLog (@"%@: %@", fontFamily, fontNames); | |
} |