Skip to content

Instantly share code, notes, and snippets.

<?php
$db = new mysqli("localhost", "...", "...", "...");
if ($db->connect_error) {
echo "Could not connect to database.";
exit;
}
else {
$emerd = $_POST["email"];
$(document).ready(function() {
$('input[type="submit"]').click(function() {
event.preventDefault();
var email = $('.email').val();
$.ajax({
type: "POST",
url: "register_email.php",
dataType: "json",
import Foundation
extension String {
/// Converts an ISO 8601 formatted `String` into `NSDateComponents`.
///
/// - Note: Does not accept fractional input (e.g.: P3.5Y), must be integers (e.g.: P3Y6M).
/// - SeeAlso: https://en.wikipedia.org/wiki/ISO_8601#Durations
/// - Returns: If valid ISO 8601, an `NSDateComponents` representation, otherwise `nil`.
func ISO8601DateComponents() -> NSDateComponents? {
// Regex adapted from Moment.js https://github.com/moment/moment/blame/develop/src/lib/duration/create.js#L16
bodyNode.willDisplayNodeContentWithRenderingContext = { context in
UIGraphicsPushContext(context)
let rectanglePath = UIBezierPath(rect: CGRect(x: 10, y: 10, width: 10, height: 10))
UIColor.magenta.setFill()
rectanglePath.fill()
UIGraphicsPopContext()
}
return [subredditNode, authorNode, (authorFlairNode ?? [])]
//
// ApolloActivityViewController.swift
// Apollo
//
// Created by Christian Selig on 2016-12-12.
// Copyright © 2016 Christian Selig. All rights reserved.
//
import UIKit
  • Added Jump Button in comments to quickly go to the next top-level comment (customizable)
  • Added subtle GIF progress indicators to show where you're at in the GIF you're viewing
  • Much faster GIF viewing and loading, as well as fixed issues where some sources would be unreliable
  • Rich media headers in comments, just like in your feed
  • You can now see how long a video is by a new length indicator in the thumbnail
  • Alternative browser options! External Safari, Chrome, Firefox, Edge, Dolphin!
  • Option to open in YouTube app directly!
  • And if you only want to occasionally, you can open a video in YouTube app with a long-press action!
  • New "Best" sort option for viewing posts, a fresh take on "Hot"! (Can change default.)
  • When in Compact mode and viewing media, the speeds which they'll load at is greatly increased
{"app_name":"Apollo","timestamp":"2019-04-16 11:27:34.05 -0700","app_version":"1.4.16","slice_uuid":"0ec47266-4b62-3bf2-8573-fd1766187a97","adam_id":979274575,"build_version":"11.16","bundleID":"com.christianselig.Apollo","share_with_app_devs":false,"is_first_party":false,"bug_type":"109","os_version":"iPhone OS 12.2 (16E227)","incident_id":"7A399977-6C93-4C4F-AA0A-B5E154FD5B98","name":"Apollo"}
Incident Identifier: 7A399977-6C93-4C4F-AA0A-B5E154FD5B98
CrashReporter Key: 1636c36dc1dc8ebd5fb8dd0773419a6eb0db6d0d
Hardware Model: xxx1
Process: Apollo [3583]
Path: /private/var/containers/Bundle/Application/F7D7C4C6-0C58-4AC2-83F2-360C08329C21/Apollo.app/Apollo
Identifier: com.christianselig.Apollo
Version: 11.16 (1.4.16)
AppStoreTools: 10E121a
Code Type: ARM-64 (Native)
{"app_name":"Apollo","timestamp":"2019-04-16 11:27:12.54 -0700","app_version":"1.4.16","slice_uuid":"0ec47266-4b62-3bf2-8573-fd1766187a97","adam_id":979274575,"build_version":"11.16","bundleID":"com.christianselig.Apollo","share_with_app_devs":false,"is_first_party":false,"bug_type":"109","os_version":"iPhone OS 12.2 (16E227)","incident_id":"6A3F67CB-A984-4B76-A9F7-BE2510765551","name":"Apollo"}
Incident Identifier: 6A3F67CB-A984-4B76-A9F7-BE2510765551
CrashReporter Key: 1636c36dc1dc8ebd5fb8dd0773419a6eb0db6d0d
Hardware Model: xxx1
Process: Apollo [3581]
Path: /private/var/containers/Bundle/Application/F7D7C4C6-0C58-4AC2-83F2-360C08329C21/Apollo.app/Apollo
Identifier: com.christianselig.Apollo
Version: 11.16 (1.4.16)
AppStoreTools: 10E121a
Code Type: ARM-64 (Native)
{"app_name":"Apollo","timestamp":"2019-04-16 11:26:01.93 -0700","app_version":"1.4.16","slice_uuid":"0ec47266-4b62-3bf2-8573-fd1766187a97","adam_id":979274575,"build_version":"11.16","bundleID":"com.christianselig.Apollo","share_with_app_devs":false,"is_first_party":false,"bug_type":"109","os_version":"iPhone OS 12.2 (16E227)","incident_id":"F4BF04AD-9066-4DD5-BDD4-2EB3F1E9AE1C","name":"Apollo"}
Incident Identifier: F4BF04AD-9066-4DD5-BDD4-2EB3F1E9AE1C
CrashReporter Key: 1636c36dc1dc8ebd5fb8dd0773419a6eb0db6d0d
Hardware Model: xxx1
Process: Apollo [3578]
Path: /private/var/containers/Bundle/Application/F7D7C4C6-0C58-4AC2-83F2-360C08329C21/Apollo.app/Apollo
Identifier: com.christianselig.Apollo
Version: 11.16 (1.4.16)
AppStoreTools: 10E121a
Code Type: ARM-64 (Native)