if you don't have macruby and hotcocoa already:
rvm use macruby
gem i hotcocoa
ok then you can run:
hotcocoa webviewbasic
| #!/bin/bash | |
| ### steps #### | |
| # Verify the system has a cuda-capable gpu | |
| # Download and install the nvidia cuda toolkit and cudnn | |
| # Setup environmental variables | |
| # Verify the installation | |
| ### | |
| ### to verify your gpu is cuda enable check |
| <?php | |
| // original source: http://kuwamoto.org/2007/12/17/improved-pluralizing-in-php-actionscript-and-ror/ | |
| /* | |
| The MIT License (MIT) | |
| Copyright (c) 2015 | |
| Permission is hereby granted, free of charge, to any person obtaining a copy |
| - (void)loadDefaultSettings | |
| { | |
| NSMutableDictionary *defaults = [NSMutableDictionary dictionaryWithContentsOfFile:[[NSBundle mainBundle] pathForResource:@"Default-Settings" ofType:@"plist"]]; | |
| // other setup... | |
| [[NSUserDefaults standardUserDefaults] registerDefaults:[NSDictionary dictionaryWithDictionary:defaults]]; | |
| } | |
| - (void)resetDefaultSettings |
| # monkey-patch irb. see: http://jameskilton.com/2009/04/02/embedding-irb-into-your-ruby-application/ | |
| # | |
| require 'irb' | |
| module IRB # :nodoc: | |
| def self.start_session(binding) | |
| unless @__initialized | |
| args = ARGV | |
| ARGV.replace(ARGV.dup) | |
| IRB.setup(nil) |