Skip to content

Instantly share code, notes, and snippets.

#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 September 7, 2017 15:57 — forked from tentacode/list.html.twig
Twig recursive macro
{% 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>
<?
$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);
Class Plotline
def initialize(a,b)
@a = a
@b = b
result = -b/a
return result
end
end
line = new Plotline(-10,100);