A Pen by patrioticcow on CodePen.
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
<template> | |
<section> | |
<div class="control section"> | |
<div class="tags has-addons"> | |
<span class="tag is-info is-large">Videos</span> | |
<span class="tag is-light is-large">for {{ vehicleName }}</span> | |
</div> | |
</div> | |
<div id="videoPlayerPlaceholder"> |
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 | |
/** | |
* place between single quotes the | |
* path to your base public dir, or "html" dir or wherever you host your files | |
* nginx example: '/usr/share/<server_name>/html' | |
*/ | |
$base = ''; | |
function listFolderFiles($dir){ | |
$ffs = scandir($dir); |
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
<link rel="import" href="../topeka-elements/theme.html"> | |
<link rel="import" href="../topeka-elements/topeka-resources.html"> | |
<link rel="import" href="../topeka-elements/topeka-app.html"> | |
<polymer-element name="my-element"> | |
<template> | |
<style> | |
:host { | |
position: absolute; |
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
@color: #000; | |
.box{ | |
background-color: @color; | |
} |
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
interface Observer { | |
function notify($obj); | |
} | |
class ExchangeRate { | |
static private $instance = NULL; | |
private $observers = array(); | |
private $exchange_rate; | |
private function ExchangeRate() { |
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
abstract class User { | |
function __construct($name) | |
{ | |
$this->name = $name; | |
} | |
function getName() | |
{ | |
return $this->name; | |
} | |
// Permission methods |
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
class Logger { | |
static function getInstance() | |
{ | |
if (self::$instance == NULL) { | |
self::$instance = new Logger(); | |
} | |
return self::$instance; | |
} | |
private function __construct() | |
{ |
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
abstract class FileNamingStrategy { | |
abstract function createLinkName($filename); | |
} | |
class ZipFileNamingStrategy extends FileNamingStrategy { | |
function createLinkName($filename) | |
{ | |
return "http://downloads.foo.bar/$filename.zip"; | |
} | |
} |