prototype of visual editor for payment parameters
A Pen by Wim Norder on CodePen.
prototype of visual editor for payment parameters
A Pen by Wim Norder on CodePen.
| require 'rubygems' | |
| require 'sinatra' | |
| require 'rexml/document' | |
| include REXML | |
| providers = File.new('providers.xml') | |
| services = File.new('services.xml') | |
| dev_time_start = Time.now # developer |
| #!/bin/sh | |
| # | |
| # A SUSE Linux start/stop script for Java daemons. | |
| # | |
| # Home page: http://www.source-code.biz | |
| # License: GNU/LGPL V2.1 (http://www.gnu.org/licenses/lgpl.html) | |
| # Copyright 2006 Christian d'Heureuse, Inventec Informatik AG, Switzerland. | |
| # | |
| # History: | |
| # 2006-06-27 Christian d'Heureuse: Script created. |
| #!/bin/sh | |
| DESC="Description" | |
| NAME=YOUR_NAME | |
| PIDFILE=/var/run/$NAME.pid | |
| RUN_AS=USER_TO_RUN | |
| COMMAND=/usr/bin/java -- -jar YOUR_JAR | |
| d_start() { | |
| start-stop-daemon --start --quiet --background --make-pidfile --pidfile $PIDFILE --chuid $RUN_AS --exec $COMMAND |
| #!/usr/bin/env ruby | |
| require 'rubygems' | |
| require 'sinatra' | |
| require 'rexml/document' | |
| include REXML | |
| providers = File.new('providers.xml') | |
| services = File.new('services.xml') |
| require 'sinatra' # gem install sinatra --no-rdoc --no-ri | |
| set :port, 3000 | |
| set :environment, :production | |
| html = <<-EOT | |
| <html><head><style> | |
| #text{width:100%; font-size: 15px; padding: 5px; display: block;} | |
| </style></head><body> | |
| <input id="text" placeholder="Write then press Enter."/> | |
| <div id="chat"></div> |
| directory = ARGV.shift || Dir.pwd | |
| $dont_get_into = ['.','..'] | |
| $allowed = { | |
| 'Ruby' => '.rb', | |
| 'Ruby HTML Templates' => '.html.erb', | |
| 'YAML' => '.yml', | |
| 'RDoc' => '.rdoc', | |
| 'HTML' => '.html', | |
| 'Javascript' => '.js', | |
| 'CSS' => '.css', |
| require 'Twitter' #gem install twitter | |
| while true | |
| begin | |
| # Create a read write application from : | |
| # https://apps.twitter.com | |
| # authenticate it for your account | |
| # fill in the following | |
| config = { | |
| consumer_key: '', | |
| consumer_secret: '', |
| class Array | |
| def same? | |
| uniq.length==1 | |
| end | |
| end | |
| x = 1 | |
| y = 2 | |
| z = 2 | |
| l = 2 |