Skip to content

Instantly share code, notes, and snippets.

View ohidurbappy's full-sized avatar
🌻
GREETINGS!

Ohidur Rahman Bappy ohidurbappy

🌻
GREETINGS!
View GitHub Profile
@ohidurbappy
ohidurbappy / Android Materail Design Colors
Created September 21, 2018 20:09
A collection of standard materail colors for use in Android app
<?xml version="1.0" encoding="utf-8"?>
<resources>
<!-- google's material design colours from
http://www.google.com/design/spec/style/color.html#color-ui-color-palette -->
<!--reds-->
<color name="md_red_50">#FFEBEE</color>
<color name="md_red_100">#FFCDD2</color>
<color name="md_red_200">#EF9A9A</color>
@ohidurbappy
ohidurbappy / links.md
Last active October 21, 2018 21:10
Useful Website Links
@ohidurbappy
ohidurbappy / widget.js
Created November 3, 2018 21:30 — forked from lukencode/widget.js
Starter template for creating jsonp embeddable widgets.
(function () {
var scriptName = "embed.js"; //name of this script, used to get reference to own tag
var jQuery; //noconflict reference to jquery
var jqueryPath = "http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js";
var jqueryVersion = "1.8.3";
var scriptTag; //reference to the html script tag
/******** Get reference to self (scriptTag) *********/
var allScripts = document.getElementsByTagName('script');
@ohidurbappy
ohidurbappy / SCSS.md
Created November 11, 2018 22:20 — forked from jareware/SCSS.md
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

@ohidurbappy
ohidurbappy / gradient-deg-v2.markdown
Created November 23, 2018 22:01
Gradient [deg] v2
@ohidurbappy
ohidurbappy / views-count.py
Created March 25, 2020 05:31
Youtube Playlist views count
'''
File name: program.py
Author: Ohidur Rahman Bappy
Author Website: https://ohidur.com
Author Email: ohidurbappy@gmail.com
Date created: 19/03/2020
Date last modified: 19/03/2020
Python Version: 3.8.1
'''
from GoogleNews import GoogleNews
googlenews = GoogleNews()
# googlenews = GoogleNews('en','d')
q=input("Input a keyword to Search: ")
googlenews.search(q)
googlenews.getpage(1)
# googlenews.gettext()
# googlenews.getlinks()
@ohidurbappy
ohidurbappy / google_translate_api.py
Created March 30, 2020 04:19
Google Translate API with python
from googletrans import Translator
translator = Translator()
# use this code for local translator service
# translator = Translator(service_urls=[
# 'translate.google.com',
# 'translate.google.co.kr',
# ])
# open the file 'google_translate_input.txt' and read line by line
@ohidurbappy
ohidurbappy / README.md
Created June 9, 2020 17:34 — forked from joyrexus/README.md
Vanilla JS equivalents of jQuery methods

Sans jQuery

Events

// jQuery
$(document).ready(function() {
  // code
})