Skip to content

Instantly share code, notes, and snippets.

View DonMat's full-sized avatar

Mateusz Utkała DonMat

View GitHub Profile
@DonMat
DonMat / woocommerce_shipping_method_list_plugin.php
Created April 6, 2018 17:05
Woocommerce list shipping methods snippet
<?php
/**
* Plugin Name: Woocommerce shipping methods list
* Plugin URI: https://woocommerce.com/
* Description: Use this snippet to show all available or only enabled shipping methods
* Version: 1.0
* Author: Mateusz Utkała
* Author URI: https://utkala.pl/
* Developer: Mateusz Utkała
*
@DonMat
DonMat / CaesarCipher.rb
Created October 27, 2017 09:36
Infakt_workshops_challenge_2
class CaesarCipher
@@alphabet = ('a'..'z').to_a.freeze
def initialize(text, rotate=13)
@text = text
@rotate = rotate
end
def perform
rotated_alphabet = @@alphabet.rotate(@rotate).to_s
@DonMat
DonMat / passed_or_failed.rb
Created October 27, 2017 09:35
Infakt_workshops_challenge_1
def passed_or_failed(hash, threshold)
result = {}
result[:passed] = hash.select{|k,v| v.to_i >= threshold.to_i}
result[:failed] = hash.select{|k,v| v.to_i < threshold.to_i}
result
end
hash = {"Mark" => 10, "Ellen" => 65, "Roger" => 20, "Mike" => "70"}
puts passed_or_failed(hash, "65")
@DonMat
DonMat / Crashlytics.md
Last active May 29, 2017 19:23
Crashlytics - Lightweight & Powerful crash reporting

Crashlytics - Lightweight & Powerful crash reporting

Overview

Crashlytics is a part of Fabric.io and gives mobile app developers insight into their apps’ performance, so you can pinpoint and fix issues quickly and easily. It is free to use for everybody.

How to start, step by step guide

  1. Register on Fabric.io
  2. Download Android Studio plugin Fabric for Android