Public source code sharing repository
Feed type is RSS / Encoding: UTF-8 / Feed contains 20 feed items / Language: n/a / Copyright: n/a
1 MySQL COUNT today week month - devcodepro

Tuesday 5 January 2021

SELECT *, COUNT(IF(date >= curdate(), 1, NULL)) 'todaycount', COUNT(IF(yearweek(date) = yearweek(curdate()), 1, NULL)) 'weekcount', COUNT(IF(month(date) = month(curdate()), 1, NULL)) 'monthcount', COUNT(IF(date <= curdate(), 1, NULL))...
Tuesday 5 January 2021 / 5 Jan 2021 | 9:42 pm EST
2 Bootstrap card header columns - devcodepro

Monday 4 January 2021

Col 8 Col 2 Col 2 Card Body
Monday 4 January 2021 / 4 Jan 2021 | 6:38 am EST
3 Responsive CSS background images - devcodepro

Saturday 2 January 2021

.myelement { background: rgb(68, 68, 68) url("images/myimage.jpg") no-repeat scroll center center / cover; width: 100%; display: block; } @media (min-width: 576px) { .myelement { height: 240px; } } @media (min-width: 768px) { .myelement { height:...
Saturday 2 January 2021 / 2 Jan 2021 | 10:39 pm EST
4 CSS comma separated classes - devcodepro

Tuesday 24 November 2020

.myclass:not(:last-child)::after { content: ", "; } /* class1 class2 class3 */
Tuesday 24 November 2020 / 24 Nov 2020 | 3:40 am EST
5 Switch two div jQuery - devcodepro

Tuesday 24 November 2020

jQuery(function(){ jQuery('.showsinglediv').click(function(){ jQuery('#divfirst').toggle(); jQuery('#divsecond').toggle(); }); }); // Click // First Div // Second Div
Tuesday 24 November 2020 / 24 Nov 2020 | 3:31 am EST
6 Bootstrap Columns Vertical Align Middle - devcodepro

Sunday 11 October 2020

column column column
Sunday 11 October 2020 / 11 Oct 2020 | 9:27 pm EDT
7 jQuery onclick show hide div - devcodepro

Sunday 27 September 2020

Show / Hide Content $(document).ready(function() { $('.showhidelink').click(function(e) { $('.showhide').toggle(); }); });
Sunday 27 September 2020 / 27 Sep 2020 | 1:47 am EDT
8 jQuery form on change - devcodepro

Sunday 6 September 2020

/* */ $(document).ready(function(){ $("#myform").on("click", function(){ $(".myclass").fadeIn(); }); });
Sunday 6 September 2020 / 6 Sep 2020 | 6:58 am EDT
9 Find and delete folder with SSH - devcodepro

Tuesday 21 July 2020

Search: find / -type d -name myfolder Output: /home/admin/public_html/example.com/myfolder Delete: rm -rf /home/admin/public_html/example.com/myfolder
Tuesday 21 July 2020 / 21 Jul 2020 | 9:57 pm EDT
10 Bootstrap 4 custom file input size - devcodepro

Tuesday 23 June 2020

Select Image $('#file').on('change',function(){ var fileName = $(this).val(); $(this).next('.custom-file-label').html(fileName); });
Tuesday 23 June 2020 / 23 Jun 2020 | 1:42 am EDT
11 Reddit toolbar bookmarklet code - devcodepro

Tuesday 10 March 2020

javascript:(function(){f='https://www.reddit.com/submit?url='+encodeURIComponent(window.location.href)+'&title='+encodeURIComponent(document.title);a=function(){if(!window.open(f+'noui=1&jump=doclose','enter','location=yes,links=no,scrollbars=n...
Tuesday 10 March 2020 / 10 Mar 2020 | 12:06 am EDT
12 fwrite - Write new line in text file - devcodepro

Sunday 8 March 2020

Sunday 8 March 2020 / 8 Mar 2020 | 1:58 am EST
13 How to check PHP version on XAMPP - devcodepro

Tuesday 11 February 2020

Option 1 Open C:\xampp\readme.txt + PHP 7.4.1 (VC15 X86 64bit thread safe) + PEAR + Apache 2.4.41 + MariaDB 10.4.11 + phpMyAdmin 5.0.1 + Tomcat 7.0.99 + XAMPP Control Panel Version 3.2.4. + OpenSSL 1.1.0g + ADOdb 518a Option 2 Create a php file...
Tuesday 11 February 2020 / 11 Feb 2020 | 9:14 pm EST
14 Web fonts available on all operating systems and browsers - devcodepro

Wednesday 25 December 2019

Sans-serif fonts Arial, Comic Sans, Trebuchet MS, Verdana Serif fonts Georgia, Times New Roman Monospace fonts Courier New
Wednesday 25 December 2019 / 25 Dec 2019 | 8:40 pm EST
15 PHP BBCode parser - devcodepro

Wednesday 11 December 2019

//[color=#BB0000]Font color example[/color] //[size=24]Font size example[/size] //[b]Bold text[/b] //[i]Italic text[/i] //[u]Underlined text[/u] //[s]Text with a strikethrough[/s] //[small]Small defines smaller text[/small] //[align=right]Align right example[/align]...
Wednesday 11 December 2019 / 11 Dec 2019 | 5:46 am EST
16 Bootstrap Blockquote Style - devcodepro

Wednesday 2 October 2019

blockquote { width: 98%; overflow: hidden; display: block; border-left: 5px solid #b9c5ca; background-color: #e4ecef; color: #6b6868; padding: 24px; margin: 22px; font-style: oblique; }
Wednesday 2 October 2019 / 2 Oct 2019 | 1:26 am EDT
17 WampServer - phpMyAdmin: No activity within 1440 seconds; please log in again. - devcodepro

Sunday 28 July 2019

C:/wamp/apps/phpmyadmin/libraries/config.default.php Replace this line of code: $cfg['LoginCookieValidity'] = 1440; With this line of code: $cfg['LoginCookieValidity'] = 3600; C:/wamp/bin/php/phpVER/php.ini Replace this line of code:...
Sunday 28 July 2019 / 28 Jul 2019 | 7:56 am EDT
18 Changing Dropdown Icon Bootstrap 4 - Font Awesome - devcodepro

Thursday 11 July 2019

.dropdown-toggle::after{ display: inline-block; font: normal normal normal 14px/1 FontAwesome; font-size: inherit; text-rendering: auto; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; content:"\f078"; border-top: 0;...
Thursday 11 July 2019 / 11 Jul 2019 | 1:30 am EDT
19 Bootstrap 4 Modal pushing content to the left fix - devcodepro

Tuesday 18 June 2019

.modal-open { overflow: visible; } .modal-open, .modal-open .fixed-top { height: 63px; padding-left: 0!important; padding-right: 0!important; margin: 0!important; }
Tuesday 18 June 2019 / 18 Jun 2019 | 3:22 am EDT
20 Smarty Random Color - devcodepro

Saturday 15 June 2019

randomcolor {/foreach} * ------------------------------------------------------------- */ function smarty_function_randomcolor($params, Smarty_Internal_Template $template) { $colors =...
Saturday 15 June 2019 / 15 Jun 2019 | 9:53 pm EDT