<html>
<head>
<title>403 Forbidden</title>
</head>
<body>
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
#!/usr/bin/python | |
# DoubleClick DCM.hype-export.py | |
# Export Script for Tumult Hype to produce HTML5 ads for DoubleClick Campaign Manager (aka DCM, DoubleClick for Advertisers, DFA) | |
# | |
# Installation, usage, and additional info: | |
# http://tumult.com/hype/export-scripts/ | |
# | |
# MIT License | |
# Copyright (c) 2017 Tumult Inc. |
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
#!/usr/bin/env ruby | |
# A quick script to download all your files from CloudApp. | |
# To run this just run the script passing your e-mail & password | |
# to the script, for example: | |
# | |
# gem install cloudapp_api | |
# ruby cloudapp-export.rb [email protected] mypassword | |
# |
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
#!/bin/bash | |
# | |
# generate a Markdown version of a word document. Goes in separate folder, since | |
# images are extracted and converted as well (separate folder avoids naming clashes). | |
# | |
# REQUIREMENTS: pandoc | |
# | |
# | |
# with pandoc | |
# --extract-media=[media folder] |
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
HTML代码: | |
<iframe id="testIframe" frameborder="0" scrolling="no" src="iframe-page-no-fresh.html" width="100%" height="120"></iframe> | |
JS代码: | |
//高度自适应 | |
var iframe = document.getElementById("testIframe"); | |
var iframeHeight = function() { | |
var hash = window.location.hash.slice(1), h; | |
if (hash && /height=/.test(hash)) { | |
h = hash.replace("height=", ""); | |
iframe.height = h; |
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
/* | |
* AppleWidgetController.js | |
* Copyright (c) 2010-2011 Apple, Inc. | |
* All rights reserved. | |
* | |
* Responsibility: drb | |
*/ | |
// | |
// Class: AppleWidgetController |
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 src="http://code.jquery.com/jquery-1.11.0.min.js"></script> | |
<script> | |
// http://mikemurko.com/general/jquery-keycode-cheatsheet/ | |
var speed = 0.8; //transition speed | |
var transition = "push"; //types of transition: instant, fade, swap, push | |
var nextKeys= [39, 40, 34]; | |
var prevKeys= [37, 38, 33]; | |
$(function(){ |
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
<!doctype html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta content="yes" name="apple-mobile-web-app-capable"> | |
<title></title> | |
<!-- iPhone --> | |
<link href="http://taylor.fausak.me/static/images/apple-touch-icon-57x57.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
function Track(src, spriteLength, audioLead) { | |
var track = this, | |
audio = document.createElement('audio'); | |
audio.src = src; | |
audio.autobuffer = true; | |
audio.load(); | |
audio.muted = true; // makes no difference on iOS :( | |
/* This is the magic. Since we can't preload, and loading requires a user's | |
input. So we bind a touch event to the body, and fingers crossed, the |