Skip to content

Instantly share code, notes, and snippets.

@sufiiiyan
sufiiiyan / new.js
Last active April 7, 2020 07:07 — forked from rishabhmhjn/tweetLinky.js
This is an AngularJS filter to linkify #hashtags and @mention texts into respective Twitter URLsDemo - http://plnkr.co/edit/vrdgxU?p=preview
app.filter('hashtags',['$filter', '$sce',
function($filter, $sce) {
return function(text, target, type) {
if (!text) return text;
var replacedText = $filter('linky')(text, target);
var targetAttr = "";
if (angular.isDefined(target)) {
targetAttr = ' target="' + target + '"';
}
if(type === 'twitter'){
@sufiiiyan
sufiiiyan / sql-mongo_comparison.md
Created March 30, 2020 07:21 — forked from aponxi/sql-mongo_comparison.md
MongoDb Cheat Sheets

SQL to MongoDB Mapping Chart

SQL to MongoDB Mapping Chart

In addition to the charts that follow, you might want to consider the Frequently Asked Questions section for a selection of common questions about MongoDB.

Executables

The following table presents the MySQL/Oracle executables and the corresponding MongoDB executables.

@sufiiiyan
sufiiiyan / payment.component.css
Created October 4, 2019 05:34 — forked from shah-smit/payment.component.css
Stripe Payment into Angular 4
* {
font-family: "Helvetica Neue", Helvetica;
font-size: 15px;
font-variant: normal;
padding: 0;
margin: 0;
}
html {
height: 100%;
@sufiiiyan
sufiiiyan / livestream.component.ts
Created October 4, 2019 05:29 — forked from shah-smit/livestream.component.ts
Angular 4, Live Streaming
import { Component, OnInit, OnDestroy } from '@angular/core';
import { Router } from '@angular/router';
import { LoginService, AzureService } from '../services'
import { User, LiveSession } from '../models'
import { SharedService } from "app/services/shared.service";
//declare var SimpleWebRTC;
declare var io;
declare var conference;
@Component({