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
Source: http://www.textfiles.com/music/FORMATS/s3m-form.txt | |
Scream Tracker 3.01 BETA File Formats And Mixing Info | |
===================================================== | |
This document finally containts the OFFICIAL information on s3m format and | |
much more. There might be some errors though I've even checked this a few | |
times, so if something seems weird, don't just blindly believe it but think | |
first if it could be just a typo or something. |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Input Demo</title> | |
<!-- | |
This is an example on how to create a text input/textarea with a | |
nice description on what to enter in case nothing is entered. | |
It uses Prototype for DOM navigation and updating an elements | |
class name, but it should be easy to port to any other JavaScript |
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
/** | |
* Build an absolute url using an base url. | |
* The provided base url has to be a valid absolute url. It will not be validated! | |
* If no base url is given the document location is used. | |
* Schemes that behave other than http might not work. | |
* It tries to support file:-urls, but might fail in some cases. | |
* email:-urls aren't supported at all (don't make sense anyway). | |
* | |
* NOTE: Internet Explorer does not support the baseURI property, but it does | |
* support the base tag, which results in wrong url. You might want to |
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 XML_CHAR_MAP = { | |
'<': '<', | |
'>': '>', | |
'&': '&', | |
'"': '"', | |
"'": ''' | |
}; | |
function escapeXml (s) { | |
return s.replace(/[<>&"']/g, function (ch) { |
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
def screenshot | |
require 'capybara/util/save_and_open_page' | |
now = Time.now | |
p = "/#{now.strftime('%Y-%m-%d-%H-%M-%S')}-#{rand}" | |
Capybara.save_page body, "#{p}.html" | |
path = Rails.root.join("#{Capybara.save_and_open_page_path}#{p}.png").to_s | |
page.driver.render path | |
Launchy.open path | |
end |
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
_loginBrowser: function () { | |
// HTTP Auth hack for Firefox, Opera and IE. | |
this._loginScript("http://stream.magnatune.com"); | |
}, | |
_loginScript: function (origin, options) { | |
var finished = false; | |
var onerror = function (event) { | |
if (finished) return; | |
if (event.originalEvent.target === script) { | |
finished = 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Save Generated Data</title> | |
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge;chrome=1"/> | |
<script type="text/javascript"> | |
// <![CDATA[ |
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
if (BrowserSupportedMimeTypes[mimetype.split(";")[0]] === true) { | |
mimetype = "application/octet-stream"; | |
} | |
blob = builder.getBlob(mimetype); | |
url = URL.createObjectURL(blob); | |
window.open(url, '_blank', ''); | |
} |
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 binascii | |
import urllib.request | |
import urllib.parse | |
import email.message | |
import io | |
__all__ = ['parse_data_url','DataResponse','DataHandler'] | |
def parse_data_url(url): | |
scheme, data = url.split(":",1) |
OlderNewer