Skip to content

Instantly share code, notes, and snippets.

View alankis's full-sized avatar
🏠
Working from home

alankis

🏠
Working from home
  • Mercedes pay Gmbh
  • Berlin, Germany
View GitHub Profile
/home/alan/.rvm/rubies/ruby-2.2.2/bin/ruby mkrf_conf
Checking for library ruby ... yes
Checking for header ruby/ruby.h ... yes
Checking for header ruby/io.h ... yes
Checking for library crypto ... yes
Checking for library ssl ... yes
Checking for library pq ... yes
Checking for header postgres.h ... no
Checking for header libpq-fe.h ... yes
Checking for header catalog/pg_type.h ... no
@alankis
alankis / hook_var_scope_test.php
Created November 3, 2015 12:56
Variable scope extending with passing parameter by reference
<?php
/**
* @array hookparams Hookparams array from both of function calls
*/
$hookparams = []; // initalized empty values
$hookparams['a'] = 2;
$hookparams['b'] = 3;
function hook_FunctionOne(&$hookparams)
@alankis
alankis / php
Created January 14, 2016 12:44
<pre>Array
(
[params] => Array
(
[accountid] => 117
[serviceid] => 117
[userid] => 8
[domain] => nekadomena.hr
[username] => nekadome
[password] => PcbQ37j21i
Delivered-To: alan.kish38@gmail.com
Received: by 10.25.200.6 with SMTP id y6csp250355lff;
Thu, 28 Jan 2016 01:10:41 -0800 (PST)
X-Received: by 10.28.8.142 with SMTP id 136mr1962790wmi.54.1453972241223;
Thu, 28 Jan 2016 01:10:41 -0800 (PST)
Return-Path: <info@dot.com.hr>
Received: from lvpmailfs2.vip.hr (lvpmailfs2.vip.hr. [212.91.113.95])
by mx.google.com with ESMTP id bf3si14097539wjc.85.2016.01.28.01.10.41
for <alan.kish38@gmail.com>;
[29-Jan-2016 19:16:02 UTC] PHP Notice: Undefined index: in /home/devinfonet/public_html/vendor/dompdf/lib/Cpdf.php on line 3884
[29-Jan-2016 19:16:02 UTC] PHP Notice: Undefined index: /home/devinfonet/public_html/vendor/dompdf/lib/fonts/c3e8f1a4ec0c4189018778855181c1c8 in /home/devinfonet/public_html/vendor/dompdf/src/Renderer/Text.php on line 97
[29-Jan-2016 19:16:02 UTC] PHP Notice: Undefined index: in /home/devinfonet/public_html/vendor/dompdf/lib/Cpdf.php on line 3554
[29-Jan-2016 19:16:02 UTC] PHP Notice: Undefined index: in /home/devinfonet/public_html/vendor/dompdf/lib/Cpdf.php on line 3884
[29-Jan-2016 19:16:02 UTC] PHP Notice: Undefined index: /home/devinfonet/public_html/vendor/dompdf/lib/fonts/c3e8f1a4ec0c4189018778855181c1c8 in /home/devinfonet/public_html/vendor/dompdf/src/Renderer/Text.php on line 97
[29-Jan-2016 19:16:02 UTC] PHP Notice: Undefined index: in /home/devinfonet/public_html/vendor/dompdf/lib/Cpdf.php on line 3554
[29-Jan-2016 19:16:02 UTC] PHP Notice: Undefined index: in
#Classes
module Menu
def menu
puts "Welcome to command line TODO list!"
puts "1)Add"
puts "2)Show"
puts "3)Quit the program"
end
def show
class List
def initialize()
@all_tasks = []
end
#add task to List
def add_task(task)
@all_tasks << task
end
#Show task
def show_all_tasks
<?php
# Init empty array
$temp = [];
$array = array
(
array("qty" => 1),
array("qty" => 2),
array("qty" => 3)
);
<?php
/**
* Init empty array
*/
$array = [];
/**
* Seed the motherfucker
Fatal error: Call to undefined function injectdomainobjectifnecessary() in /home/korisnik/public_html/modules/registrars/resellerclub/resellerclub.php on line 0