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 | |
$host = '0.0.0.0'; //host | |
$port = 12345; //port | |
$null = NULL; //null var | |
//Create TCP/IP sream socket | |
$socket = socket_create(AF_INET, SOCK_STREAM, SOL_TCP); | |
//reuseable port | |
socket_set_option($socket, SOL_SOCKET, SO_REUSEADDR, 1); |
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 | |
//Complete guide: https://hack4m.com/how-to-implement-wildcard-routes-in-ratchet-websocket-server | |
use Ratchet\MessageComponentInterface; | |
use Ratchet\ConnectionInterface; | |
use Ratchet\Server\IoServer; | |
use Ratchet\Http\HttpServer; | |
use Ratchet\WebSocket\WsServer; | |
use Ratchet\Http\HttpServerInterface; |
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
Using these fonts | |
Set the android:fontFamily and android:textStyle attributes, e.g. | |
<!-- Roboto Bold --> | |
<TextView | |
android:fontFamily="sans-serif" | |
android:textStyle="bold" /> | |
to the desired values from this table: | |
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> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width,initial-scale=1.0,user-scalable=yes"> | |
<style> | |
body { | |
display: flex; | |
height: 100vh; |
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 { isEmpty } from "@ember/utils"; | |
import { and, or, alias, reads } from "@ember/object/computed"; | |
import { debounce } from "@ember/runloop"; | |
import { inject as service } from "@ember/service"; | |
import { inject } from "@ember/controller"; | |
import Controller from "@ember/controller"; | |
import DiscourseURL from "discourse/lib/url"; | |
import Quote from "discourse/lib/quote"; | |
import Draft from "discourse/models/draft"; | |
import Composer from "discourse/models/composer"; |