Skip to content

Instantly share code, notes, and snippets.

O. M. Voronyi
Volodymyr Vynnychenko Central Ukrainian State Pedagogical University
Diophantine equations for young mathematicians
Annotation: The method of expedient tasks describes the main methods for solving Diophantine equations, which comply with the level of secondary school students. A selection of tasks was made from the tasks of the All-Ukrainian Olympiad of Young Mathematicians and tests of the Minor Academy of Sciences of Ukraine.
Keywords: Diophantus, students, equations, solution, integers, method, multipliers, localization.
@voronoy
voronoy / va-center.css
Last active August 29, 2015 14:08
vertical align center
.parent-element {
-webkit-transform-style: preserve-3d;
-moz-transform-style: preserve-3d;
transform-style: preserve-3d;
}
.element {
position: relative;
top: 50%;
-webkit-transform: translateY(-50%);
@voronoy
voronoy / Export App Icons.jsf
Created October 20, 2014 15:10
Fireworks Command: Export App Icons
var dom = fw.getDocumentDOM();
var sizes = [
// ios
[57, 57, 'icon'],
[114, 114, 'icon@2x'],
[40, 40, 'icon-40'],
[80, 80, 'icon-40@2x'],
[50, 50, 'icon-50'],
[100, 100, 'icon-50@2x'],
@voronoy
voronoy / gist:9454c299871593fc1e68
Created October 20, 2014 11:18
circular mask for non-square image
.mask {
display: inline-block;
width: 100px;
max-height: 100px;
border-radius: 50%;
overflow: hidden;
}
.mask > img {
max-width: 100%;
}
@voronoy
voronoy / sync.bat
Created September 18, 2014 16:14
sync s3
aws s3 sync s3://source s3://target --acl public-read
@voronoy
voronoy / styles.css
Created August 8, 2014 11:58
center and crop image
div
{
width: 200px;
height: 200px;
overflow: hidden;
margin: 10px;
position: relative;
}
img {
position:absolute;
<?php
App::uses('DispatcherFilter', 'Routing');
/**
* Api Cors Dispatcher
*/
class ApiCorsDispatcher extends DispatcherFilter {
public $priority = 1;