Skip to content

Instantly share code, notes, and snippets.

🐦
fly like a bird ...

Kcko

🐦
fly like a bird ...
Block or report user

Report or block Kcko

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View sp1.sql
set character set utf8;
-- deprecated (deleted)
DROP PROCEDURE IF EXISTS odds_old_1x2;
DROP PROCEDURE IF EXISTS odds_old_moneyline;
DROP PROCEDURE IF EXISTS odds_old_underover;
DROP PROCEDURE IF EXISTS odds_old_handicap;
DROP PROCEDURE IF EXISTS split_string1;
DROP PROCEDURE IF EXISTS split_string2;
View actionEdit-form.php
<?php
public function actionEdit($pKey = array())
{
parent::actionEdit($pKey);
$form = $this['editForm' . $this->snippetName];
//$this['editForm' . $this->snippetName]['email']->setOption('appendText', $this->defaultFilter['hosting_service_mail_domain_id']);
?>
View example.js
var player,
time_update_interval = 0;
function onYouTubeIframeAPIReady() {
player = new YT.Player('video-placeholder', {
width: 600,
height: 400,
videoId: 'Xa0Q0J5tOP0',
playerVars: {
color: 'white',
View insert-select-join.sql
INSERT INTO `article_tag_lang` (article_tag_id, language_id, tag)
(
SELECT i.id, l.id, i.tag
FROM `language` AS l
JOIN `article_tag` AS i
);
View parser.php
<?php
function autoUTF($s)
{
if (preg_match('#[\x80-\x{1FF}\x{2000}-\x{3FFF}]#u', $s)) // detect UTF-8
{
return $s;
}
elseif (preg_match('#[\x7F-\x9F\xBC]#', $s)) // detect WINDOWS-1250
View .htacess
<IfModule mod_headers.c>
Header set Access-Control-Allow-Origin "*"
</IfModule>
# Header add Access-Control-Allow-Origin "http://my-domain.com"
View example1.php
<?php
$hodnoty = array(
"baku" => array(3, 4, 7),
"kcko" => array(2, 5, 7),
"guest" => array(1, 2, 2)
);
View table.php
<?php
/**
* Umozni prepocitat tabulku za zapas, za kolo, souhrně
*/
class TableResult
{
public $data;
View store.php
<?php
class Store
{
function Store($db)
{
$this->db = &$db;
$this->lang = 'cz';
$this->itemsOff();
View find-in-array.php
<?php
$arr = [
'name' => 'Php Master',
'subject' => 'Php',
'type' => 'Articles',
'items' => [
'one' => 'Iteration',
'two' => 'Recursion',
You can’t perform that action at this time.