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
<ScrollView | |
xmlns:android="http://schemas.android.com/apk/res/android" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
android:id="@+id/scrollView" | |
android:layout_gravity="center_horizontal" > | |
<LinearLayout | |
android:orientation="vertical" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" |
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
'use strict'; | |
const express = require('express'), | |
http = require('http'), | |
socketIo = require('socket.io'), | |
fetch = require('node-fetch'), | |
bodyParser = require('body-parser'), | |
dateFormat = require('dateformat'); | |
const config = require('./config/config.json'); |
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
{ | |
"server": "http://chat-backend.testserver.com" | |
} |
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
var roomId = '95'; | |
var apikey ='90d6bae946306d2dc3cd3c01b56889b8863495744bd3c4ab53adbb2cc546934f3482e1b7fa3ad24dc97842b07e0080aa3ad19fcb106b2f57719e8d9b76b139e7'; | |
var socket = io('/chat'); | |
$('form').submit(function(){ | |
socket.emit('message', { | |
uuid: 'randomMsgUUID_' + parseInt(Math.random() * 1000000), | |
body: $('#message').val() | |
}, function(data) { |
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
[program:chat-server] | |
command=/usr/bin/node /home/ekreative/sites/chat-server/app/index.js | |
process_name=chat-server-%(process_num)s | |
numprocs=1 | |
user=ekreative | |
autostart=true | |
autorestart=true | |
stdout_logfile=/var/log/supervisor/chat-server-%(process_num)s.stdout.log | |
stdout_logfile_backups=3 | |
stderr_logfile=/var/log/supervisor/chat-server-%(process_num)s.stderr.log |
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
<VirtualHost *:80> | |
ServerName chat-backend.testserver.com | |
RewriteEngine On | |
RewriteCond %{REQUEST_URI} ^/ [NC] | |
RewriteCond %{QUERY_STRING} transport=websocket [NC] | |
RewriteRule /(.*) ws://localhost:3001/$1 [P,L] | |
ProxyPass / http://localhost:3000/ | |
ProxyPassReverse / http://localhost:3000/ |
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
angular.module('DemoEkBlog', [ | |
'ui.bootstrap', | |
'ui.tinymce', | |
'angularModalService', | |
'ngFileUpload' | |
]) | |
.controller('BaseCtrl', ['$rootScope', BaseCtrl]) | |
; | |
function BaseCtrl($rootScope) { |
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 ng-app="DemoEkBlog"> | |
<head> | |
<meta charset="UTF-8" /> | |
<title>Demo eKreative Blog CP</title> | |
<link href="{{ asset('css/vendor.css') }}" media="all" rel="stylesheet" type="text/css" /> | |
<link href="{{ asset('scss/dashboard.css') }}" media="all" rel="stylesheet" type="text/css" /> | |
{% block stylesheets %}{% endblock %} | |
</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
{%- block form_start -%} | |
{% set method = method|upper %} | |
{%- if method in ["GET", "POST"] -%} | |
{% set form_method = method %} | |
{%- else -%} | |
{% set form_method = "POST" %} | |
{%- endif -%} | |
<form name="{{ name }}" method="{{ form_method|lower }}" action="{{ action }}"{% for attrname, attrvalue in attr %} {{ attrname }}="{{ attrvalue }}"{% endfor %}{% if multipart %} enctype="multipart/form-data"{% endif %}> | |
{%- if form_method != method -%} |
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
{% extends 'AppBundle::baseDashboard.html.twig' %} | |
{% block body %} | |
<h1>Issue edit</h1> | |
<div class="issueEditor" ng-controller="IssueEditorCtrl" ng-init="init({{ initData|json_encode }})" ng-submit=""> | |
<div class="row"> | |
<form name="issueForm" class="render" ng-cloak novalidate> | |
<div class="issue_title"> | |
<input ng-model="issue.title"> |
OlderNewer