##Tomuz документация:##
-
APIKEY должен пристутствовать в заголовке каждого запроса
APIKEY: deadbeef Content-Type: application/x-www-form-urlencoded
-
Каждый запрос должен исползовать метод POST
#NGINX, PHP, MYSQL NI RESTART QILISH | |
#nginx loglari: /var/log/nginx/online.maxtrack.error | |
sudo vim /var/log/nginx/online.maxtrack.error | |
#nginx access loglari : /var/log/nginx/online.maxtrack.access | |
sudo vim /var/log/nginx/online.maxtrack.access | |
#php loglari: /var/log/php-fpm.log | |
sudo vim /var/log/php-fpm.log |
var info = "[info]....."+Date()+" "; | |
var warning = "[warning].."+Date()+" "; | |
var notice = "[notice]..."+Date()+" "; | |
var exec = require("child_process").exec, child; | |
var socket = require("socket.io-client")("http://localhost:8080"); | |
console.log(info+"start"); |
##Tomuz документация:##
APIKEY должен пристутствовать в заголовке каждого запроса
APIKEY: deadbeef
Content-Type: application/x-www-form-urlencoded
Каждый запрос должен исползовать метод POST
import java.util.Scanner; | |
public class StringTask{ | |
static String splitter(String word, char[] exclude){ | |
word = word.toLowerCase(); | |
boolean contains; | |
StringBuilder consonants = new StringBuilder(); | |
for(int i=0; i < word.length(); i++){ |
#!/usr/bin/env ruby | |
require "webrick" | |
=begin | |
WEBrick is a Ruby library that makes it easy to build an HTTP server with Ruby. | |
It comes with most installations of Ruby by default (it’s part of the standard library), | |
so you can usually create a basic web/HTTP server with only several lines of code. | |
The following code creates a generic WEBrick server on the local machine on port 1234, |
<!DOCTYPE html> | |
<html> | |
<head> | |
<script src="http://127.0.0.1:8080/socket.io/socket.io.js"></script> | |
<script src="jquery.js"></script> | |
</head> | |
<body> | |
<ul id="messages"></ul> | |
<script type="text/javascript"> | |
var socket = io.connect('http://127.0.0.1:8080'); |
var mysql = require('mysql'); | |
var ini = require('ini'); | |
var fs = require('fs'); | |
var logger = require("winston"); | |
var config = ini.parse(fs.readFileSync('./config.ini', 'utf-8')) | |
var serverPort = config.server.port; | |
var dbUser = config.database.user; | |
var dbPass = config.database.password; | |
var dbHost = config.database.host; |
#include<stdlb.h> | |
#include<stdio.h> | |
int isSubsetSum1(int arr[], int n, int sum) | |
{ | |
/* The value of subset[i][j] will be true if there is a | |
subset of set[0..j-1] */ | |
int subset[sum+1][n+1]; | |
int i,j; | |
#include<stdlb.h> | |
#include<stdio.h> | |
int isSubsetSum1(int arr[], int n, int sum) | |
{ | |
/* The value of subset[i][j] will be true if there is a | |
subset of set[0..j-1] */ | |
int subset[sum+1][n+1]; | |
int i,j; | |
drop table employee; | |
create table employee( | |
id numeric(7) NOT NULL default 1, | |
last_name varchar(25), | |
first_name varchar(25), | |
DEPT_ID numeric(7), | |
constraint pk_employee_id | |
primary key(id) | |
); | |
--alter table employee |