Skip to content

Instantly share code, notes, and snippets.

🎯
Learning how to make good products

denis mrjazz

🎯
Learning how to make good products
Block or report user

Report or block mrjazz

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View sinkeras.py
import os
import time
import warnings
import math
import numpy as np
from numpy import newaxis
from keras.layers.core import Dense, Activation, Dropout
from keras.layers.recurrent import LSTM
from keras.models import Sequential
import matplotlib.pyplot as plt
View freemind-notes-extract.php
<?php
if (isset($_SERVER['argv']) && count($_SERVER['argv']) > 1) {
$doc = file_get_contents($_SERVER['argv'][1]);
$xml = new SimpleXMLElement($doc);
process($xml, "Missed pages:", 'messagebox_warning');
process($xml, "Questions:", 'help');
markersList($xml, "Won't be implemented in first version:", 'stop-sign');
View rest-api.php
<?php
// endpoints
function getToken() {
echo 'GET token';
}
function postToken() {
echo 'POST token';
View docker-commands.md
View Correction-price-logic.md

Correction price logic

System looking for indicators that impact on price and according to type of indicator, calculate price include koefficient. This coefficient will be applied to next positions until section won't be finished or new indicator meet.

Case sensetive volume indicators:

  • '10cl' : 0.133333333
View terminal-video.py
from subprocess import Popen, PIPE
from time import time
CHARACTERS = [' ', '.', ',', ':', ';', 'i', '1', 't', 'f', 'L', 'C', 'G', '0', '8', '@']
HEIGHT = 240
WIDTH = 426
DISPLAY_MODES = {
View gist:0dbdd1b6ffa4374a156d
{
"code": "OK",
"message": "Operation is successfully executed",
"data": [
{
"project": "5620e02e297df20600a0dbd0",
"employee": "5620de28297df20600a0d992",
"approvedBy": "5620de2f297df20600a0da02",
"reportedBy": "5620de28297df20600a0d992",
"item": "5620e02e297df20600a0dbd1",
View gist:2675c22fbb598cc5fa96
2016-02-12 14:08:49,299 - sync - INFO - Request:
{"comment": "- 3-create-searchable-front-end-for-data - done\n- (gulp autoreload, tmp limit by zip codes, filter by multiple hcpcs codes, filter by total paid amount)\n", "reportedAt": "2016-02-11T14:08:49.0Z", "approvedBy": "5620de2f297df20600a0da02", "reportedBy": "5620de2f297df20600a0da02", "billedTime": 28800.0, "project": "56b0a9cd3ec0e60800c15ff3", "item": "56b0a9cd3ec0e60800c15ff4", "jiraTicket": "PROJ", "status": "approved", "approvedTime": 28800.0, "date": "2016-02-11T14:08:49.0Z", "employee": "5620de27297df20600a0d989", "approvedAt": "2016-02-11T14:08:49.0Z", "reportedTime": 28800.0, "type": "Regular", "employeeName": "Vladimir Gordienko"}
2016-02-12 14:08:49,299 - sync - INFO - Response:
{"code":"CREATED","message":"The request has been fulfilled and resulted in a new resource being created","data":{"comment":"- 3-create-searchable-front-end-for-data - done\n- (gulp autoreload, tmp limit by zip codes, filter by multiple hcpcs codes, filter by total
View REST api server
// npm install express
// npm install body-parser
var express = require('express');
var bodyParser = require('body-parser')
var app = express();
app.use(bodyParser.urlencoded({ extended: false }));
View WebSocket server
// npm install websocket
var server = require('websocket').server, http = require('http');
var socket = new server({
httpServer: http.createServer().listen(8080)
});
socket.on('request', function(request) {
var connection = request.accept(null, request.origin);
You can’t perform that action at this time.