Skip to content

Instantly share code, notes, and snippets.

Dmitry Patsura ovr

View GitHub Profile
@ovr
ovr / 0_reuse_code.js
Created February 5, 2014 13:03
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@ovr
ovr / gist:9366474
Last active August 29, 2015 13:57
Phalcon book review
Hi, sorry about i miss to send it.
In russian
Сейчас, когда Phalcon начинает обретать популярность в сообщество разработчики всех уровней. Я часто наблюдаю что приходя к нам начинающие разработчики и вместе с ними типичные вопросы от них. Я считаю, что для начинающих разработчиков это книга должна быть как библия на столе (прочтена и выучена на изусть).
Каждый начинающий разработчик должен ценить свое время так как прочитав книгу у него отпадут вопросы на которые он тратил бы свое время во время самостоятельного обучения
Стоит отметить что как книга это всего лишь сборник всех документации и манулов по Phalcon.
Но для уже знакомых с Phalcon разработчиков подчеркнуть толково вряд ли что удастся. Очень бы хотелось увидеть продолжение книги, но уже с более сложными примерами. Все уданого программирования на Phalcon)
Now when Phalcon starts gaining popularity in the community of all developers levels, i often see that coming to us novice developers , and with them the typical questions from them.
I believe that
#include "hsTimer.h"
#include <stdlib.h>
#include <iostream>
#include <tchar.h>
#include <math.h>
using namespace std;
using namespace MobyDisk;
class LinearCongruentRnd {
using System;
using System.Collections.Generic;
using System.Text;
namespace test_cs20
{
class Program
{
static void calculatePI()
{
@ovr
ovr / ait_remove.bash
Created August 16, 2014 04:11
Remove old configuration for ATI Drivers
sudo sh /usr/share/ati/fglrx-uninstall.sh --force
sudo apt-get purge fglrx*
sudo rm -f /etc/X11/xorg.conf
sudo reboot
#after reboot
sudo /usr/bin/aticonfig --initial
ovr@ovr-desktop:~/Backups$ sudo add-apt-repository ppa:xorg-edgers/ppa
[sudo] password for ovr:
== Xorg packages fresh from git ==
Currently supported releases are Trusty/14.04, and Utopic/14.10
* xserver 1.16 is now in for utopic, beware that fglrx does not support it yet!
* WARNING: Do not use this PPA with the precise X backport stacks, aka if you fresh install of 12.04.2 or newer. You can switch back to a compatible one by installing xserver-xorg-lts-precise instead if you do want to use these packages but horrible things will happen if you don't.
#Download Elementary OS from here:
#http://sourceforge.net/projects/elementaryos/files/stable/
#First you update your system
sudo apt-get update && sudo apt-get dist-upgrade
#Install Google Chrome
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
sudo sh -c 'echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list'
/*
LU-decomposition according to Crout's algorithm with pivoting.
Description:
int LU_decompos(double **a,int n,int *indx,int *d,double *vv);
Parameters:
a - source matrix (n x n) on input, destination on output;
n - the matrix size;
indx - integer array (size n) to remember permutations;
d - on output, contains +1 or -1 for even or odd permutations number.
vv - temporary array (size n).
@ovr
ovr / gist:fded93439a06270548cb
Created January 11, 2015 09:17
Ссылки
Phalcon https://github.com/phalcon/cphalcon/tree/2.0.0
Zephir https://github.com/phalcon/zephir
Hey all!
So, We are active users who uses Phalcon/Zephir and we want to see good progress on this.
But due to some problems in the organization process of the community, and not enought time for contirube from main maintainers (@andres ....
Projects are developing quite sluggish and It's awfull.
We would like to create a public vote "Transfer Phalcon and Zephir to Zephir and Phalcon organtizations",
identifying major maintainers and principles "How to development this projects".
Basic things that we are motivated: