Skip to content

Instantly share code, notes, and snippets.

Pankaj Mondal gurudeb

  • Kolkata, India
Block or report user

Report or block gurudeb

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@gurudeb
gurudeb / youtube_id_regex.php
Created Oct 2, 2018 — forked from ghalusa/youtube_id_regex.php
Extract the YouTube Video ID from a URL in PHP
View youtube_id_regex.php
<?php
// Here is a sample of the URLs this regex matches: (there can be more content after the given URL that will be ignored)
// http://youtu.be/dQw4w9WgXcQ
// http://www.youtube.com/embed/dQw4w9WgXcQ
// http://www.youtube.com/watch?v=dQw4w9WgXcQ
// http://www.youtube.com/?v=dQw4w9WgXcQ
// http://www.youtube.com/v/dQw4w9WgXcQ
// http://www.youtube.com/e/dQw4w9WgXcQ
// http://www.youtube.com/user/username#p/u/11/dQw4w9WgXcQ
@gurudeb
gurudeb / bootstrap-3-right-offset.css
Created Aug 11, 2016
Bootstrap 3 offset on right
View bootstrap-3-right-offset.css
.col-xs-offset-right-12 {
margin-right: 100%;
}
.col-xs-offset-right-11 {
margin-right: 91.66666667%;
}
.col-xs-offset-right-10 {
margin-right: 83.33333333%;
}
.col-xs-offset-right-9 {
@gurudeb
gurudeb / dl-file.php
Created May 8, 2016 — forked from hakre/dl-file.php
Wordpress login to download uploaded files
View dl-file.php
<?php
/*
* dl-file.php
*
* Protect uploaded files with login.
*
* @link http://wordpress.stackexchange.com/questions/37144/protect-wordpress-uploads-if-user-is-not-logged-in
*
* @author hakre <http://hakre.wordpress.com/>
* @license GPL-3.0+
@gurudeb
gurudeb / mixins.scss
Created Nov 7, 2015 — forked from AlexPashley/mixins.scss
SASS: Mixins for CSS
View mixins.scss
/* MIXINs */
@mixin transition( $val : ease 0.5s ) {
-webkit-transition: $val;
-moz-transition:$val;
-o-transition:$val;
-ms-transition:$val;
transition:$val;
}
@mixin text-shadow( $top: 3px, $left: 3px, $blur: 3px , $colour: #333 ) {
You can’t perform that action at this time.