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
ENV RUBY_MAJOR 2.2 | |
ENV RUBY_VERSION 2.2.1 | |
ENV RUBY_SHA 5a4de38068eca8919cb087d338c0c2e3d72c9382c804fb27ab746e6c7819ab28 | |
RUN mkdir -p /usr/src/ruby | |
RUN cd /usr/src | |
RUN curl -OSL "http://cache.ruby-lang.org/pub/ruby/$RUBY_MAJOR/ruby-$RUBY_VERSION.tar.gz" | |
RUN $(test "$(sha256sum ruby-${RUBY_VERSION}.tar.gz |cut -d' ' -f1)" = "${RUBY_SHA}" || \ | |
$(>&2 echo "Bad Download, I'M OUT"; exit 1)) && \ | |
tar xzf ruby-${RUBY_VERSION}.tar.gz --strip-components=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
BLOW = 0 | |
ROLL = 1 | |
PARRY = 2 | |
HAND = 3 | |
KI = 4 | |
class Die | |
def self.faces | |
[[],[],[],[],[],[]] | |
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
--- | |
Language: Cpp | |
AccessModifierOffset: -4 | |
AlignAfterOpenBracket: DontAlign | |
AlignConsecutiveAssignments: false | |
AlignConsecutiveDeclarations: false | |
AlignEscapedNewlines: Left | |
AlignOperands: true | |
AlignTrailingComments: true | |
AllowAllParametersOfDeclarationOnNextLine: true |
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
{* | |
* 2007-2012 PrestaShop | |
* | |
* NOTICE OF LICENSE | |
* | |
* This source file is subject to the Academic Free License (AFL 3.0) | |
* that is bundled with this package in the file LICENSE.txt. | |
* It is also available through the world-wide-web at this URL: | |
* http://opensource.org/licenses/afl-3.0.php | |
* If you did not receive a copy of the license and are unable to |
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
[Thu Jun 20 2013] | |
-cameron.freenode.net- *** Looking up your hostname... [16:48] | |
-cameron.freenode.net- *** Checking Ident | |
-cameron.freenode.net- *** Found your hostname | |
-cameron.freenode.net- *** No Ident response | |
*** Welcome to the freenode Internet Relay Chat Network intinig | |
*** Your host is cameron.freenode.net[84.240.3.129/6667], running version |
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
namespace :docker do | |
desc "Build docker images" | |
task :build do |t, args| | |
require 'securerandom' | |
images = ENV['IMAGES'] | |
images = images.split "," | |
root = File.expand_path("../../../", __FILE__) |
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
-*- mode: ruby-compilation; default-directory: "~/src/armanimenu/" -*- | |
RubyComp started at Tue Jan 28 13:31:01 | |
ruby /Users/intinig/src/armanimenu/test.rb | |
[ | |
[ 0] { | |
:country => "austria", | |
:url => "http://www.armani.com/at" | |
:language => "de" | |
}, |
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
-module(domains). | |
-export([parse/1]). | |
-include_lib("xmerl/include/xmerl.hrl"). | |
is_element(Element) -> | |
element(1, Element) =:= xmlElement. | |
is_domain_name(Element) -> | |
Element#xmlElement.name =:= 'domain-name'. |
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
-module(domains). | |
-export([parse/1]). | |
-include_lib("xmerl/include/xmerl.hrl"). | |
is_element(Element) -> | |
case element(1, Element) of | |
xmlElement -> | |
true; | |
_ -> | |
false |
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
-module(domains). | |
-export([parse/1]). | |
-include_lib("xmerl/include/xmerl.hrl"). | |
parse(Domain) -> | |
{Data, _} = xmerl_scan:file(Domain), | |
Data. |
NewerOlder