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
Active Life (active) | |
ATV Rentals/Tours (atvrentals) | |
Amateur Sports Teams (amateursportsteams) | |
Amusement Parks (amusementparks) | |
Aquariums (aquariums) | |
Archery (archery) | |
Badminton (badminton) | |
Basketball Courts (basketballcourts) | |
Batting Cages (battingcages) | |
Beaches (beaches) |
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 {NgZone, Inject} from 'angular2/angular2'; | |
export class TestService { | |
skin: any; | |
constructor(@Inject(NgZone) private zone: NgZone) { | |
this.skin = {color: 'red'}; | |
} | |
getSkin() { |
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::uses('HttpSocket', 'Network/Http'); | |
/* inside controller */ | |
/** | |
* PayPal IPN Notification parser | |
* Checks if the notification is valid | |
* @see https://cms.paypal.com/us/cgi-bin/?cmd=_render-content&content_ID=developer/e_howto_admin_IPNIntro | |
* @see https://cms.paypal.com/us/cgi-bin/?cmd=_render-content&content_ID=developer/e_howto_html_IPNandPDTVariables |
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
tc qdisc del dev lo root |
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 | |
use Symfony\Component\HttpFoundation\File\File; | |
use Symfony\Component\HttpFoundation\File\UploadedFile; | |
/** | |
* @Entity | |
*/ | |
class Document | |
{ |
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
<script> | |
(function (window, document) { | |
var loader = function () { | |
var script = document.createElement("script"), tag = document.getElementsByTagName("script")[0]; | |
script.type = 'text/javascript'; script.async = true; | |
script.src = "https://widgetic.com/sdk/sdk.js"; | |
tag.parentNode.insertBefore(script, tag); | |
}; | |
window.addEventListener ? window.addEventListener("load", loader, false) : window.attachEvent("onload", loader); | |
})(window, document); |
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
tryTimes = (f, times, interval) -> | |
new Promise (resolve, reject) -> | |
tries = 0 | |
doIt = -> | |
++tries | |
try | |
result = f() | |
if result | |
clear() |
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
<form> | |
<label> | |
<input type="radio" bind:group='interval' name="interval" value="monthly"> | |
<span>Monthly</span> | |
</label> | |
<label> | |
<input type="radio" bind:group='interval' name="interval" value="yearly"> | |
<span>Yearly<span>Save 20%</span></span> | |
</label> | |
</form> |
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
<!-- this binds `sy` to the current value of `window.scrollY` --> | |
<:Window bind:scrollY='sy' on:orientationchange='set({angle: event.orientation.angle})'/> | |
{{angle}} | |
<!-- try changing the values that `sy` is multiplied by - | |
values closer to 0 appear further away --> | |
<div class='parallax-container'> | |
<img style='transform: translate(0,{{-sy * 0.2}}px)' src='http://www.firewatchgame.com/images/parallax/parallax0.png'> | |
<img style='transform: translate(0,{{-sy * 0.3}}px)' src='http://www.firewatchgame.com/images/parallax/parallax1.png'> | |
<img style='transform: translate(0,{{-sy * 0.4}}px)' src='http://www.firewatchgame.com/images/parallax/parallax3.png'> | |
<img style='transform: translate(0,{{-sy * 0.5}}px)' src='http://www.firewatchgame.com/images/parallax/parallax5.png'> |
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
/* | |
TODO: | |
- Option to wait to apply anything until all <link>s are parsed or inject what we have and update as each <link> returns | |
*/ | |
var cssVarPoly = { | |
init: function() { | |
if (window.CSS && window.CSS.supports && window.CSS.supports('(--foo: red)')) { | |
return; | |
} | |
cssVarPoly.ratifiedVars = {}; |
OlderNewer