Skip to content

Instantly share code, notes, and snippets.

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

Denis Wane wanedenis

🏠
Working from home
View GitHub Profile
@wanedenis
wanedenis / starUML.md
Last active October 28, 2020 10:26 — forked from trandaison/starUML.md
Get full version of StarUML
package com.alexzh.recyclerviewsetemptyview;
import android.content.Context;
import android.support.annotation.Nullable;
import android.support.v7.widget.RecyclerView;
import android.util.AttributeSet;
import android.view.View;
public class EmptyRecyclerView extends RecyclerView {
private View mEmptyView;
@wanedenis
wanedenis / gist:a684891aa948a00954b86c06aa52747f
Created September 25, 2017 08:01 — forked from Mparaiso/gist:5055440
Sample PHP+Mongo app on Heroku

Sample PHP+Mongo app on Heroku

  1. Install any of the Mongo add-ons available at http://addons.heroku.com

  2. Vendor the Mongo driver with your application. You can download it here:

    https://github.com/wuputah/heroku-libraries/raw/master/php/mongo/mongo.so
    

    Add it to a folder like "ext".

@wanedenis
wanedenis / viewer.html
Created August 2, 2017 12:02 — forked from squallstar/viewer.html
Pinch gestures for pdf.js
<script type="text/javascript">
var gesturesSetUp = false;
var ua = navigator.userAgent.toLowerCase();
var isAndroid = ua.indexOf("android") > -1;
document.addEventListener('textlayerrendered', function (e) {
if (gesturesSetUp || e.detail.pageNumber !== PDFViewerApplication.page) {
return;
}