The Ninja Made a Movement.
- Lorem.
- Ipsum.
- Dolor.
Foo bar!
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>Leaflet med norske kart</title> | |
<link href="https://unpkg.com/[email protected]/dist/leaflet.css" rel="stylesheet" /> | |
</head> | |
<body> | |
<div id="map" style="height: 400px; width: 600px;"></div> | |
<script src="https://unpkg.com/[email protected]/dist/leaflet.js"></script> |
import os; | |
import sys; | |
from jsmin import jsmin; | |
if len(sys.argv) < 2: | |
print '- Requires .js-file or directory containing js.files'; | |
exit(); | |
input = os.path.abspath(sys.argv[1]); | |
name = os.path.splitext(input)[0] + '.min.js'; |
<?php | |
$ids = array( | |
'spepfQLXrm4', | |
'OmcJbaHw2C8', | |
'D0-tHS7GQxM', | |
); | |
$key = '<GoogleApiKey>'; | |
$parts = array( | |
'contentDetails', | |
'snippet', |
Collections.renderer.imageplus = function(value, metaData, record, rowIndex, colIndex, store) { | |
if (value != '' && value != null) { | |
var data = Ext.decode(value); | |
var url = MODx.config.connectors_url + 'system/phpthumb.php?imageplus=1'; | |
var params = {}; | |
params.src = MODx.config['collections.renderer_image_path'] + data.sourceImg.src; | |
params.w = 100; | |
if (data.sourceImg.src.indexOf('.png') !== -1) { | |
params.f = 'png'; |
.parent-element { | |
-webkit-transform-style: preserve-3d; | |
-moz-transform-style: preserve-3d; | |
transform-style: preserve-3d; | |
} | |
.element { | |
position: relative; | |
top: 50%; | |
transform: translateY(-50%); | |
} |
@-ms-viewport { | |
width: device-width; | |
} | |
@media (max-width: 767px) { | |
.align-mobile-left { | |
text-align: left; | |
} | |
.align-mobile-center { | |
text-align: center; | |
} |
#!/bin/bash | |
find . -type f -name '*.jpg' -print0 | while IFS= read -r -d '' file; do | |
report="$(date "+%Y-%m-%d %H:%M:%S")" | |
report+=" ($file)" | |
str="$(identify -format "%w;%h;%x;%y" "$file")" | |
arr=(${str//;/ }) | |
w=${arr[0]:-0} |
<?php | |
/** | |
* Returns a value if input contains string | |
* [[*link_attributes:containing=`blank=New Window&self=This window`]] | |
*/ | |
parse_str($options, $cases); | |
$output = 'no-match'; | |
foreach ($cases as $needle => $value) { | |
if (strpos($input, $needle) !== false) { |
<?php | |
if ($modx->event->name = 'OnLoadWebDocument') { | |
$modx->setPlaceholder('get', '<pre>'.print_r($_GET, true).'</pre>'); | |
$modx->toPlaceholders($_GET, 'get'); | |
} | |
return; |