Mac users go here to do the same with Homebrew
https://github.com/sstephenson/rbenv#homebrew-on-mac-os-x
and continue to install ruby 2.0.0
$ sudo apt-get install git-core
├── img | |
├── css | |
├── js | |
│ ├── libs | |
│ │ ├── jquery | |
│ │ │ ├── jquery.min.js | |
│ │ ├── backbone | |
│ │ │ ├── backbone.min.js | |
│ │ └── underscore | |
│ │ │ ├── underscore.min.js |
Mac users go here to do the same with Homebrew
https://github.com/sstephenson/rbenv#homebrew-on-mac-os-x
and continue to install ruby 2.0.0
$ sudo apt-get install git-core
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<meta name="description" content=""> | |
<meta name="author" content=""> | |
<title>Blog</title> | |
<%= stylesheet_link_tag "application", :media => "all" %> |
<%= simple_form_for @task, :validate => true, :defaults => { :wrapper_html => {:class => 'form-group'}, :input_html => { :class => 'form-control' } }, :html => { :role => "form" } do |f| %> | |
<%= f.input :title %> | |
<%= f.input :content %> | |
<%= f.input :author %> | |
<%= f.button :submit %> | |
<% end %> |
before_validation :cast_to_integer | |
def cast_to_integer | |
condition.map do |a| [a[0], a[1].to_i] end | |
end |
languages = ["Abkhaz", | |
"Afar", | |
"Afrikaans", | |
"Akan", | |
"Albanian", | |
"Amharic", | |
"Arabic", | |
"Aragonese", | |
"Armenian", | |
"Assamese", |
~/Sites/switchboard bin/switchboard foreground | |
Exec: /Users/gmaliar/Sites/switchboard/erts-5.10.4/bin/erlexec -noinput +Bd -boot /Users/gmaliar/Sites/switchboard/releases/0.1.0/switchboard -mode embedded -config /Users/gmaliar/Sites/switchboard/releases/0.1.0/sys.config -args_file /Users/gmaliar/Sites/switchboard/releases/0.1.0/vm.args -- foreground | |
Root: /Users/gmaliar/Sites/switchboard | |
=INFO REPORT==== 11-Jun-2014::16:39:44 === | |
application: cowboy | |
exited: {bad_return, | |
{{cowboy_app,start,[normal,[]]}, | |
{'EXIT', |
# routes.rb | |
namespace :api do | |
Dir[Rails.root.join("app", "controllers", "api", "*_controller.rb")].map { |file| file.match(/app\/controllers\/api\/([[:alpha:]]+)_controller\.rb/)[1].pluralize }.each |ctrl| | |
resources ctrl.to_sym | |
end | |
end |
BINARY=socialblade_crawler | |
VERSION=1.0.0 | |
BUILD=`git rev-parse HEAD` | |
LDFLAGS=-ldflags "-X main.Version=${VERSION} -X main.Build=${BUILD}" | |
all: deps clean build | |
deps: |
apiVersion: extensions/v1beta1 | |
kind: DaemonSet | |
metadata: | |
name: newrelic-agent | |
labels: | |
tier: monitoring | |
app: newrelic-agent | |
version: v1 | |
spec: | |
template: |