Skip to content

Instantly share code, notes, and snippets.

View MartinRedzepovic's full-sized avatar

Carve MartinRedzepovic

View GitHub Profile
@MartinRedzepovic
MartinRedzepovic / BezierMeshRenderer.cs
Created March 4, 2020 09:20 — forked from a-type/gist:b26e8fc02e64da9e9709
Unity3D 3D Bezier Curve Mesh Generator
using UnityEngine;
using System.Collections;
using System.Collections.Generic;
public class Bezier3D : MonoBehaviour
{
public Vector3 start = new Vector3(0, 0, 0);
public Vector3 end = new Vector3(1, 1, 0);
public Vector3 handle1 = new Vector3(0, 1, 0);
public Vector3 handle2 = new Vector3(1, 0, 0);
@MartinRedzepovic
MartinRedzepovic / sigma.fruchterman.js
Created April 7, 2018 14:19 — forked from sheymann/sigma.fruchterman.js
Fruchterman-Reingold layout plugin for Sigma.js with automatic cooling and stopping condition.
/**
* Linkurious 2012, all rights reserved.
* Sébastien Heymann <seb@linkurio.us>,
* Romain Yon <romain@linkurio.us>
*
* Please use http://jsbeautifier.org/ and indent with 2 spaces.
*
* Lib docs:
* http://twitter.github.com/bootstrap/
* http://docs.jquery.com/
SELECT SUM(NOW()::date - sq.sig) FROM(
SELECT DISTINCT programmers.id, programmers.signed_in_at AS sig
FROM programmers
INNER JOIN projects_programmers ON (programmers.id = projects_programmers.programmer_id)
INNER JOIN projects ON (projects_programmers.project_id = projects.id)
INNER JOIN languages ON (languages.id = projects.language_id)
WHERE languages.label LIKE 'ruby') AS sq;