#A BADASS list for faster Web Development!
Recently, I decided to organize my bookmarks. So, like a good fellow, I am sharing with you. I hope you enjoy!
Frameworks | Weapons | Checklist | Docs | Community | Learning | For The Win
#A BADASS list for faster Web Development!
Recently, I decided to organize my bookmarks. So, like a good fellow, I am sharing with you. I hope you enjoy!
Frameworks | Weapons | Checklist | Docs | Community | Learning | For The Win
| /* image replacement | |
| Scott Kellum | |
| */ | |
| .ir { | |
| text-indent: 100%; | |
| white-space: nowrap; | |
| overflow: hidden; | |
| } |
| <?php | |
| // adiciona o post ao WordPress | |
| add_action('wp_ajax_nopriv_post_insert', 'post_insert'); | |
| add_action('wp_ajax_post_insert', 'post_insert'); | |
| function post_insert(){ | |
| require_once(ABSPATH . 'wp-admin/includes/image.php'); | |
| if('POST' == $_SERVER['REQUEST_METHOD'] && !empty( $_POST['action'] )) { |
| <?php | |
| //função do curl baseado no script do David Walsh (http://davidwalsh.name/) | |
| function curl_get_result($url) { | |
| $ch = curl_init($url); | |
| $timeout = 50; | |
| curl_setopt($ch,CURLOPT_URL,$url); | |
| curl_setopt($ch,CURLOPT_RETURNTRANSFER,1); | |
| curl_setopt($ch,CURLOPT_CONNECTTIMEOUT,$timeout); | |
| $data = curl_exec($ch); |
| function scrollUp() { | |
| var content_animate = $(jQuery.browser.webkit ? "body": "html"); // bug fix to animate on firefox and uses to opera and ie. | |
| var _position = content_animate.scrollTop(); | |
| if(_position > 0) { | |
| content_animate.animate({ | |
| scrollTop: 0 | |
| }, 1500); | |
| } | |
| } |
| Array.prototype.remove = function(i) { | |
| var index; | |
| if( ( index = this.indexOf( i ) ) !== -1 ) { | |
| this.splice( index , 1 ); | |
| } | |
| return this | |
| }; |
| #maps { | |
| width: 100%; | |
| height: 100%; | |
| } | |
| // this is solution | |
| #maps img { | |
| max-width: inherit; | |
| } |