Skip to content

Instantly share code, notes, and snippets.

$lateststatus = '';
$query = $db->simple_select('users', 'uid,username,custom_status,custom_status_date,usergroup,displaygroup', 'custom_status != \'\' AND custom_status_date > 0', array('order_by' => 'custom_status_date', 'order_dir' => 'DESC', 'limit' => $mybb->settings['custom_status_latest']));
while ($userstatus = $db->fetch_array($query))
{
$bgcolor = alt_trow();
$userstatus['username'] = format_name($userstatus['username'], $userstatus['usergroup'], $userstatus['displaygroup']);
$userstatus['username'] = '<a href="member.php?action=profile&uid='.intval($userstatus['username']).'"> '.$userstatus['username'].'</a>';
$userstatus['date'] = my_date($mybb->settings['dateformat'], $userstatus['custom_status_date'], '', false).", ".my_date($mybb->settings['timeformat'], $userstatus['custom_status_date']);
$userstatus['status'] = htmlspecialchars_uni($userstatus['custom_status']);
$userstatus['custom_status'] = htmlspecialchars_uni($userstatus['custom_status']);
function twentythirteen_scripts_styles() {
/* Wycięty kod */
// Loads JavaScript file with functionality specific to Twenty Thirteen.
wp_enqueue_script( 'twentythirteen-script', get_template_directory_uri() . '/js/functions.js', array( 'jquery' ), '2013-07-18', true );
/*Wycięty kod */
}
//petla
$i++
if($i%3==0){
echo 'co trzeci box';
}
@Matslom
Matslom / gist:1413bc7510505f299b8f
Last active August 29, 2015 14:18
Z PT na px w przeglądarce
wielkość czcionki w PX = (wielkość czcionki w PT / PPI pliku PSD) * DPI przeglądarki
width: 228px;
margin: 30px 0 0;
padding: 0;
background-color: #fff;
border-radius: 6px;
box-shadow: 0 1px 4px rgba(0,0,0,.065);
$(document).ready(function(){
setTimeout(function(){
var w = $('#mainmenu').width();
$('.dropdown-szukaja').css( "width", w );
}, 1000);
});
<?php
/**
* Custom slider and the featured posts for the theme.
*/
if ( !function_exists( 'awaken_featured_posts' ) ) :
function awaken_featured_posts() {

Keybase proof

I hereby claim:

  • I am matslom on github.
  • I am matslom (https://keybase.io/matslom) on keybase.
  • I have a public key ASDhkVmdg4dSdR7fZEeODsjdur7lnsvV7vjaTZg5QkMHAgo

To claim this, I am signing this object:

// ==UserScript==
// @name New Userscript
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @match https://www.wp.pl/
// @grant none
// ==/UserScript==
void rozdziel(char* plik, char* wynik1, char* wynik2, double wartosc) {
std::ifstream input;
std::ofstream lower, higher;
input.open(plik);
lower.open(wynik1);
higher.open(wynik2);
if (!input.good() || !lower.good() || !higher.good()) {
std::cout << "Blad podczas otwarcia plikow";