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 create_post_your_post() { | |
| register_post_type( 'your_post', | |
| array( | |
| 'labels' => array( | |
| 'name' => __( 'Your Post' ), | |
| ), | |
| 'public' => true, | |
| 'hierarchical' => true, |
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 | |
| /** | |
| * This shortcode will allow you to create a snapshot of a remote website and post it | |
| * on your WordPress site. | |
| * | |
| * [snapshot url="http://www.wordpress.org" alt="WordPress.org" width="400" height="300"] | |
| */ | |
| add_shortcode( 'snapshot', function ( $atts ) { | |
| $atts = shortcode_atts( 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
| # Compiled source # | |
| ################### | |
| *.com | |
| *.class | |
| *.dll | |
| *.exe | |
| *.o | |
| *.so | |
| # Packages # |
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
| @mixin image-2x($image, $width, $height) { | |
| @media (min--moz-device-pixel-ratio: 1.3), | |
| (-o-min-device-pixel-ratio: 2.6/2), | |
| (-webkit-min-device-pixel-ratio: 1.3), | |
| (min-device-pixel-ratio: 1.3), | |
| (min-resolution: 1.3dppx) { | |
| /* on retina, use image that's scaled by 2 */ | |
| background-image: url($image); | |
| background-size: $width $height; | |
| } |
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
| /* | |
| IR Breakbeam sensor | |
| contador hecho por Alejandro y modificado para usar con IR | |
| */ | |
| #define LEDPIN1 13 | |
| #define LEDPIN2 12 | |
| #define SENSORPIN1 4 | |
| #define SENSORPIN2 5 |
NewerOlder