Skip to content

Instantly share code, notes, and snippets.

View hjanuschka's full-sized avatar
🤖
-.-

Helmut Januschka hjanuschka

🤖
-.-
  • Vienna/Austria
View GitHub Profile
require "spaceship"
Spaceship::Tunes.login("helmut@januschka.com")
app = Spaceship::Application.find("krone.at-krone.at")
version = app.live_version
puts version.review_first_name
puts version.review_last_name
puts version.review_notes
puts version.review_email
@hjanuschka
hjanuschka / .gitlab-ci.yml
Created May 24, 2017 10:54
Danger on Private Gitlab using Fastlane
stages:
- danger
Danger:
dependencies: []
stage: danger
script:
- fastlane danger_krn
tags:
- linux-native
https://gitlab.com/gitlab-org/gitlab-ce/issues/18106#note_12209189
@hjanuschka
hjanuschka / obj.mapper.php
Created May 3, 2017 20:53
php obj mapper
<?php
$mapper = new JsonMapper();
$contactObject = $mapper->map(
json_decode(file_get_contents('http://example.org/contact.json')),
new Contact()
);
?>
@hjanuschka
hjanuschka / singelton.php
Created May 2, 2017 21:13
singelton.php
<?php
class KMMSDKConfig {
protected static $_instance = null;
public $cookie_lifetime = -1;
public static function getInstance()
{
if (null === self::$_instance)
{
self::$_instance = new self;
@hjanuschka
hjanuschka / fan.at.js
Last active March 13, 2017 09:56
fxf.js
var g = document.createElement("script"),
s = document.getElementsByTagName("script")[0];
g.src = 'https://code.jquery.com/jquery-2.2.4.js';
s.parentNode.insertBefore(g, s);
var fxfMissionId="1b463464d9252bc9";
var fxfPollId = "15a41c66437548b0";
window.setTimeout(doIt, 2000)
function doIt() {
<!DOCTYPE html>
<html>
<head>
<title>fastlane/snapshot</title>
<meta charset="UTF-8">
<style type="text/css">
* {
font-family: "HelveticaNeue-Light", "Helvetica Neue Light", "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif;
font-weight: 300;
/**
* Simple localStorage with Cookie Fallback
* v.1.0.0
*
* USAGE:
* ----------------------------------------
* Set New / Modify:
* store('my_key', 'some_value');
*
* Retrieve:
require "tty-spinner"
require "tty-table"
require 'rest-client'
require "pry"
require 'xmlsimple'
require "colored"
module HJ
class VAST
require "spaceship"
Spaceship::Tunes::login("helmut@januschka.com")
app = Spaceship::Tunes::Application.find("krone.at-sport")
# get history of Promocodes
app.promocodes_history.each do | code |
puts "------"
puts "effective: #{code.effective_date}"
puts "expire: #{code.expiration_date}"