Skip to content

Instantly share code, notes, and snippets.

View intinig's full-sized avatar

Giovanni Intini intinig

View GitHub Profile
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
BLOW = 0
ROLL = 1
PARRY = 2
HAND = 3
KI = 4
class Die
def self.faces
[[],[],[],[],[],[]]
end
@intinig
intinig / .clang-format
Last active January 13, 2024 11:56
.clang-format for UE4
---
Language: Cpp
AccessModifierOffset: -4
AlignAfterOpenBracket: DontAlign
AlignConsecutiveAssignments: false
AlignConsecutiveDeclarations: false
AlignEscapedNewlines: Left
AlignOperands: true
AlignTrailingComments: true
AllowAllParametersOfDeclarationOnNextLine: true
{*
* 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
[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
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__)
-*- 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"
},
-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'.
-module(domains).
-export([parse/1]).
-include_lib("xmerl/include/xmerl.hrl").
is_element(Element) ->
case element(1, Element) of
xmlElement ->
true;
_ ->
false
-module(domains).
-export([parse/1]).
-include_lib("xmerl/include/xmerl.hrl").
parse(Domain) ->
{Data, _} = xmerl_scan:file(Domain),
Data.