Skip to content

Instantly share code, notes, and snippets.

View minhlaoleu's full-sized avatar
🐤
I'm newbie

Minh Bùi minhlaoleu

🐤
I'm newbie
  • Ho Chi Minh City
  • 06:50 (UTC +07:00)
View GitHub Profile
@minhlaoleu
minhlaoleu / it-ebooks.md
Created September 14, 2023 16:24 — forked from baiwfg2/it-ebooks.md
Download ebooks as you want
@minhlaoleu
minhlaoleu / sed cheatsheet
Created December 17, 2022 09:51 — forked from freewind/sed cheatsheet
magic of sed -- find and replace "text" in a string or a file
FILE SPACING:
# double space a file
sed G
# double space a file which already has blank lines in it. Output file
# should contain no more than one blank line between lines of text.
sed '/^$/d;G'
@minhlaoleu
minhlaoleu / responsive-youtube-iframe.css
Created November 21, 2022 14:39 — forked from dcondrey/responsive-youtube-iframe.css
Really responsive Youtube iFrame (width XOR height ) *Preview available here: https://www.thebouqs.com/en/content/8-how-it-works
#hero { width:100%;height:100%;background:url('{$img_ps_dir}cms/how-it-works/hero.jpg') no-repeat top center; }
.videoWrapper { position:relative;padding-bottom:56.25%;padding-top:25px;max-width:100%; }
@media (min-width:1000px) {
#hero { background-size:cover; }
}
@media (max-width:767px) {
#hero { width:100%;height:94%!important;background:url('{$img_ps_dir}cms/how-it-works/hero-mobile.jpg') no-repeat top center;background-position: 0 -155px;height: 273px!important;background-position:0 -209px; }
}
@media (max-width:540px) {
@minhlaoleu
minhlaoleu / PHPExcel_Basics.md
Created October 4, 2016 07:44 — forked from r-sal/PHPExcel_Basics.md
PHPExcel Notes and code snippets

Basics

Creating a new PHPExcel Object.

    $this->PHPExcel = new PHPExcel();

Working with sheets

Creating a new sheet: