Skip to content

Instantly share code, notes, and snippets.

View towfiqpiash's full-sized avatar
🌴
On vacation

Towfiqur Rahman towfiqpiash

🌴
On vacation
View GitHub Profile
@towfiqpiash
towfiqpiash / folder-maker-2d-animation-pipeline.bat
Created June 3, 2022 07:21
This script will create folder structure for 2D animation pipeline
MD "1-Pre Production"\1-Idea "1-Pre Production"\2-Script "1-Pre Production"\3-Concept "1-Pre Production"\4-Audio\1-Dialogue "1-Pre Production"\4-Audio\2-Record "1-Pre Production"\5-Storyboard\1-Board "1-Pre Production"\5-Storyboard\2-Animatic "1-Pre Production"\6-Color "1-Pre Production"\7-Reference
MD 2-Production\1-Assets\1-CH 2-Production\1-Assets\2-BG 2-Production\2-Animation\Scene\Cut
MD "3-Post Production"\"1-Comp asset"\Scene\Cut "3-Post Production"\2-Comp\Scene\Cut "3-Post Production"\3-FX\1-Asset "3-Post Production"\3-FX\2-Comp\Scene\Cut "3-Post Production"\4-Merge\1-Audio\1-Record "3-Post Production"\4-Merge\1-Audio\2-OST "3-Post Production"\4-Merge\"2-M Comp" "3-Post Production"\5-Export\1-Facebook "3-Post Production"\5-Export\2-Instagram "3-Post Production"\5-Export\3-Twitter "3-Post Production"\5-Export\4-Youtube
@towfiqpiash
towfiqpiash / README.md
Created April 24, 2019 09:11 — forked from lopspower/README.md
Hexadecimal color code for transparency

Hexadecimal color code for transparency

Twitter

How to set transparency with hex value ?

For example, you want to set 40% alpha transparence to #000000 (black color), you need to add 66 like this #66000000.

All hex value from 100% to 0% alpha:

@towfiqpiash
towfiqpiash / renamer.py
Last active February 13, 2019 06:28
Bulk file rename using list of file name from a text file
f = open('list.txt', 'r')
mynames = f.readlines()
print(mynames)
f.close()
import os
os.getcwd()
dirname = "/home/piash/Desktop/Test/files/"
for i, filename in enumerate(os.listdir(dirname)):
if 'saved' in filename:
@towfiqpiash
towfiqpiash / shobjanta-doc.md
Last active May 14, 2018 05:38
Shobjanta API Documentation

FORMAT: 1A

Shobjanta API Documentation

Feed [/feed]

Q&A Feed representation

Show general Q&A feed [GET /feed{?page}]

ShobjantaAPIDocs

Users [/users]

User resource representation.

Show all users [GET /users]

Get a JSON representation of all the registered users.

  • Request (application/json)
  • Body
@towfiqpiash
towfiqpiash / troubleshooter.md
Last active April 15, 2018 05:11
Troubleshooter

Wifi networks device not ready

sudo systemctl restart network-manager
@towfiqpiash
towfiqpiash / visualcode.md
Last active December 5, 2017 10:01
Microsoft Visual Code Shortcuts & Tips

Lesson 12 (Done)

Extensions

  1. Sublime Text Keymap
  2. Advanced New File (patbenatar)
  3. File utils
  4. PHP Intelephense
  5. Snippet creator
  6. Laravel Artisan
@towfiqpiash
towfiqpiash / ttf-mscorefonts-installer-fix.md
Created November 14, 2017 16:07
Failed to download extra data files ttf-mscorefonts-installer

The 3.4 version of the ttf-mecorefonts-installer package is broken.

Sourceforge (where the actual font files are downloaded from) changed the location that the fonts are stored rendering the package broken. I'd suggest purging that broken 3.4 version of the package and instead install the 3.6 version of the package from an alternative source, eg

To get rid of the current package

sudo apt purge ttf-mscorefonts-installer

To download the 3.6 version of the package to your Downloads folder

@towfiqpiash
towfiqpiash / html2plainText.js
Last active October 12, 2022 10:54
Javascript function to convert HTML to plain text
// converts HTML to text using Javascript
function html2text(html) {
var tag = document.createElement('div');
tag.innerHTML = html;
return tag.innerText;
}
// Convert Any copied text to plain text in TinyMCE (strip all tags)
paste_preprocess: function(plugin, args) {
@towfiqpiash
towfiqpiash / add-custom-font-wordpress.css
Last active October 4, 2017 18:25
How to add custom font to wordpress
/*
Follow these steps:
--------------------
1. Convert ttf font (e.g. solaimaniLipi.ttf) to woff using any of font-face generator tool online
2. Upload solaimaniLipi.woff to themename/assets/fonts/solaimaniLipi.woff
3. Add @font-face code to themename/style.css
4. Use font-family name anywhere you want to use this font
*/
@font-face {
font-family: solaimaniLipi;