This file contains 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
Verifying that +janitarvainen is my blockchain ID. https://onename.com/janitarvainen |
This file contains 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
// default values for the toggles | |
var changefont = false; | |
var colorchanger = false; | |
var colorfade = false; | |
var dosinus = true; | |
// global variables and temporary settings, brrrhhh | |
var xtmp=0;var msgtmp=0;var doscroll=false;var scrollcount=0;var linecount=0;var runcount=0;var colorcount=0;var font=15;var dir2='up'; var msg=new Array();var controls=false; | |
// the toggles, needed only for this demo page |
This file contains 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="controls"> | |
<FORM> | |
<INPUT TYPE="button" VALUE="Toggle font change" ONCLICK="toggle_fontsize()"> | |
<INPUT TYPE="button" VALUE="Toggle colorcycle" ONCLICK="toggle_color()"> | |
<INPUT TYPE="button" VALUE="Toggle sinus" ONCLICK="toggle_sinus()"> | |
<INPUT TYPE="button" VALUE="Toggle scrolling" ONCLICK="toggle_scroller()"><BR> | |
<INPUT TYPE="button" VALUE="Toggle colorfader" ONCLICK="toggle_fade()"> (only with font changer on, disables colorcycle) | |
</FORM> | |
</DIV> |
This file contains 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 React, { Component } from 'react' | |
import useSheet from 'react-jss' | |
// You can use jss directly too! | |
import jss from 'jss' | |
import vendorPrefixer from 'jss-vendor-prefixer' | |
jss.use(vendorPrefixer) | |
const styles = { | |
button: { |
This file contains 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 | |
$contentTypes = array('article','blog_post'); | |
$contentTypes = array('eng-GB','fin-FI'); | |
$locationPath = '/2/30/44'; | |
$query = new Query(); | |
$query->filter = new Criterion\LogicalAnd( | |
array( | |
new Criterion\ContentTypeIdentifier($contentTypes), |
This file contains 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
## Configure db connections ## | |
doctrine: | |
dbal: | |
connections: | |
repo_one_connection: | |
driver: pdo_mysql | |
host: localhost | |
user: repo_one | |
password: foo | |
dbname: repo_one |
This file contains 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 | |
$app->get('/images'), function () use ($app) { | |
$images = array('/images/1.jpg','/images/2.jpg','/images/3.jpg'); | |
$response = new JsonResponse($images); | |
foreach($images as $image){ | |
$response->headers->set('link','<' . $image . '>; rel=preload; as=image',false); | |
} | |
This file contains 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 | |
$app->get('/images'), function () use ($app) { | |
$images = array('/images/1.jpg','/images/2.jpg','/images/3.jpg'); | |
$response = new JsonResponse($images); | |
return $response; | |
}); |
This file contains 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
<h1>Yandex Map Riot.js Component rendered via Twig</h1> | |
<!-- begin riot: ymap --> | |
<ymap><div id="ymap"></div> <script src="https://api-maps.yandex.ru/2.0-stable/?load=package.full&lang=en-US" type="text/javascript"></script></ymap> | |
<script src="/js/tags/ymap.js"></script> | |
<!-- end riot --> |