git rm . -r --cached git add . git commit -m "fixed untracked files"
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| function do_upload() | |
| { | |
| $this->load->library('upload'); | |
| $files = $_FILES; | |
| $cpt = count($_FILES['userfile']['name']); | |
| for($i=0; $i<$cpt; $i++) | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| $date = array(); | |
| $months = array(); | |
| $years = array(); | |
| $yearsFull = array(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| .main-menu a { | |
| overflow: hidden; | |
| padding: 0 12px; | |
| height:17px; | |
| } | |
| .main-menu a span { | |
| position: relative; | |
| display: inline-block; | |
| -webkit-transition: -webkit-transform 0.3s; |
git pull //pull all the change from remote repository git checkout -b branch-name-here //create new branch for your bug/feature/issue
"Do Your Work Here" "keep it in small chunks, the smaller your commits the better, in case things go wrong" git add . // add any new file or/and modify any file git status or/and git diff // see the changes you're going to commit git commit -m "Detailed messages here" //make the commit with a nice detailed messages back go to line 4 until your bug/feature/issue finish
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $(document).ready(function(){ | |
| $('input').each(function() { | |
| var default_value = this.value; | |
| $(this).focus(function() { | |
| if(this.value == default_value) { | |
| this.value = ''; | |
| } | |
| }); | |
| $(this).blur(function() { | |
| if(this.value == '') { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $(document).ready(function(){ | |
| $("input[placeholder], textarea[placeholder]").each(function(i, e){ | |
| if($(e).val() == "") | |
| { | |
| $(e).val($(e).attr("placeholder")); | |
| } | |
| $(e).blur(function(){ | |
| if($(this).val()=="") | |
| $(this).val($(e).attr("placeholder")); | |
| }).focus(function(){ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* Flatten das boostrap */ | |
| .well, .navbar-inner, .popover, .btn, .tooltip, input, select, textarea, pre, .progress, .modal, .add-on, .alert, .table-bordered, .nav>.active>a, .dropdown-menu, .tooltip-inner, .badge, .label, .img-polaroid { | |
| -moz-box-shadow: none !important; | |
| -webkit-box-shadow: none !important; | |
| box-shadow: none !important; | |
| -webkit-border-radius: 0px !important; | |
| -moz-border-radius: 0px !important; | |
| border-radius: 0px !important; | |
| border-collapse: collapse !important; | |
| background-image: none !important; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| $a = 3; | |
| $b = 5; | |
| echo $a.' - '.$b.'<br/>'; | |
| $a = $a.'-'.$b; | |
| $a = explode('-',$a); | |
| $b = (int)$a[0]; | |
| $a = (int)$a[1]; | |
| echo $a.' - '.$b; | |
| ?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [[Category:Libraries::Extended]] | |
| ### Extending Language Class | |
| This is more or less an example on how to extend the core language class to fetch language lines from a database if the language file doesn't exist. | |
| Works identically the same as the existing core class with no extra params required. | |
| Everything you'll need or need to know is in the code comments. Enjoy... feel free to expand on it and repost it, or whatever. | |
| ```php |