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
ruby_block "create services" do | |
block do | |
service_res = Chef::Resource::Service.new service_name, run_context | |
service_res.provider Chef::Provider::Service::Upstart | |
service_res.supports status: true, restart: true, reload: true | |
service_res.subscribes :restart, "deploy_revision[#{service_name}]", :delayed | |
service_res.run_action :enable | |
end | |
action :run | |
end |
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
<%= form_for(@patient) do |f| %> | |
<% if @patient.errors.any? %> | |
<div id="error_explanation"> | |
<h2><%= pluralize(@patient.errors.count, "error") %> prohibited this patient from being saved:</h2> | |
<ul> | |
<% @patient.errors.full_messages.each do |message| %> | |
<li><%= message %></li> | |
<% end %> | |
</ul> |
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
$ ruby test_case_missing_slash.rb | |
Run options: --seed 62773 | |
# Running: | |
D, [2014-09-25T10:40:05.782387 #7511] DEBUG -- : | |
D, [2014-09-25T10:40:05.782441 #7511] DEBUG -- : | |
I, [2014-09-25T10:40:05.782843 #7511] INFO -- : Started GET "/test" for 127.0.0.1 at 2014-09-25 10:40:05 -0700 | |
F, [2014-09-25T10:40:05.783768 #7511] FATAL -- : | |
RuntimeError (Could not find root path for #<TestEngine1::Engine:0x007f3beee14110>): |
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
call pathogen#infect() | |
set nocompatible | |
set autoindent | |
set modelines=5 | |
syntax on | |
filetype plugin indent on | |
set background=dark | |
set number | |
set tabstop=2 | |
set shiftwidth=2 |
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
<?xml version="1.0" encoding="utf-8"?> | |
<my.custom.package.AwesomeWidget | |
android:id="@+id/widget" | |
... | |
... | |
/> |
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
Single stepping until exit from function main, | |
which has no line number information. | |
Running a benchmark to measure system clock frequency... | |
Finished RDTSC test. To prevent the startup delay from this benchmark, set the environment variable RDTSC_FREQUENCY to 2294.000000 on this system. This value is dependent upon the CPU clock speed and architecture and should be determined separately for each server. The use of this mechanism for timing can be disabled by setting RDTSC_FREQUENCY to 'disabled'. | |
[New Thread 0xf738db40 (LWP 12016)] | |
[New Thread 0xf728cb40 (LWP 12017)] | |
[New Thread 0xf4e3bb40 (LWP 12024)] | |
SDL video target is 'x11' | |
SDL failed to create GL compatibility profile (whichProfile=0! | |
This system supports the OpenGL extension GL_EXT_framebuffer_object. |
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
# Contributor: Lucas de Vries <lucas@glacicle.org> | |
# Contribute: Scott Moak <scott.moak@mybrainoncode.com> | |
pkgname=cortex-git | |
_gitname=cortex | |
pkgver=7b29ca0 | |
pkgrel=1 | |
pkgdesc="An ncurses reddit browser and monitor" | |
license=('WTFPL') | |
arch=('i686' 'x86_64') | |
url="http://cortex.glacicle.org/" |
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
Processor Information: | |
Vendor: GenuineIntel | |
Speed: 2301 Mhz | |
8 logical processors | |
4 physical processors | |
HyperThreading: Supported | |
FCMOV: Supported | |
SSE2: Supported | |
SSE3: Supported | |
SSSE3: Supported |
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
# Maintainer: Jakub Schmidtke <sjakub-at-gmail-dot-com> | |
# Contributor: Joel Pedraza <joel@joelpedraza.com> | |
pkgname=android-support | |
pkgver=r12 | |
pkgrel=1 | |
pkgdesc='Android Support Package' | |
arch=('any') | |
url="https://developer.android.com/sdk/compatibility-library.html" | |
license=('custom') |
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
@Override | |
public void show() { | |
map = TiledLoader.createMap(Gdx.files.internal("tiles/tiles3.tmx")); | |
atlas = new SimpleTileAtlas(map, Gdx.files.internal("tiles/")); | |
tileMapRenderer = new TileMapRenderer(map, atlas, 64, 64, 5, 5); | |
font = new BitmapFont(); | |
font.setColor(Color.RED); | |
batch = new SpriteBatch(); | |
// my world units are tiles |