Skip to content

Instantly share code, notes, and snippets.

View mgolkardev's full-sized avatar
💭
i'm happy

Mohammad Golkar mgolkardev

💭
i'm happy
View GitHub Profile
@gradlevv
gradlevv / NetworkConnectionListener.kt
Last active September 20, 2022 06:58
Lifecycle-aware Internet Network Detector
package com.your.package
import android.content.Context
import androidx.lifecycle.MutableLiveData
class NetworkConnectionListener constructor(context: Context) :
MutableLiveData<NetworkState>() {
private val connectionMonitor = NetworkDetector.getInstance(context.applicationContext)
@jpalala
jpalala / react_samples_list.md
Last active April 2, 2023 22:22 — forked from leecade/react_samples_list.md
React Samples List
@jll90
jll90 / install-ejabberd.sh
Last active October 7, 2018 11:34
Install ejabberd on centos7
#! bin bash
#This script installs a ejabberd on centos7
echo 'Updating packages...'
sudo yum update -y
echo 'Install wget'
sudo yum install wget -y
echo 'Download EPEL'
@codepope
codepope / mqtt2mongo.js
Created February 6, 2014 16:28
A simple MQTT to MongoDB bridge for Node
var mqtt=require('mqtt');
var mongodb=require('mongodb');
var mongodbClient=mongodb.MongoClient;
var mongodbURI='mongodb://username:password@server.mongohq.com:port/database';
var deviceRoot="demo/device/";
var collection,client;
mongodbClient.connect(mongodbURI,setupCollection);
function setupCollection(err,db) {
@jareware
jareware / SCSS.md
Last active April 23, 2024 22:13
Advanced SCSS, or, 16 cool things you may not have known your stylesheets could do

⇐ back to the gist-blog at jrw.fi

Advanced SCSS

Or, 16 cool things you may not have known your stylesheets could do. I'd rather have kept it to a nice round number like 10, but they just kept coming. Sorry.

I've been using SCSS/SASS for most of my styling work since 2009, and I'm a huge fan of Compass (by the great @chriseppstein). It really helped many of us through the darkest cross-browser crap. Even though browsers are increasingly playing nice with CSS, another problem has become very topical: managing the complexity in stylesheets as our in-browser apps get larger and larger. SCSS is an indispensable tool for dealing with this.

This isn't an introduction to the language by a long shot; many things probably won't make sense unless you have some SCSS under your belt already. That said, if you're not yet comfy with the basics, check out the aweso