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
irb(main):001:0> str = 'This is my STRING!' | |
=> "This is my STRING!" | |
irb(main):002:0> def str.-@ | |
irb(main):003:1* downcase | |
irb(main):004:1> end | |
=> :-@ | |
irb(main):005:0> p str | |
"This is my STRING!" | |
=> "This is my STRING!" | |
irb(main):006:0> p -str |
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
require 'benchmark' | |
n = 5_000_000 | |
Benchmark.bmbm do |x| | |
x.report('String#match') do | |
n.times do | |
'metadata:foo=bar'.match(/metadata:/) | |
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
import Html exposing (..) | |
-- MODEL | |
type alias Model = | |
{} | |
-- UPDATE |
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
import Html exposing (..) | |
-- MODEL | |
type alias Model = | |
{} | |
-- UPDATE |
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
diff --git a/.gitignore b/.gitignore | |
index 48fb168..16ffc48 100644 | |
--- a/.gitignore | |
+++ b/.gitignore | |
@@ -1,17 +1,6 @@ | |
-# See https://help.github.com/articles/ignoring-files for more about ignoring files. | |
-# | |
-# If you find yourself ignoring temporary files generated by your text editor | |
-# or operating system, you probably want to add a global ignore instead: | |
-# git config --global core.excludesfile '~/.gitignore_global' |
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
diff --git a/.gitignore b/.gitignore | |
index 82701fe..9b10e17 100644 | |
--- a/.gitignore | |
+++ b/.gitignore | |
@@ -1,19 +1,8 @@ | |
-# See https://help.github.com/articles/ignoring-files for more about ignoring files. | |
-# | |
-# If you find yourself ignoring temporary files generated by your text editor | |
-# or operating system, you probably want to add a global ignore instead: | |
-# git config --global core.excludesfile '~/.gitignore_global' |
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
--- /dev/null 2017-04-07 18:45:21.000000000 +0300 | |
+++ config/database.yml 2017-04-07 18:29:47.000000000 +0300 | |
@@ -0,0 +1,22 @@ | |
+default: &default | |
+ adapter: postgresql | |
+ encoding: unicode | |
+ pool: 5 | |
+ | |
+development: | |
+ <<: *default |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<title>Vue.js App Template Title</title> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=PT+Sans:400"> | |
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/7.0.0/normalize.min.css"> | |
<link rel="stylesheet" href="style.css"> | |
</head> |
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
begin | |
require 'bundler/inline' | |
rescue LoadError => e | |
$stderr.puts 'Bundler version 1.10 or later is required. Please update your Bundler' | |
raise e | |
end | |
gemfile(true) do | |
source 'https://rubygems.org' | |
# Activate the gem you are reporting the issue against. |
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
{ | |
// Use IntelliSense to learn about possible attributes. | |
// Hover to view descriptions of existing attributes. | |
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | |
"version": "0.2.0", | |
"configurations": [ | |
{ | |
"type": "chrome", | |
"request": "launch", | |
"name": "vuejs: chrome", |