This file contains 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
// ReactiveCocoaExtension.swift | |
// | |
// Simple ReactiveCocoa Swift extensions using generics | |
// Created by josafafilho<josafafilho15@gmail.com> on 7/19/15. | |
import Foundation | |
import ReactiveCocoa | |
extension RACSignal { | |
func subscribeNextAs<T>(nextClosure:(T) -> ()) -> () { |
This file contains 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 gridSearch($big,$small){ | |
$firstMatch = null; | |
foreach($big as $key => $bigLine){ | |
$position = strpos($bigLine,$small[0]); | |
if ($position!==false){ | |
$firstMatch = [$key,$position]; | |
break; | |
} |
This file contains 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
/** | |
* gets the current post type in the WordPress Admin | |
*/ | |
public function get_current_post_type() | |
{ | |
global $post, $typenow, $current_screen; | |
//we have a post so we can just get the post type from that | |
if ($post && $post->post_type) | |
return $post->post_type; |
This file contains 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 | |
/** | |
* Classes criadas com base no plugin Comment Popularity | |
* @link https://github.com/humanmade/comment-popularity/ | |
*/ | |
/** | |
* Class WP_Side_Comments_Visitor | |
*/ |
This file contains 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
{ | |
"success":true, | |
"data":[ | |
{ | |
"section_id":"6", | |
"section_text":"II - os dados pessoais objeto do tratamento tenham sido coletados no territ\u00f3rio nacional.", | |
"comments":[ | |
{ | |
"author":"Pensando o Direito", | |
"comment_text":"teste", |
This file contains 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
{ | |
"success":false, | |
"data":{ | |
"error_message":"Nenhum coment\u00e1rio encontrado" | |
} | |
} |
This file contains 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
.highlight { | |
background-color: yellow | |
} | |
.highlight.current { | |
background-color: orange; | |
} |
This file contains 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
<p id="commentable-section-1" class="commentable-section" data-section-id="1">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec arcu leo, laoreet in tempus sed, malesuada lacinia tortor. Curabitur ipsum elit, elementum non nunc nec, blandit posuere augue. Fusce eu neque sem. Morbi nisi velit, elementum a hendrerit rhoncus, viverra sed ipsum. Suspendisse sit amet dignissim arcu, eget cursus arcu. Donec sed malesuada nulla. Donec eget pretium enim. Curabitur a semper nunc. Nunc vel augue eu elit lacinia luctus. Curabitur ut pulvinar purus. Duis ultricies fermentum elit, nec aliquet libero mattis eget. Sed efficitur est eros, nec elementum ex posuere sed. Suspendisse turpis lacus, pellentesque a tempor nec, ultrices vel erat. In sed feugiat felis. In et varius sapien, et semper arcu.<div class="side-comment has-comments no-current-user"> | |
<a href="#" class="marker"> | |
<span>7</span> | |
</a> | |
<div class="comments-wrapper"> | |
<div class="comments-header clearfix"> | |
<div class="pull-left"> | |
<h5 class= |
This file contains 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
p.commentable-section.active { | |
width: 100% | |
} | |
.commentable-section.active:after { | |
display: none | |
} | |
.side-comment.active { | |
position: relative; | |
width: 100%; | |
left: 0; |