Skip to content

Instantly share code, notes, and snippets.

View push_notifications.dart
import 'package:firebase_messaging/firebase_messaging.dart';
class PushNotificationsManager {
PushNotificationsManager._();
factory PushNotificationsManager() => _instance;
static final PushNotificationsManager _instance = PushNotificationsManager._();
@JFernandoGomez
JFernandoGomez / introrx.md
Created Jun 4, 2018 — forked from staltz/introrx.md
The introduction to Reactive Programming you've been missing
View introrx.md
@JFernandoGomez
JFernandoGomez / phpzmqinstall.sh
Created Nov 10, 2016 — forked from Kamisama666/phpzmqinstall.sh
Installation of ZeroMQ and php-zmq extension on Ubuntu 14.04. Must be run as root
View phpzmqinstall.sh
#!/bin/bash
cd /tmp
apt-get update
apt install -y libtool pkg-config build-essential autoconf automake uuid-dev git wget
git clone git://github.com/jedisct1/libsodium.git
cd libsodium/
./autogen.sh
./configure && make check
make install
ldconfig
View _affixWithinContainer.md

What this does:

Within an <ion-scroll>, this directive creates sticky item headers that get bumped out of the way by the next item.

Demo: http://cl.ly/2u2X390s0H1a

Requirements:

  • Needs UnderscoreJS for its _.throttle utility.
  • Must be used within an <ion-scroll> or <ion-content>
View SassMeister-input-HTML.html
<!DOCTYPE html>
<head>
<link rel='stylesheet' href='' type=>
</head>
<body>
<section>
<header>
<nav>
<ul>
<li><a href="">Home</a></li>