Skip to content

Instantly share code, notes, and snippets.

View antoinefortin's full-sized avatar

Antoine Fortin antoinefortin

  • Montreal, Canada
View GitHub Profile
var mapimg;
var montreal = {
lat: 45.501689,
long: -73.567256
}
var clat = montreal.lat;
var clon = montreal.long;
@antoinefortin
antoinefortin / links-txt.txt
Last active April 6, 2018 21:33
[usefull links]
@antoinefortin
antoinefortin / sound-eq-processing.jar
Created March 27, 2018 20:51
[SoundEq Processing]
import processing.sound.*;
SoundFile song;
FFT fft;
void setup() {
size(514, 360);
set nocompatible " be iMproved, required
filetype off " required
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" alternatively, pass a path where Vundle should install plugins
"call vundle#begin('~/some/path/here')
" let Vundle manage Vundle, required
Plugin 'gmarik/Vundle.vim'
Plugin 'StanAngeloff/php.vim'
@antoinefortin
antoinefortin / array.cpp
Created March 28, 2018 20:25
[C++ Array Basics]
#include <iostream>
#include <string>
#include <vector>
using namespace std;
void vectorFunctions(vector<int> const& a) {
}
@antoinefortin
antoinefortin / meeting29mars.txt
Last active April 3, 2018 19:16
[Meeting Tech Havas]
!!! Meeting
Xavier
-- Travaille usr API de HEC pour le kickstart
-- Back end est chez HEC et nous file des API pour
Étienne
--Tentative Framer
--Un peu de fix sur Quebec en Forme (1)
--Librarie PDF
@antoinefortin
antoinefortin / loudDraw.jar
Created April 4, 2018 17:48
[ImageDrawin-Processing]
PImage img;
int pointillize = 4;
int noise = 1;
int gravity = 0;
int pressedCounter = 0;
void setup() {
size(600,600);
img = loadImage("loud.jpeg");
background(0);
smooth();
@antoinefortin
antoinefortin / DataClassifier.php
Created April 4, 2018 20:21
[DataToolSet Php]
<?php
class DatasTool {
public $sources;
public $processed = array();
// Give me a SQL ressource and bind it with the "label" to the DatasTool
public function parseSql($ressource, $label) {
$this->processed[$label]= array();
@antoinefortin
antoinefortin / missing-datas.py
Created April 5, 2018 19:27
[Missing Data entries Python]
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Thu Apr 5 15:15:16 2018
@author: antoine.fortin
"""
import numpy as np
import matplotlib.pyplot as plt
import pandas as pd
dataset = pd.read_csv('Data.csv')
@antoinefortin
antoinefortin / basicProcessing.java
Created April 5, 2018 21:44
[Basic Processing -Skectch]
Round[] R = new Round[5];
int circleWidth = 15;
int circleHeight = 15;
int counter = 0;
void setup() {
background(55);
size(1200,600);
for(int i = 0; i < 5; i++) {
R[i] = new Round();