Image Preview Service
- How to Upload
- Resize and Reformat
- Image Storage
- API Endpoints
- Preview Storage
| javascript:(function(){ var canonicalLink = document.querySelector('link[rel="canonical"]'); var message; if (canonicalLink) { message = 'Canonical link found: ' + canonicalLink.href; var dummy = document.createElement('textarea'); document.body.appendChild(dummy); dummy.value = canonicalLink.href; dummy.select(); document.execCommand('copy'); document.body.removeChild(dummy); } else { message = 'No canonical link found.'; var dummy = document.createElement('textarea'); document.body.appendChild(dummy); dummy.value = message; dummy.select(); document.execCommand('copy'); document.body.removeChild(dummy); } alert(message);})(); |
| # The Mandelbrot Set for Ruby by Michael Crowther | |
| # | |
| # Based on "The Mandelbrot Set" example by Daniel Shiffman for Processing 3+ | |
| # (https://processing.org/examples/mandelbrot.html) | |
| # | |
| # size(640, 360); | |
| # noLoop(); | |
| # background(255); | |
| # | |
| # // Establish a range of values on the complex plane |
| #!/usr/bin/env ruby | |
| # Just call this without arguments. It will show a friendly help text. | |
| # For xterm-256color, it will even use colors for some commands! | |
| class AppConfig | |
| @@default_remote = 'vpn.example.com' | |
| @@default_networks = '10.0.0.0/24>192.168.1.0/24' | |
| @@default_subject = '/C=US/ST=CA/L=San Francisco/O=Example/OU=/CN={{name}}' |
| #!/usr/bin/env ruby | |
| #/ Usage: <progname> [options]... | |
| #/ How does this script make my life easier? | |
| # ** Tip: use #/ lines to define the --help usage message. | |
| $stderr.sync = true | |
| require 'optparse' | |
| # default options | |
| flag = false | |
| option = "default value" |
| #!/usr/bin/env ruby | |
| require 'rubygems' | |
| require 'sinatra' | |
| require 'haml' | |
| $pwd = ENV['PWD'] | |
| if File.exists?(ARGV.last) | |
| if ARGV.last != 'bfile.rb' |
What parameters need to be passed in to instantiate the class?
| RSpec.configure do |config| | |
| config.before(:suite) do | |
| DatabaseCleaner.clean_with(:truncation) | |
| end | |
| config.before(:each) do | |
| DatabaseCleaner.strategy = :transaction | |
| end | |
| config.before(:each, js: true) do |
| <div contenteditable="true" class="editable" data-editable-input-id="input-name"></div> | |
| <input id="input-name" type="text" name="input-name" value="" placeholder="Don't Touch Me" /> |
| $(document).ready(function() { | |
| // Loop through each of the empty .editable elements and add filler edit text. | |
| $('.editable:empty').each(function(){ | |
| $(this).text('Edit Me'); | |
| }); | |
| // On .editable blur() - when a user clicks off of an .editable element take it's text and pass it to the corresponding input. | |
| $('.editable').blur(function() { | |
| var editableContent = $(this).text(); |