Install xcode command line tools (or check if they're already installed)
xcode-select --install
Do we have libxml installed already?
xsltproc --version
| [h]Fluxbb bbcode tests[/h] | |
| [h]Text[/h] | |
| [b]Bold text[/b] | |
| [u]Underlined text[/u] | |
| [i]Italic text[/i] |
| <?php /*template name: Export*/ | |
| if ( !is_user_logged_in() ) { | |
| auth_redirect(); | |
| } | |
| $admin_user = current_user_can('manage_options'); | |
| if (!$admin_user) die("ACCESS DENIED"); | |
| if (isset($_GET['export'])) { | |
| $table_head = array('column1', 'column2', 'column3'); |
| <html> | |
| <head> | |
| <title>Linear time calculator</title> | |
| <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <style> | |
| body { | |
| background: WHITE; | |
| font-family: Verdana, Helvetica, Arial, sans-serif; | |
| } |
| class TestMailer < ActionMailer::Base | |
| default from: "[email protected]" | |
| def test_mail | |
| mail( | |
| to: "Harry Wood <[email protected]>", | |
| subject: "Testing mail sending", | |
| from: "[email protected]", | |
| content_type: "text/html", | |
| ) do |format| |
| #!/usr/local/bin/ruby -w | |
| # Assuming the two files are sorted, this will walk through them in parallel comparing | |
| # and spitting out any lines which are in the first one and not in the second. | |
| # its equivalend to the unix command: diff A.txt B.txt|grep '^<'|awk '{print $2}' | |
| fa = File.open(ARGV[0]) | |
| fb = File.open(ARGV[1]) | |
| linea = nil | |
| lineb = nil |
| require 'date' | |
| DAY_NAMES = %w[Sun Mon Tue Wed Thu Fri Sat].freeze | |
| BANK_HOLIDAYS = [ | |
| Date.new(2017, 1, 2), | |
| Date.new(2017, 4, 14), | |
| Date.new(2017, 4, 17), | |
| Date.new(2017, 5, 1), | |
| Date.new(2017, 5, 29), |
| puts '<?xml version="1.0" encoding="UTF-8"?>' | |
| puts '<kml xmlns="http://www.opengis.net/kml/2.2">' | |
| puts '<Document>' | |
| puts " <name>Lots of placemarks #{random_str}</name>" | |
| puts ' <description>A test KML file with lots of placemarks</description>' | |
| (0..40).each do | |
| puts '<Placemark>' | |
| puts " <name>placemark name #{random_str}</name>" | |
| puts " <description>#{random_str}#{random_str}#{random_str}</description>" |
| Vagrant::Config.run do |config| | |
| config.vm.box = "ubuntu/trusty64" | |
| config.vm.forward_port 4000, 4000 | |
| $script = <<-SCRIPT | |
| set -o verbose | |
| set -e | |
| whoami |