This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| TEXT = <<EOF | |
| See, the interesting thing about this text | |
| is that while it seems like the first line defines an indent | |
| it's actually the last line which has the smallest indent | |
| there are also some blank lines | |
| both with and without extra spaces in them | |
| and it just goes on and on |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| TEXT = <<EOF | |
| See, the interesting thing about this text | |
| is that while it seems like the first line defines an indent | |
| it's actually the last line which has the smallest indent | |
| there are also some blank lines | |
| both with and without extra spaces in them | |
| and it just goes on and on |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| TEXT = <<EOF | |
| See, the interesting thing about this text | |
| is that while it seems like the first line defines an indent | |
| it's actually the last line which has the smallest indent | |
| there are also some blank lines | |
| both with and without extra spaces in them | |
| and it just goes on and on |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| TEXT = <<EOF | |
| See, the interesting thing about this text | |
| is that while it seems like the first line defines an indent | |
| it's actually the last line which has the smallest indent | |
| there are also some blank lines | |
| both with and without extra spaces in them | |
| and it just goes on and on |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # CAVEAT: I have not run this code | |
| require 'rails/generators/erb/scaffold/scaffold_generator' | |
| module Erb | |
| module Generators | |
| class ScaffoldGenerator < Base | |
| protected |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| x_coords = [...] | |
| y_coords = [...] | |
| x_coords.each do |x| | |
| y_coords.each do |y| | |
| do_point x, y | |
| end | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // | |
| //-- Create a subscriber | |
| // | |
| // POST /api/my-brand/subscribers | |
| { | |
| "subscriber": { | |
| "name": "Test Subscriber", | |
| "email": "test@example.com", | |
| "subscribe": [ | |
| 'my-list-1', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| source .config | |
| # Setup up master repo | |
| # git clone --bare $TMP_REPO $MASTER_REPO | |
| sudo -u git git daemon \ | |
| --verbose \ | |
| --enable=receive-pack \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| module RSpec | |
| module Matchers | |
| module BuiltIn | |
| # @api private | |
| # Provides the implementation for `exist`. | |
| # Not intended to be instantiated directly. | |
| class Exist < BaseMatcher | |
| def initialize(*expected) | |
| @expected = expected | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| URL_MATCH = Oniguruma::ORegexp.new %q{(?i)(?<=\s|^)((?:https?://|www\d{0,3}[.]|[a-z0-9.\-]+[.][a-z]{2,4}/)(?:[^\s()<>]+|\(([^\s()<>]+|(\([^\s()<>]+\)))*\))+(?:\(([^\s()<>]+|(\([^\s()<>]+\)))*\)|[^\s`!()\[\]{};:'".,<>?«»“”‘’]))} |