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 Foundation | |
typealias Function = () -> () | |
typealias FunctionWrapper = (@escaping Function) -> () | |
func debounced(time: TimeInterval, callback: @escaping Function) -> Function { | |
weak var timer: Timer? | |
return { | |
timer?.invalidate() |
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
override func viewDidLoad() { | |
super.viewDidLoad() | |
let visuaEffectView = UIVisualEffectView(effect: UIBlurEffect(style: .Light)) | |
visuaEffectView.frame = view.bounds | |
view.backgroundColor = UIColor.clearColor() | |
view.opaque = false | |
view.insertSubview(visuaEffectView, atIndex: 0) | |
} |
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
function filterHelper(context, options) { | |
if (!options || !options.hash.where) { | |
throw new Exception('Must pass <where> and <is> | <isnot> to #filter'); | |
} | |
if (Handlebars.Utils.isFunction(context)) { | |
context = context.call(this); | |
} | |
if (options.data) { |
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
.touch form.custom select.hidden-field { | |
height: $custom-select-height; | |
margin-left: 0; | |
visibility: visible; | |
z-index: 20; | |
background: #fff; | |
padding: 0; | |
border: 0; | |
opacity: 0; |
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 | |
/** | |
* Converts raw flexform xml into an associative array | |
* | |
*/ | |
class Tx_SomeExt_ViewHelpers_DataViewHelper extends Tx_Fluid_Core_ViewHelper_AbstractViewHelper { | |
/** | |
* @var array | |
*/ |
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
{namespace v=Tx_Vhs_ViewHelpers} | |
{namespace flux=Tx_Flux_ViewHelpers} | |
<f:layout name="Page" /> | |
<f:section name="Configuration"> | |
<flux:flexform id="defaultpage" icon="ext_icon.gif"> | |
<flux:flexform.sheet name="logos"> | |
<flux:flexform.section name="logos"> | |
<flux:flexform.object name="logo"> | |
<flux:flexform.field.input name="alt" required="true" /> |
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
bool | |
Plane:: | |
intersect(const Ray& _ray, | |
vec3& _intersection_point, | |
vec3& _intersection_normal, | |
double& _intersection_t ) const | |
{ | |
double dpDN = dot(_ray.direction, this->normal); | |
if( dpDN == 0) |
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
{namespace v=Tx_Vhs_ViewHelpers} | |
{namespace flux=Tx_Flux_ViewHelpers} | |
<f:section name="Logos"> | |
<flux:flexform.sheet name="logos"> | |
<flux:flexform.section name="logos"> | |
<flux:flexform.object name="logo"> | |
<flux:flexform.field.input name="alt" required="true" /> | |
<flux:flexform.field.file name="src" allowed="png" required="true" /> | |
</flux:flexform.object> |
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
<f:section name="Configuration"> | |
<flux:flexform id="defaultpage" icon="EXT:lia_relaunch_de/ext_icon.gif"> | |
<flux:flexform.sheet name="logos"> | |
<flux:flexform.section name="logos"> | |
<flux:flexform.object name="logo"> | |
<flux:flexform.field.input name="alt" required="true" /> | |
<flux:flexform.field.file name="src" allowed="png" required="true" /> | |
</flux:flexform.object> | |
</flux:flexform.section> | |
</flux:flexform.sheet> |