Existuje třída HtmlNode
, od které dědí třídy HtmlElement
a HtmlTextNode
.
Takže např. následující HTML kód
<div>
First text
<strong>Foo</strong>
Second text
</div>
<?php | |
class Buffer | |
{ | |
public $data = ''; | |
public $end = FALSE; | |
} | |
class Loop | |
{ | |
public $readStreams = []; |
#!/bin/sh | |
read oldrev newrev refname | |
branch=${refname##refs/heads/} | |
if [[ $branch = "master" || $branch = "stage" ]] | |
then | |
echo "Deploying branch $branch..." | |
targetDir="$PWD/../deployed-$branch" | |
<script> | |
/** | |
* @author Chamurappi | |
* @param {DOMElement} element | |
* @return {function()} callback for restoring saved position | |
*/ | |
function savePosition(element) | |
{ | |
if (!element.getBoundingClientRect) return function(){}; | |
var top = element.getBoundingClientRect().top; |
#include <iostream> | |
#include <cstring> | |
using namespace std; | |
template <class T> | |
struct Node | |
{ | |
T val; // stored value | |
int order; // original order |
<?php | |
class Foo | |
{ | |
public function bar(self $foo) | |
{ | |
} | |
} |
Existuje třída HtmlNode
, od které dědí třídy HtmlElement
a HtmlTextNode
.
Takže např. následující HTML kód
<div>
First text
<strong>Foo</strong>
Second text
</div>
#!/bin/bash | |
current_branch="$(git symbolic-ref HEAD 2>/dev/null)" || current_branch="(unknown)" | |
current_branch=${current_branch##refs/heads/} | |
github_username="JanTvrdik" | |
github_token="..." | |
if [[ $current_branch = "(unknown)" ]] | |
then |
(function() { | |
var commits = [], repo = document.location.href.match(/github\.com\/([^\/]+\/[^\/]+)\//)[1]; | |
// Play for all commits | |
$('.commit-group .commit-links') | |
.append($('<a href="#" class="browse-button github-play-select">Play</a>')); | |
// show next commit | |
var nextCommit = function () { | |
$('.site .container').load(commits.shift() + ' #.site .container', function () { |
#!/bin/bash | |
find . \( \ | |
-name '*.php' -o \ | |
-name '*.phtml' -o \ | |
-name '*.html' -o \ | |
-name '*.latte' -o \ | |
-name '*.neon' -o \ | |
-name '*.css' -o \ | |
-name '*.js' -o \ | |
-name '*.txt' -o \ |