Skip to content

Instantly share code, notes, and snippets.

View just-boris's full-sized avatar

Boris Serdiuk just-boris

View GitHub Profile
C:\Python27\python.exe D:/Coding/Py-plot/optimal_search.py
Optimization terminated successfully.
Current function value: -0.749223
Iterations: 6
Function evaluations: 111
Gradient evaluations: 25
(0.010, -2.998)
Process finished with exit code 0
C:\Python27\python.exe D:/Coding/Py-plot/optimal_search.py
Optimization terminated successfully.
Current function value: 0.000221
Iterations: 0
Function evaluations: 4
Gradient evaluations: 1
(1.000, 2.000)
Process finished with exit code 0
C:\Python27\python.exe D:/Coding/Py-plot/optimal_search.py
Optimization terminated successfully.
Current function value: -0.000393
Iterations: 45
Function evaluations: 97
(0.009, 1.699)
Process finished with exit code 0
@just-boris
just-boris / gist:5357541
Created April 10, 2013 19:10
fmin_bfgs
C:\Python27\python.exe D:/Coding/Py-plot/optimal_search.py
Optimization terminated successfully.
Current function value: 0.000221
Iterations: 0
Function evaluations: 4
Gradient evaluations: 1
(1.000, 2.000)
Process finished with exit code 0
<!DOCTYPE html>
<html>
<head>
<title>Не открывается балун</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script src="//api-maps.yandex.ru/2.0/?load=package.standard,package.clusters&lang=ru-RU" type="text/javascript"></script>
<script type="text/javascript">
var markers = [], clusterer;
ymaps.ready(init);
#!/usr/bin/env python
# -*- coding: UTF-8 -*-
import json
import urllib2
from urllib import urlencode
import json
import os
import os.path
import sys
import time
@just-boris
just-boris / README.txt
Last active December 28, 2015 02:19 — forked from i-scorpion/README.txt
Here is a simple jQuery plugin to make a table header fixed on top when window is scrolled.
Using the code from twitter bootstrap documentation page, this code is customized for table header.
Create the table with following layout -
<table class="table-fixed-header">
<thead class="header">
<tr>
<th>Column 1</th>
<th>Column 2</th>
<th>Column 3</th>
@just-boris
just-boris / mongo-export
Created March 14, 2014 16:20
mongo import and export
#!/bin/node
"use strict";
var fs = require('fs'),
exec = require('child_process').exec;
var db = process.argv[2],
out_dir = process.argv[3],
host = process.argv[4] || 'localhost';
@just-boris
just-boris / bower.json
Last active August 29, 2015 14:00
Bower postinstall
{
"name": "my-awesome-package",
"version": "0.0.0",
"dependencies": {
"angular": "1.2.14",
"jquery": "~2.1.0",
"bootstrap": "~3.1.0"
}
}
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>org.examples</groupId>
<artifactId>allure-junit-variant</artifactId>
<version>1.0-SNAPSHOT</version>
<name>Allure Junit Variant</name>