Skip to content

Instantly share code, notes, and snippets.

View mserge's full-sized avatar

Serge Markov mserge

  • NSPK, iFellow
  • Novosibirsk, Russia
View GitHub Profile
@mserge
mserge / IntelIJTrialReset.bat
Last active February 27, 2019 04:53
How to Reset InteIIiJ IDEA Evaluation Key in Windows
cd "C:%HOMEPATH%\.IntelliJIdea*\config"
rmdir "eval" /s /q
del "options\other.xml"
reg delete "HKEY_CURRENT_USER\Software\JavaSoft\Prefs\jetbrains\idea" /f
:: This will work for idea 2018.3 and later
::
:: It is Highly Advised to Purchase the JetBrain Softwares
:: This is only for the case You just want to Extend the
:: Trial Period and Evaluate the IDE for some more Time
@mserge
mserge / 01.FiniteAuditTrail.README.md
Created June 5, 2016 18:13 — forked from tortuetorche/01.FiniteAuditTrail.README.md
FiniteAuditTrail Trait For Laravel 4 with Example. Support for keeping an audit trail for any state machine, borrowed from the Ruby StateMachine audit trail gem.

FiniteAuditTrail Trait

Support for keeping an audit trail for any state machine, borrowed from the Ruby StateMachine audit trail gem. Having an audit trail gives you a complete history of the state changes in your model. This history allows you to investigate incidents or perform analytics, like: “How long does it take on average to go from state a to state b?”, or “What percentage of cases goes from state a to b via state c?”

Requirements

  1. PHP >= 5.4
  2. Laravel 4 framework
@mserge
mserge / Ingredient.java
Created February 27, 2016 11:25
Use edit text in Expandable Recycler
package com.ryanbrooks.expandablerecyclerviewsample.linear.vertical;
public class Ingredient {
private String mName;
public Ingredient(String name) {
mName = name;
}