Skip to content

Instantly share code, notes, and snippets.

View manoj-singh-developer's full-sized avatar
🎯
Focusing

Manoj Singh manoj-singh-developer

🎯
Focusing
View GitHub Profile
@manoj-singh-developer
manoj-singh-developer / moment-filter.js
Created July 31, 2019 09:01 — forked from cmmartin/moment-filter.js
A generic Moment.js date filter for Angular.js
// REQUIRES:
// moment.js - http://momentjs.com/
// USAGE:
// {{ someDate | moment: [any moment function] : [param1] : [param2] : [param n]
// EXAMPLES:
// {{ someDate | moment: 'format': 'MMM DD, YYYY' }}
// {{ someDate | moment: 'fromNow' }}
@manoj-singh-developer
manoj-singh-developer / instafeed_tags.py
Created November 22, 2017 15:34 — forked from yomguy/instafeed_tags.py
Instafeed like django tag displaying an instagram gallery by hashtag (as a workaround since official API change in june 2016)
from django import template
import requests, json
register = template.Library()
@register.simple_tag
def instafeed(hashtag, count):
"""Simply use with autoescapeoff, for example: {% autoescape off %}{% instafeed 'manifeste16' 8 %}{% endautoescape %}"""
html = ''