#Test Page
Here is how to use the Test Pages macro: <<Test("One", "Two", "Three Four Five")>>
And again for your convenience:
<<Test("One", "Two", "Three Four Five")>>| //Compile With: valac --thread --pkg gtk+-3.0 TestApp.vala | |
| using Gtk; | |
| public class TestBar : Gtk.HeaderBar{ | |
| private unowned TestWindow main_window; | |
| public TestBar(TestWindow parent){ | |
| get_style_context().add_class("my-bar"); | |
| show_close_button = true; |
#Test Page
Here is how to use the Test Pages macro: <<Test("One", "Two", "Three Four Five")>>
And again for your convenience:
<<Test("One", "Two", "Three Four Five")>>| #... | |
| def files_folders | |
| if has_results | |
| folders = {} | |
| page_files = {} | |
| # 1012: Folders and Pages need to be separated | |
| @results.each do |page| | |
| page_path = page.path.sub(/^#{@path}\//, '') |
| import javafx.fxml.Initializable; | |
| import javafx.scene.control.Slider; | |
| import javafx.scene.control.TableCell; | |
| import javafx.scene.control.TableColumn; | |
| import javafx.scene.control.TableView; | |
| import java.net.URL; | |
| import java.util.ResourceBundle; | |
| public class Controller implements Initializable { |
Add-WindowsFeature Web-Windows-Auth,Web-ISAPI-Ext,Web-Metabase,Web-WMI,BITS,RDC,NET-Framework-Features,Web-Asp-Net,Web-Asp-Net45,NET-HTTP-Activation,NET-Non-HTTP-Activ,Web-Static-Content,Web-Default-Doc,Web-Dir-Browsing,Web-Http-Errors,Web-Http-Redirect,Web-App-Dev,Web-Net-Ext,Web-Net-Ext45,Web-ISAPI-Filter,Web-Health,Web-Http-Logging,Web-Log-Libraries,Web-Request-Monitor,Web-HTTP-Tracing,Web-Security,Web-Filtering,Web-Performance,Web-Stat-Compression,Web-Mgmt-Console,Web-Scripting-Tools,Web-Mgmt-Compat -RestartRegular inline:
`Add-WindowsFeature Web-Windows-Auth,Web-ISAPI-Ext,Web-Metabase,Web-WMI,BITS,RDC,NET-Framework-Features,Web-Asp-Net,Web-Asp-Net45,NET-HTTP-Activation,NET-Non-HTTP-Activ,Web-Static-Content,Web-Default-Doc,Web-Dir-Browsing,Web-Http-Errors,Web-Http-Redirect,Web-App-Dev,Web-Net-Ext,Web-Net-Ext45,Web-ISAPI-Filter,Web-Health,Web-Http-Logging,Web-Log-Libraries,Web-Request-Monitor,Web-HTTP-Tracing,Web-Security,Web-Filtering,Web-Performance,
| bundle : io/console not supported; tty will not be manipulated | |
| At line:1 char:1 | |
| + bundle exec rake test > gollum.lib.tests.log 2>&1 | |
| + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
| + CategoryInfo : NotSpecified: (io/console not ... be manipulated:String) [], RemoteException | |
| + FullyQualifiedErrorId : NativeCommandError | |
| io/console not supported; tty will not be manipulated | |
| from kivy.app import App | |
| from kivy.lang import Builder | |
| from kivy.properties import ObjectProperty | |
| from kivy.uix.label import Label | |
| from kivy.uix.widget import Widget | |
| UI = """ | |
| #:kivy 1.9.0 |
| // Compile with: valac --pkg gtk+-3.0 test.vala | |
| public class Application : Gtk.Window { | |
| public Application(){ | |
| // Uncomment these lines to test with a headerbar | |
| //var hb = new Gtk.HeaderBar(); | |
| //hb.show_close_button = true; | |
| //set_titlebar(hb); | |
| title = "Test Window"; |
| """ | |
| Instructions for use | |
| Change channel_count and dca_count as appropriate. (Note that this always assumes that you are using the lowest-numbered channels and dcas for cue control) | |
| Change channels to the list of names of channels you want under cue control. | |
| Change cues to your list of cues, following the examples. the comment in cues documents the syntax. | |
| """ |
| # Original script by Damian Yerrick | |
| # http://stackoverflow.com/a/25964763 | |
| def pratt(max_size): | |
| """Generate a sorted list of products of powers of 2 and 3 below max_size""" | |
| # for https://stackoverflow.com/q/25964453/2738262 | |
| products = [] | |
| pow3 = 1 # start with q = 0 | |
| while pow3 <= max_size: | |
| # At this point, pow3 = 3**q, so set p = 0 | |
| pow2 = pow3 |