Note: Run this script as the root user (no sudo calls are used in the script).
You will need the curl package installed, though I would have no idea why it wouldn't be installed by default:
zypper --non-interactive install curl
| (main)> bag = NanoStore::Bag.bag | |
| => #<NanoStore::Bag:0x8c930b0> | |
| (main)> NanoStore.shared_store.addObject(bag, error:nil) | |
| => true | |
| (main)> bag.setName "cars" | |
| => #<NanoStore::Bag:0x8c930b0> | |
| (main)> user = User.create(8, 'demo', 23, bag.name) | |
| => #<User:0x8c93800> | |
| (main)> user.save | |
| => #<User:0x8c93800> |
| class AppDelegate | |
| def application(application, didFinishLaunchingWithOptions:launchOptions) | |
| @window = UIWindow.alloc.initWithFrame(UIScreen.mainScreen.bounds) | |
| @window.rootViewController = ExampleViewController.alloc.init | |
| @window.makeKeyAndVisible | |
| true | |
| end | |
| end |
| #!/usr/bin/env sh | |
| ## | |
| # This is script with usefull tips taken from: | |
| # https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
| # | |
| # install it: | |
| # curl -sL https://raw.github.com/gist/2108403/hack.sh | sh | |
| # |