Skip to content

Instantly share code, notes, and snippets.

View sleon-fmi's full-sized avatar

Sergio Leon sleon-fmi

  • Ferris Marketing, Inc.
  • Miami, FL
View GitHub Profile
const kebabize = val => {
return val
.replace(/([a-z])([A-Z])/g, "$1-$2")
.replace(/\s+/g, "-")
.replace(/_{1,}/g, "-")
.toLowerCase();
};
const src = [
"hocusPocus",
@sleon-fmi
sleon-fmi / README.rst
Created November 2, 2018 15:51 — forked from dupuy/README.rst
Common markup for Markdown and reStructuredText

Markdown and reStructuredText

GitHub supports several lightweight markup languages for documentation; the most popular ones (generally, not just at GitHub) are Markdown and reStructuredText. Markdown is sometimes considered easier to use, and is often preferred when the purpose is simply to generate HTML. On the other hand, reStructuredText is more extensible and powerful, with native support (not just embedded HTML) for tables, as well as things like automatic generation of tables of contents.

@sleon-fmi
sleon-fmi / BroadcastDisposable.java
Created June 14, 2018 19:45 — forked from Anrimian/BroadcastDisposable.java
Simple RxJava2 wrapper for Android BroadcastReceiver
/**
* A custom implementation of {@link Disposable} for use with {@link RxReceivers} that
* takes care of un-registering the underlying Broadcast Receiver when it is disposed.
*/
class BroadcastDisposable implements Disposable {
private BroadcastReceiver receiver;
private Context ctx;
private boolean isDisposed = false;
@sleon-fmi
sleon-fmi / ANDGCMalt.txt
Created May 10, 2018 22:26 — forked from CHEF-KOCH/ANDGCMalt.txt
Android Google Cloud Messaging (GCM) alternative
Android Cloud to Device Messaging Framework
https://developers.google.com/android/c2dm/?csw=1
MQTT
http://dalelane.co.uk/blog/?p=1599
https://github.com/JesseFarebro/Android-Mqtt
http://stephendnicholas.com/archives/219
http://stephendnicholas.com/archives/1217
http://ollieparsley.com/2013/05/20/using-mqtt-as-a-gcm-replacement-for-android-push-notifications/
http://www.slideshare.net/henriksjostrand/devmobile-2013-low-latencymessagingusingmqtt