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 (!Element.prototype.getElementByTagName) { | |
| Element.prototype.getElementByTagName = function(selector) { | |
| return this.getElementsByTagName(selector).item(0); | |
| } | |
| } | |
| if (!HTMLDocument.prototype.getElementByTagName) { | |
| HTMLDocument.prototype.getElementByTagName = function(selector) { | |
| return this.getElementsByTagName(selector).item(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
| #!/usr/bin/env python | |
| # -*- coding: utf-8 -*- | |
| # vim:ts=4:sw=4:softtabstop=4:smarttab:expandtab | |
| # target script | |
| import sys | |
| import string | |
| import uuid | |
| import re |
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 | |
| define('PATHINFO_ALL', (PATHINFO_DIRNAME | PATHINFO_BASENAME | PATHINFO_EXTENSION | PATHINFO_FILENAME)); | |
| /** | |
| * Multi-byte-safe pathinfo replacement. | |
| * Originally Taken from PHPMailer | |
| * | |
| * @see http://www.php.net/manual/en/function.pathinfo.php#107461 | |
| * @see https://github.com/PHPMailer/PHPMailer/blob/v6.0.5/src/PHPMailer.php#L3961-L4007 |
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
| require 'nokogiri' | |
| module Jekyll | |
| class Synthesia | |
| def populate(page) | |
| data_dir = page.site.source + '/files/' | |
| doc = File.open(data_dir + page.synthesia) { |f| Nokogiri::XML(f) } | |
| songs = doc.xpath('/SynthesiaMetadata/Songs/Song') | |
| page.data['synthesia_data'] = songs.map do |song| | |
| { |
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
| openapi: 3.0.0 | |
| info: | |
| version: "1.0.0" | |
| title: "Standard File" | |
| license: | |
| name: "Apache 2.0" | |
| url: "http://www.apache.org/licenses/LICENSE-2.0.html" | |
| servers: | |
| - url: https://app.standardnotes.org/ |
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
| const blessed = require("blessed"); | |
| window.onload = function () { | |
| const term = new Terminal({ | |
| cols: 80, | |
| rows: 24 | |
| }); | |
| term.open(document.body); | |
| term.write('\x1b[31mWelcome to term.js!\x1b[m\r\n'); |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
| !1:: | |
| Send {g} | |
| return | |
| !2:: | |
| Send {h} | |
| return | |
| !3:: | |
| Send {'} |
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
| server { | |
| listen 80; | |
| listen [::]:80; | |
| server_name paff.tcyr.us; | |
| access_log off; | |
| error_log off; | |
| return 301 https://$host$request_uri; | |
| } | |
| server { |
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
| lapis = require "lapis" | |
| import Model from require "lapis.db.model" | |
| import respond_to, capture_errors from require "lapis.application" | |
| class Users extends Model | |
| class Items extends Model | |
| class extends lapis.Application | |
| [index: "/"]: => |