Skip to content

Instantly share code, notes, and snippets.

@levic92
levic92 / deluge_extractor.py
Created September 28, 2017 01:07 — forked from Chris-V/deluge_extractor.py
Extract archives from a Deluge download and then call Rad/Sonarr to import the files.
#!/usr/bin/env python3
"""
Extract archives from a Deluge download and then call Rad/Sonarr to import the files.
Extra files (as configured in radarr or sonarr) are also copied to the
extraction directory.
This script has been tested with:
- Linux (tested with Arch)
@levic92
levic92 / ex-navigation.md
Created January 13, 2017 01:08 — forked from knowbody/ex-navigation.md
My exponent's ex-navigation docs/thoughts

Exponent - ex-navigation

This is for now, for my personal use only, things might not be correctly explained here. For the official docs please check: https://github.com/exponentjs/ex-navigation/blob/master/README.md

Navigation bar configuration

On every screen you can use the built-in navigation bar, you can add a title, left button, right button or change navigation bar’s style. All you need to do is pass appropriate params to navigationBar in the route configuration:

import React, { Component } from 'react';

Rails mailer structure

Your application is growing, and you are starting to have a complex mailing system: notification emails, retention emails, misc user emails, admin emails, etc...

It's time to clean up your mailers !

Existing mailer

You may already have a single mailer, responsible of every emails, like this one:

@levic92
levic92 / ErrorManager.java
Created May 18, 2016 16:29 — forked from jrichardlai/ErrorManager.java
ErrorManager for React Native
import com.bugsnag.android.Bugsnag;
import com.bugsnag.android.MetaData;
import com.bugsnag.android.Severity;
import com.facebook.react.bridge.*;
import java.io.File;
import java.util.HashMap;
public class ErrorManager extends ReactContextBaseJavaModule {
public ErrorManager(ReactApplicationContext reactContext) {
@levic92
levic92 / input-group-in-simple-form.md
Created October 20, 2015 02:48 — forked from chunlea/input-group-in-simple-form.md
How to use Boostrap 3 input-group in Simple Form

Finally, Simple Form support Boostrap 3. 👏

But I found it still dosen't support some components in Bootstrap 3. Or may be in the future. But I can't wait, so I find a solution to support them. It was inspired by heartcombo/simple_form#531 (comment) .

This is a final solution and I used in my project.

simple_form