- Find (regex):
<h1>Listing (.*?)</h1>
- Replace:
<% content_for :page_title do %> $1s - <% end %> <div class="container"> <div class="page-header">
This file contains 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
package main | |
import ( | |
"bufio" | |
"os" | |
"fmt" | |
"flag" | |
"regexp" | |
"strings" | |
"log" |
This file contains 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
source 'https://rubygems.org' | |
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails' | |
gem 'rails', '4.0.0' | |
# Use sqlite3 as the database for Active Record | |
gem 'sqlite3' | |
# Use SCSS for stylesheets | |
gem 'sass-rails', '~> 4.0.0' |
This file contains 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
source 'https://rubygems.org' | |
ruby '2.0.0' | |
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails' | |
gem 'rails', '4.0.0' | |
# Use SCSS for stylesheets | |
gem 'sass-rails', '~> 4.0.0' | |
# Use Uglifier as compressor for JavaScript assets |
This file contains 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
class UsersController < ApplicationController | |
before_action :set_user, only: [:show, :edit, :update, :destroy] | |
# GET /users | |
# GET /users.json | |
def index | |
@users = User.all | |
end | |
# GET /users/1 |
This file contains 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 "code.google.com/p/go.net/html" | |
func innerHtml(n *html.Node) string { | |
if (n == nil) { | |
return "" | |
} | |
result := "" | |
if n.Type == html.TextNode { | |
result = result + strings.TrimSpace(n.Data) |
This file contains 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
var fs = require('fs') | |
, read = fs.readFileSync | |
, css_parse = require('css-parse'); | |
var parsedCss = css_parse(read("./path/to/bootstrap.min.css", 'utf8')); | |
var collectedClassnames = {} | |
for (var i = 0; i < parsedCss.stylesheet.rules.length; ++i) { | |
var rule = output_obj.stylesheet.rules[i]; | |
This file contains 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
[[ -s "$HOME/.profile" ]] && source "$HOME/.profile" # Load the default .profile | |
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function* | |
### BEGIN: history bash shell useful settings ### | |
export HISTCONTROL=ignoredups # Ignores dupes in the history | |
shopt -s checkwinsize # After each command, checks the windows size and changes lines and columns |
- Get the github repo URL from https://github.com/Itseez/opencv
- Get the github repo URL from https://github.com/Itseez/opencv_contrib
- CMake 3.1.0 http://www.cmake.org/ not available in
brew
OlderNewer