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
    
  
  
    
  | .spriteHelper(@image, @x, @y, @spriteX, @spriteY) { | |
| background: url("img/@{image}.png") no-repeat; | |
| background-position: -(@x*@spriteX) -(@y*@spriteY); | |
| } | |
| .sprite(@image, @x, @y) when (@image = sprite1), (@image = sprite3){ | |
| @spriteX: 32px; | |
| @spriteY: 16px; | |
| .spriteHelper(@image, @x, @y, @spriteX, @spriteY); | |
| } | |
| .sprite(@image, @x, @y) when (@image = sprite2){ | 
  
    
      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
    
  
  
    
  | ::selection { | |
| background: #ffb7b7; /* Safari */ | |
| } | |
| ::-moz-selection { | |
| background: #ffb7b7; /* Firefox */ | |
| } | |
| p.red::selection { | |
| /* here */ | |
| } | 
  
    
      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
    
  
  
    
  | if ( function_exists('posix_getpwuid') ) { | |
| $this->wwwUser = \posix_getpwuid(\posix_geteuid()); | |
| } else { | |
| $this->wwwUser = get_current_user(); | |
| } | |
  
    
      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
    
  
  
    
  | .clearfix { | |
| *zoom: 1; | |
| } | |
| .clearfix:before, | |
| .clearfix:after { | |
| display: table; | |
| line-height: 0; | |
| content: ""; | |
| } | 
  
    
      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, body').animate({ | |
| scrollTop: $("#elementID").offset().top | |
| }, 2000); | 
  
    
      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
    
  
  
    
  | git rm `git status | grep deleted | awk '{print $3}'` | 
  
    
      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
    
  
  
    
  | add_action('admin_menu','wphidenag'); | |
| /** | |
| * Remove notification ribbon for wordpress update | |
| * | |
| * @since 0.1.0 | |
| * @return void | |
| */ | |
| function wphidenag() { | |
| remove_action( 'admin_notices', 'update_nag', 3 ); | |
| } | 
  
    
      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
    
  
  
    
  | function home_page_menu_args( $args ) { | |
| $args['show_home'] = true; | |
| return $args; | |
| } | |
| add_filter( 'wp_page_menu_args', 'home_page_menu_args' ); | 
  
    
      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
    
  
  
    
  | function get_wp_version( $wp_folder ) { | |
| preg_match("/'(.*?)'/", exec( "grep wp_version ".$wp_folder."/wp-includes/version.php" ), $matches); | |
| return $matches[1]; | |
| } | 
  
    
      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
    
  
  
    
  | function get_wordpress_last_version_number() { | |
| $link = `curl http://wordpress.org | grep '<a class="button download-button button-large"'`; | |
| preg_match_all("/\<a.*href=\"(.*?)\".*?\>(.*)\<\/a\>+/", $link, $matches, PREG_SET_ORDER); | |
| $last_version = str_replace("Download WordPress ", '', $matches[0][2]); | |
| return $last_version; | |
| } | 
OlderNewer