Skip to content

Instantly share code, notes, and snippets.

View inotnako's full-sized avatar

Anton Konovalov inotnako

View GitHub Profile
@inotnako
inotnako / LDA_SparkDocs.scala
Created December 1, 2015 12:28 — forked from jkbradley/LDA_SparkDocs
LDA Example: Modeling topics in the Spark documentation
/*
This example uses Scala. Please see the MLlib documentation for a Java example.
Try running this code in the Spark shell. It may produce different topics each time (since LDA includes some randomization), but it should give topics similar to those listed above.
This example is paired with a blog post on LDA in Spark: http://databricks.com/blog
Spark: http://spark.apache.org/
*/
import scala.collection.mutable
@inotnako
inotnako / user.json
Created May 22, 2015 13:21
user.json
{
"name":"Anton",
"about":"it's",
"age":18,
"registration":"2015-05-22T13:19:23.772Z",
"birthday":"1990-05-22T13:19:23.772Z",
"contacts":[
{
"value":"myskype",
"type":0,
@inotnako
inotnako / company.json
Last active August 29, 2015 14:19
company.json
{
"name":"MyCompany",
"accountId":"1469fd46-54f2-458d-810f-5b2626d16699",
"icon":"http://icon/my/company",
"industry": ["LSP"],
"taxonomy":[
"IT",
"IT-Programming"
],
"location":{
@inotnako
inotnako / gooop.md
Last active August 29, 2015 14:19
Обучение | Работа с типами данных | Cоздание своего типа

Подобие ООП

##Задание:

  • Создать тип ContactType типа int и используя ёоту задать 4 константы данного типа:

    • ContactTypeIms
    • ContactTypePhone
    • ContactTypeEmail
  • ContactTypeAddress

2015/04/16 15:11:55 GET /api/marketplace/v1/project/documents/export/9e8dae30-967c-4bcd-bd69-c3a4e143d282?accountId=8c515710-888c-4a36-b2aa-fbdbbd37680a HTTP/1.1
Host: mp.smartcat.stage3.als.local
Authorization: Basic TWFya2V0cGxhY2U6ZEdWemRFMWhjbXRsZEhCc1lXTmxVSEp2Wkc1TmIyNGdUV0Z5SURJeklESXdNVFVnTWpBNk1EUTZNak1nUjAxVUt6QXpNREFnS0UxVFN5az0=
Content-Type: application/json; charset=utf-8
2015/04/16 15:11:55 HTTP/1.1 404 Not Found
Content-Length: 1245
Content-Type: text/html
Date: Thu, 16 Apr 2015 12:11:31 GMT
{"userId":"a4dd69ef-9f17-4253-ae54-b8bb0826556e","firstName":"Dmitrieva","lastName":"Kseniia","type":"Freelancer"}
2015/04/07 15:31:56 HTTP/1.1 500 Internal Server Error
Content-Length: 9660
Cache-Control: no-cache
Content-Type: application/json; charset=utf-8
Date: Tue, 07 Apr 2015 12:40:47 GMT
Expires: -1
Pragma: no-cache
{"Details":"AbbyyLS.PaymentTools.WebApi.Client.WebApiException: Server return: Code InternalServerError(500), ReasonPhrase: Internal Server Error, Content: <html>\r\n<head><title>500 Internal Server Error</title></head>\r\n<body bgcolor=\"white\">\r\n<center><h1>500 Internal Server Error</h1></center>\r\n<hr><center>nginx</center>\r\n</body>\r\n</html>\r\n\r\n at AbbyyLS.PaymentTools.WebApi.Client.Connection.<EnsureSuccessStatusCode>d__15.MoveNext() in c:\\BuildAgent\\work\\3083327bdf8cf52e\\WebApi.Client\\Connection.cs:line 195\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task tas
POST /api/marketplace/v1/account HTTP/1.1
Host: mp.smartcat.stage3.als.local
Authorization: Basic TWFya2V0cGxhY2U6ZEdWemRFMWhjbXRsZEhCc1lXTmxVSEp2Wkc1TmIyNGdUV0Z5SURJeklESXdNVFVnTWpBNk1EUTZNak1nUjAxVUt6QXpNREFnS0UxVFN5az0=
Content-Type: application/json; charset=utf-8
{"userId":"35602619-7b90-42e1-8dcd-3011bbe15980","firstName":"Sigora","lastName":"Olga","type":"Freelancer"}
2015/04/07 14:20:48 HTTP/1.1 500 Internal Server Error
Content-Length: 9581
Cache-Control: no-cache
Content-Type: application/json; charset=utf-8
@inotnako
inotnako / table_langs
Created April 3, 2015 07:23
languages sync
0,da,'Danish',Danish
1,de,'German',German
2,dv,'Divehi, Dhivehi, Maldivian',Divehi
3,dz,'Dzongkha',Dzongkha
4,ee,'Ewe',Ewe
5,el,'Greek',Greek
6,en,'English',English
7,eo,'Esperanto',Esperanto
8,es,'Spanish',Spanish
9,et,'Estonian',Estonian
Request: GET /api/marketplace/v1/account?userId=b7725659-2d87-4c9f-b507-8ad124cd8355 HTTP/1.1
Host: 10.9.0.103
Authorization: Basic TWFya2V0cGxhY2U6TWFya2V0cGxhY2U=
Content-Type: application/json; charset=utf-8
Response: HTTP/1.1 200 OK
Content-Length: 179
Cache-Control: no-cache
Content-Type: application/json; charset=utf-8