CCCPaste

Untitled

#include <stdio.h>
#include <ctype.h>
#include <string.h>

int zamena(int *niza, int n, int *prv_najgolem_indeks, int *vtor_najgolem_indeks) {

decom_func

# Create '.bak' copy of file(s) and strip the XML comments
decom() {
for i in "$@"; do
ruby -i.bak -ne 'print unless /COMMENT OUT for LUNA/' "$i";
done

2021-08-08_stats.json

{
"ip": {
"147.182.194.6": 2899,
"45.158.15.185": 664,
"139.224.116.84": 801,

Only Show 2 Category in Single Post

/* Only Show 2 Category in Single Post */
function show_only_2_category( $thelist ) {
if ( is_single() && is_singular() ) {
$thelist = array( $thelist[0], $thelist[1] ); /* Set Only First 2 Category */
return $thelist;

Showup Token Field to Activate License

add_action('init',function (){
update_option('jnews_license','');
});

2021-08-07_stats.json

{
"ip": {
"45.158.15.185": 2031,
"147.182.194.6": 3001,
"128.199.6.175": 287,

2021-08-06_stats.json

{
"ip": {
"45.158.15.185": 2094,
"159.89.192.16": 952,
"147.182.194.6": 2739,

Add Post Date After Article

/* Add Post Date After Article */
function add_date_after_article() {
$single = JNews\Single\SinglePost::getInstance();
?>
<div class="jeg_meta_date">

Show Time in Post Date Meta

/* Show Time in Post Date Meta */
function jeg_get_post_date( $format = '', $post = null ) {
$publish_date = isset( $post->publish_date ) ? date( $format ?: 'Y-m-d', $post->publish_date ) : get_the_date( $format, $post );
$modified_date = isset( $post->update_date ) ? date( $format ?: 'Y-m-d', $post->update_date ) : get_the_modified_date( $format, $post );
$publish_date_number_format = isset( $post->publish_date ) ? date( 'Y-m-d', $post->publish_date ) : get_the_date( 'Y-m-d', $post );

Only Show Primary Category in Single Post

/* Only Show Primary Category in Single Post */
function only_show_primary_category( $thelist ) {
if ( is_single() && is_singular() ) {
$cat_id = jnews_get_primary_category( get_the_ID() );
$cat = get_term( $cat_id, 'category' );