Different services I can suggest when a non-tech friend or family member asks me how they can cheaply make a website and possibly use it to sell stuff online.
Website Hosting
| // Mocked Service | |
| angular.module('mock.users', []). | |
| factory('UserService', function($q) { | |
| var userService = {}; | |
| userService.get = function() { | |
| return { | |
| id: 8888, | |
| name: "test user" | |
| } |
| # -*- coding: utf-8 -*- | |
| $:.unshift("/Library/RubyMotion/lib") | |
| require 'motion/project' | |
| require 'motion-cocoapods' | |
| require 'bundler' | |
| Bundler.require | |
| Dir.glob('lib/tasks/*.rake').each { |r| import r } | |
| VERSION = "1.0.2" |
| (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 |
| # Just wanted to clarify my points at the meetup last night. | |
| # | |
| # There were two different issues intertwined: | |
| # (1) Whether to use extend or "include as extend" | |
| # (2) When using "include as extend", what is the simplest way to achieve the goal? | |
| # | |
| # My personal opinion is that the answer to (1) is "extend", not "include as extend", but that | |
| # is just my personal opinion. My answer to (2) is a more empirical question. | |
| # Using the "extend" approach. Again, I personally prefer the simplicity of this approach, but |
| #!/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 | |
| # |
Different services I can suggest when a non-tech friend or family member asks me how they can cheaply make a website and possibly use it to sell stuff online.
Website Hosting