Skip to content

Instantly share code, notes, and snippets.

View ybouhjira's full-sized avatar

Youssef Bouhjira ybouhjira

View GitHub Profile
@saxena-gaurav
saxena-gaurav / sample.html
Last active February 13, 2016 14:53
AngularJS Leaflet directive heatmap example
<leaflet center="center" layers="layers" height="480px" width="1640px"></leaflet>

Learn a variety of programming paradigms:

  • Write a program in assembly language
  • Write an application in a functional language
  • Write an application in an object-oriented language
  • Write an application in a prototype-based language
  • Write an application in a logic programming language
  • Write an application using the Actor model
  • Write an application in Forth
@jdachtera
jdachtera / DoctrineRelationProvider.php
Created May 8, 2014 10:24
Automatically generate HATEOAS links for doctrine relations
<?php
namespace Acme\FooBundle\Hateoas;
use Doctrine\ORM\EntityManager;
use Hateoas\Configuration\Metadata\ClassMetadataInterface;
use Hateoas\Configuration as Hateoas;
use Symfony\Component\Routing\Route;
use Symfony\Component\Routing\RouterInterface;
@ybouhjira
ybouhjira / virtual.cpp
Last active August 29, 2015 13:55
Demo of virtual methods in cpp
#include <iostream>
#include <vector>
class Parent {
public:
virtual void say() {
std::cout << "I'm the parent" << std::endl;
}
};
@tonious
tonious / hash.c
Last active February 17, 2023 02:25
A quick hashtable implementation in c.
/* Read this comment first: https://gist.github.com/tonious/1377667#gistcomment-2277101
* 2017-12-05
*
* -- T.
*/
#define _XOPEN_SOURCE 500 /* Enable certain library functions (strdup) on linux. See feature_test_macros(7) */
#include <stdlib.h>
#include <stdio.h>
@kogakure
kogakure / .gitignore
Last active December 17, 2023 08:21
Git: .gitignore file for LaTeX projects
*.acn
*.acr
*.alg
*.aux
*.bak
*.bbl
*.bcf
*.blg
*.brf
*.bst