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
<?xml version="1.0" encoding="UTF-8" standalone="no"?><VAST version="2.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="vast.xsd"><Ad id="1395013"><InLine><AdSystem>FT</AdSystem><AdTitle>Flashtalking vast template 2.0</AdTitle><Description>date of revision 19-12-13</Description><Survey></Survey><Error></Error><Impression id="ft_vast_i"><![CDATA[https://servedby.flashtalking.com/imp/2/52465;1395013;201;gif;AmnetDE;CPMRoNPRVID10PreRoll101766800111000/?ft_creative=1131704&ft_configuration=0&cachebuster=1468929325]]></Impression><Impression id="3rdparty1"><![CDATA[https://r.turn.com/r/beacon?b2=SNCIeyBoYssEBe6S0sZDxwDJUQt5Ig4DwBnkfGpZIf_VpX62-Bzf-32HGPr8m9eZOplYIIf4auX_vZ0ogDlq9A&cid=1468929325]]></Impression><Impression id="3rdparty2"><![CDATA[https://ad.doubleclick.net/ddm/trackimp/N1203.286450.AMNET/B9035208.122201728;dc_trk_aid=295227103;dc_trk_cid=65211533;ord=1468929325]]></Impression><Impression id="3rdparty3"><![CDATA[]]></Impression><Impression id="3rdparty4"><![CDA |
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
$script = <<SCRIPT | |
echo I am provisioning... | |
apt-get install -yq git wget autoconf libtool libdaemon-dev libasound2-dev libpopt-dev libconfig-dev avahi-daemon libavahi-client-dev libssl-dev libsoxr-dev alsa-utils | |
#also do https://wiki.ubuntuusers.de/Soundkarten_konfigurieren/HDA?redirect=no | |
sudo echo "options snd-hda-intel model=3stack" >> /etc/modprobe.d/alsa-base.conf | |
git clone https://github.com/mikebrady/shairport-sync.git | |
cd shairport-sync | |
autoreconf -i -f | |
./configure --with-alsa --with-avahi --with-ssl=openssl --with-metadata --with-soxr --with-systemv | |
make |
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
<div class="wrapper" > | |
Hello | |
</div> |
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
$icons: ( | |
follow: 'a', | |
followed: 'b', | |
unfollow: 'c', | |
checkmark: 'e' | |
); | |
$Placeholder-Selectors: (); | |
@mixin icon($name, $color, $extend: true) { | |
@include icon-static($extend); |
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
var log = function(text) { | |
var el = document.createElement('p'); | |
el.innerHTML = text; | |
var body = document.getElementsByTagName('body')[0]; | |
body.appendChild(el); | |
} |
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
orgFetch = Backbone.Collection::fetch | |
Backbone.Collection::fetch = (options={}) -> | |
success = options.success | |
options.success = (collection, resp, options) -> | |
collection.trigger 'before:add:all', collection, resp, options | |
collection.each (model) -> | |
model.trigger('add', model, collection, options) | |
collection.trigger 'add:all', collection, resp, options | |
success(collection, resp, options) if success |
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
handleFile: function(file) { | |
if (file.size / 1000000 > 150) { | |
var err = "We only support files up to 150 MB"; | |
alert(err); | |
... | |
} | |
var that = this; | |
$.when(this.upload(file)).pipe(this.getSharedUrl). |
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
upload: function(file) { | |
var def = new $.Deferred(); | |
var that = this; | |
var xhr = this.client.writeFile(file.name, file, {noOverwrite: true}, function(error, metadata) { | |
if (error) { | |
def.reject(error); | |
return; | |
} | |
def.resolve(metadata); |
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
this.client = new Dropbox.Client({ | |
key: "<your secret key>", | |
sandbox: true, | |
token: dropboxProfile.oauth_token_key, | |
tokenSecret: dropboxProfile.oauth_token_secret | |
}); |
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
this.client = new Dropbox.Client({ | |
key: "<your secret key>", | |
sandbox: true, | |
token: dropboxProfile.oauth_token_key, | |
tokenSecret: dropboxProfile.oauth_token_secret | |
}); |