View event.js
const e = new Event('change') | |
const element = document.querySelector('#' + this.fakeFileId) | |
element.dispatchEvent(e) |
View dataTypes.php
<?php | |
/** | |
* TEST DATOVYCH TYPU | |
*/ | |
call_user_func(function() { | |
// krabice | |
$krabiceActiveRow = $this->connection->table('eshop_item')->where('id', 1467)->fetch(); |
View at-root-example.scss
// Sass | |
.Component { | |
.title { | |
color: black; | |
.is-active#{&} { | |
color: blue; | |
} | |
} | |
} |
View dummy-data-sql.sql
-- dokumenty, regiony, klient, konkretni klient | |
SET @clientId = 10809; | |
INSERT INTO | |
bc_stats (bc_document_id, bc_region_id, bc_client_id) | |
SELECT | |
id, | |
bc_region_id, |
View wakeup.php
<?php | |
class User { | |
protected $name; | |
protected $timeline = array(); | |
public function __construct($name) | |
{ |
View index.css
.container { | |
position: relative; | |
display: inline-block; | |
padding: 10rem; | |
border: 1px solid; | |
} | |
.container:before { | |
position: absolute; | |
right: 0; |
View tooltip.html
<!-- | |
https://jsbin.com/fetikedayu/1/edit?html,css,js,output | |
https://jsbin.com/zofifoceli/edit?html,css,output | |
--> | |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> |
View update.sql
-- datetime | |
SET @MIN = '2019-06-29 00:53:27'; | |
SET @MAX = '2019-06-29 13:53:27'; | |
UPDATE tablename | |
SET columnname = TIMESTAMPADD(SECOND, FLOOR(RAND() * TIMESTAMPDIFF(SECOND, @MIN, @MAX)), @MIN) | |
-- https://stackoverflow.com/questions/24378490/update-table-with-random-values-from-given-set-of-string-values | |
-- string | |
update table t |
View mike-js-helpers.js
(function($){ | |
$.fn.isInViewport = function(){ | |
var elementTop = $(this).offset().top; | |
var elementBottom = elementTop + $(this).outerHeight(); | |
var viewportTop = $(window).scrollTop(); | |
var viewportBottom = viewportTop + $(window).height(); | |
return (elementBottom > viewportTop && elementTop < viewportBottom); | |
}; |
NewerOlder