Skip to content

Instantly share code, notes, and snippets.

Avatar
😷
Out sick

Vasiluk Dmitry vasilukwolf

😷
Out sick
View GitHub Profile
View parallel.c
#include <stdlib.h>
#include <stdio.h>
#include <sys/time.h>
#include <cilk/cilk.h>
#define n 4096
int s = 4;
double A[n][n];
double B[n][n];
double C[n][n];
@vasilukwolf
vasilukwolf / list.html.twig
Created Sep 7, 2017 — forked from tentacode/list.html.twig
Twig recursive macro
View list.html.twig
{% macro recursiveCategory(category) %}
<li>
<h4><a href="{{ path(category.route, category.routeParams) }}">{{ category }}</a></h4>
{% if category.children|length %}
<ul>
{% for child in category.children %}
{{ _self.recursiveCategory(child) }}
{% endfor %}
</ul>
View Help.php
<?
$dir ="/home/bitrix/ext_www/host.svarbi.ru/upload/iblock/";
function optimizeimage($input,$output)
{
$images = new Imagick(glob($input));
foreach($images as $image) {
$image->stripimage();
$image->setImageCompression(Imagick::COMPRESSION_JPEG);
$image->setImageCompressionQuality(78);
View test.rb
Class Plotline
def initialize(a,b)
@a = a
@b = b
result = -b/a
return result
end
end
line = new Plotline(-10,100);