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
    
  
  
    
  | echo'<table>'; | |
| foreach ($_POST as $key => $value) { | |
| echo "<tr>"; | |
| echo "<td>"; | |
| echo $key; | |
| echo "</td>"; | |
| echo "<td>"; | |
| echo $value; | |
| echo "</td>"; | 
  
    
      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
    
  
  
    
  | in Tools/New Plugin...:>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> | |
| import sublime, sublime_plugin | |
| class IncrementSelectionCommand(sublime_plugin.TextCommand): | |
| def run(self, edit): | |
| start_value = int(self.view.substr(self.view.sel()[0])) | |
| counter = 0 | |
| for selection in self.view.sel(): | |
| self.view.insert(edit, selection.begin(), str(start_value + counter)) | 
  
    
      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
    
  
  
    
  | <html> | |
| <head> | |
| <script> | |
| $( document ).ready(function() { | |
| $('#scrolltotop').fadeOut(); | |
| $('#scrolltotop').on("click", function () { | |
| var percentageToScroll = 100; | |
| var percentage = percentageToScroll / 100; | |
| var height = $(document).scrollTop(); | |
| var scrollAmount = height * (1 - percentage); | 
  
    
      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
    
  
  
    
  | sudo adduser $USER www-data | |
| sudo chown -R www-data:www-data /var/www | |
| sudo chmod -R g+rwX /var/www | |
| sudo chgrp www-data /var/www | |
| #logout and login | 
  
    
      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
    
  
  
    
  | <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <style type="text/css"> | |
| .biscuit { | |
| display: inline-block; | |
| min-width: 20px; | |
| vertical-align: baseline; | |
| margin-left: 10px; | |
| border-radius: 2px; | 
  
    
      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
    
  
  
    
  | //receiver | |
| CREATE TABLE `sync` ( | |
| `name` varchar(100) NOT NULL, | |
| `id` int(11) NOT NULL, | |
| `address` varchar(100) NOT NULL, | |
| `phone` varchar(100) NOT NULL | |
| ) ENGINE=InnoDB DEFAULT CHARSET=latin1; | 
  
    
      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 | |
| public function test($value='') | |
| { | |
| echo '<h2>Controller</h2>'.$this->router->class.'<pre>'; | |
| $mthds = (get_class_methods ( $this->router->class )); | |
| foreach ($mthds as $key => $value) { | |
| echo $value.'<br>'; | |
| } | |
| echo '</pre><h2>Model</h2>'; | |
| echo '<pre>'.$this->router->class.'_mdl'; | 
  
    
      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
    
  
  
    
  | var timeout = null; | |
| $(document).on('mousemove', function() { | |
| if (timeout !== null) { | |
| $(document.body).text(''); | |
| clearTimeout(timeout); | |
| } | |
| timeout = setTimeout(function() { | |
| $(document.body).text('Mouse idle for 3 sec'); | 
  
    
      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
    
  
  
    
  | onchange="check_start_date(this)" | |
| function check_start_date1(object) { | |
| var name = 'input[name="' + object.name + '"]'; | |
| var objects = $(name); | |
| var index = objects.index( object ); | |
| var leave_type_id = document.getElementsByName('leave_type_id[]'); | |
| var detail_start_date = document.getElementsByName('detail_start_date[]'); | 
  
    
      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 | |
| $start = microtime(true); | |
| //some code | |
| $now = microtime(true); | |
| echo $now - $start . '<br>'; | |
| $start = $now; |