{
"foo": "bar",
"the_list": {
"list_item_one": {
"foo": "bar",
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
| export PATH="$HOME/.rbenv/bin:/usr/local/bin:$PATH" | |
| eval "$(rbenv init -)" |
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 MyModule | |
| class Client | |
| def showmetheurl | |
| puts secret_url | |
| end | |
| private | |
| def secret_url | |
| 'http://www.changethis.de' |
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
| # **postinstall.sh** is a script executed after Debian/Ubuntu has been | |
| # installed and restarted. There is no user interaction so all commands must | |
| # be able to run in a non-interactive mode. | |
| # | |
| # If any package install time questions need to be set, you can use | |
| # `preeseed.cfg` to populate the settings. | |
| ### Setup Variables | |
| # The version of Ruby to be installed supporting the Chef and Puppet gems |
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
| { | |
| "app": { | |
| "root_path": "/vagrant" | |
| }, | |
| "mysql": { | |
| "server_root_password": "password" | |
| }, | |
| "run_list": ["recipe[main]"] | |
| } |
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
| include_recipe 'ruby_build' | |
| # chef-rbenv https://github.com/fnichol/chef-rbenv | |
| include_recipe 'rbenv::user' | |
| # rbenv_rehash "Rehashing tflowers' rbenv" do | |
| # user "two-dns" | |
| # end | |
| rbenv_gem 'bundler' do | |
| rbenv_version '1.9.3-p194' | |
| root_path '/home/two-dns/.rbenv' | |
| user 'two-dns' |
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 'digest' | |
| module AnyGood | |
| class MovieMatcher | |
| def add_movie(movie_hash) | |
| prefixes = prefixes_for(movie_hash[:name]) | |
| hashed_name = data_hash_key_for(movie_hash) | |
| prefixes.each do |prefix| |
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
| # | |
| # FIRST VERSION | |
| # | |
| # Using string interpolation | |
| # | |
| class Endpoint | |
| attr_reader :changed_attributes | |
| def self.has_attribute(attr_name) | |
| attr_reader attr_name |
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
| $sidebar-bg: image-url('noise.png'); | |
| $sidebar-bg-color: #FCFCF2; | |
| $sidebar-color: $text-color; | |
| $sidebar-link-color: $link-color !default; | |
| $sidebar-link-color-hover: $link-color-hover !default; | |
| $sidebar-link-color-active: $link-color-active !default; | |
| $sidebar-border: desaturate(darken($sidebar-bg-color, 7), 10) !default; | |
| $sidebar-border-hover: darken($sidebar-bg-color, 7) !default; | |
| $sidebar-link-color-subdued: lighten($sidebar-color, 20) !default; | |
| $sidebar-link-color-subdued-hover: $sidebar-link-color-hover !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
| var io = require('socket.io'); | |
| var express = require('express'); | |
| var app = express.createServer(); | |
| var server = app.listen(8080); | |
| var ioServer = io.listen(server); | |
| app.get('/', function (req, res) { | |
| res.sendfile(__dirname + '/index.html'); | |
| }); |