This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import BEM from 'react-bem-helper'; | |
import _o from 'lodash/object'; | |
export default function (blockName, opts = {}) { | |
const def = { | |
name: blockName, | |
prefix: null | |
}; | |
return new BEM(_o.merge(def, opts)); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
data = [] | |
$('#st1>div').each(function (i, div) { | |
project = {}; | |
$link = $(div).find('h3 a'); | |
project['url'] = $link.attr('href'); | |
project['name'] = $link.text(); | |
$specs = $(div).find('.specs') | |
if ($specs.length) { | |
specs = $specs.text(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Per-category pagination. Useful for multilingual blogs =) | |
# It will react, regarding your configuration in `config.yml`: | |
# | |
# paginate_per_category: true|false - activate this pagination or keep the | |
# default one | |
# default_category: "en" - determine the default category if you | |
# wish the root pagination to be this one | |
module Jekyll | |
module Paginate | |
class Pagination < Generator |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<Aggregate type="min" required="true"> | |
<Compare metric="inequality" required="false"> | |
<Input path="?a" /> | |
<Input path="?b" /> | |
</Compare> | |
<Aggregate type="average"> | |
<Compare metric="equality" required="true"> | |
<TransformInput function="lowerCase"> | |
<TransformInput function="removeSpecialChars"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<rdf:RDF xmlns:adms="http://www.w3.org/ns/adms#" | |
xmlns:dcterms="http://purl.org/dc/terms/" | |
xmlns:gr="http://purl.org/goodrelations/v1#" | |
xmlns:irw="http://www.ontologydesignpatterns.org/ont/web/irw.owl#" | |
xmlns:org="http://www.w3.org/ns/org#" | |
xmlns:owl="http://www.w3.org/2002/07/owl#" | |
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" | |
xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" | |
xmlns:s="http://schema.org/" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div id="me" vocab="http://xmlns.com/foaf/0.1/" prefix="v: http://rdf.data-vocabulary.org/#" typeof="Person v:Person" resource="http://carlboettiger.info#me"> | |
<p> | |
<img property="depiction" src="assets/img/carlboettiger.png" alt="Photo of Carl Boettiger" style="float: right; margin: 10px 10px"/> I am | |
<a property="homepage v:url" href="http://carlboettiger.info"> | |
<span property="name v:name"> | |
<span property="firstName v:givenName">Carl | |
</span> | |
<span property="lastName v:familyName">Boettiger | |
</span> | |
</span></a>, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def countChange (money: Int, coins: List[Int]): Int = { | |
def count(money: Int, coins: List[Int]): Int = { | |
if (coins.tail.isEmpty) { | |
if (money % coins.head == 0) 1 | |
else 0 | |
} | |
else if (money == 0) 1 | |
else if (money < coins.head) count(money, coins.tail) | |
else count(money - coins.head, coins) + count(money, coins.tail) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT | |
`Division_i18n`.`content` AS `Division__name`, | |
`TeamInfo`.`id`, | |
`TeamInfo`.`name`, | |
`Player`.`id`, | |
`PlayerInfo`.`name`, | |
`PointsSummary`.`matches`, | |
`PointsSummary`.`points`, | |
`PunishmentsSummary`.`punishment_type_id`, | |
`PunishmentsSummary`.`count` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// jsou odeslaná data POSTem | |
if (!empty($_POST)) { | |
$filename = dirname(__FILE__) . 'mujxmlsoubor.xml'; | |
// načte soubor, musí existovat! | |
$xml = simplexml_load_file($filename); | |
// kořenovému elementu přidá nový element record | |
$record = $xml->addChild('record'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Vysledek | |
{ | |
//== Datové atributy (statické i instancí)====================================== | |
private Tym domaci; | |
private Tym hoste; | |
private int kolo; | |
private String datum; | |
private int domaciGolu; | |
private int hosteGolu; | |
private boolean prodlouzeni; |
NewerOlder