Skip to content

Instantly share code, notes, and snippets.

View webskin's full-sized avatar

Mickaël Gauvin webskin

  • Mickaël Gauvin
  • France
View GitHub Profile
@webskin
webskin / jargon.md
Created May 8, 2023 16:03 — forked from cb372/jargon.md
Category theory jargon cheat sheet

Category theory jargon cheat sheet

A primer/refresher on the category theory concepts that most commonly crop up in conversations about Scala or FP. (Because it's embarassing when I forget this stuff!)

I'll be assuming Scalaz imports in code samples, and some of the code may be pseudo-Scala.

Functor

A functor is something that supports map.

Java-To-ActionScript DTO Generation
To serialize the data between Flex and Java BlazeDS expects to have the matching pairs of Flex and Java DTOs. Just add the @FXClass annotation above your Java class definition, and CDB will generate a corresponding ActionScript class and will keep it in sync with its Java peer:
. . .
import com.farata.dto2fx.annotations.FXClass;
@FXClass(kind=FXClassKind.REMOTE)
public class Company implements Serializable {
. . .
The corresponding ActionScript class will implement IPropertyChangeNotifier interface, dispatching PropertyChangeEvent on every update of every property, which is crucial for collection state tracking.
@webskin
webskin / Matrix.cpp
Created October 27, 2014 14:39
Matrix.cpp
/* -*- Mode: C++; tab-width: 20; indent-tabs-mode: nil; c-basic-offset: 2 -*-
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "Matrix.h"
#include "Tools.h"
#include <algorithm>
#include <math.h>
@webskin
webskin / Matrix.h
Created October 27, 2014 14:38
Matrix.h
/* -*- Mode: C++; tab-width: 20; indent-tabs-mode: nil; c-basic-offset: 2 -*-
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#ifndef MOZILLA_GFX_MATRIX_H_
#define MOZILLA_GFX_MATRIX_H_
#include "Types.h"
#include "Rect.h"
@webskin
webskin / configuration_zsh
Last active November 1, 2016 20:18 — forked from nicoulaj/build-zsh.sh
Installation de zsh et des modules supplémentaires
installer zsh depuis synaptic
lancer zsh et choisir l'option de configuration automatique (2)
changer le shell par defaut
chsh
/bin/zsh
@webskin
webskin / gist:463f1f4aaf8b4d949c3d
Last active August 29, 2015 14:06
Commandes Linux Utiles - Hardware

Fréquence mémoire

$ sudo lshw -short -C memory

ou

$ sudo dmidecode | grep -A 15 Memory

### Fréquence processeur

javascript:(function(e,a,g,h,f,c,b,d)%7Bif(!(f=e.jQuery)%7C%7Cg%3Ef.fn.jquery%7C%7Ch(f))%7Bc=a.createElement(%22script%22);c.type=%22text/javascript%22;c.src=%22http://ajax.googleapis.com/ajax/libs/jquery/%22+g+%22/jquery.min.js%22;c.onload=c.onreadystatechange=function()%7Bif(!b&&(!(d=this.readyState)%7C%7Cd==%22loaded%22%7C%7Cd==%22complete%22))%7Bh((f=e.jQuery).noConflict(1),b=1);f(c).remove()%7D%7D;a.documentElement.childNodes%5B0%5D.appendChild(c)%7D%7D)(window,document,%221.3.2%22,function($,L)%7B$('%23header,%20.pagehead,%20.breadcrumb,%20.commit,%20.meta,%20%23footer,%20%23footer-push,%20.wiki-actions,%20%23last-edit,%20.actions,%20.header').remove();%20$('%23files,%20.file').css(%7B%22background%22:%22none%22,%20%22border%22:%22none%22%7D);%20$('link').removeAttr('media');%7D);
@webskin
webskin / ScalazExperiments.scala
Last active August 29, 2015 14:01
Scalaz Experiments
package sz
import scalaz._
import scala.Some
/**
* Created by Mickaël Gauvin on 2/20/14.
*/
object ScalazExperiments {
@webskin
webskin / gist:9484807
Last active August 29, 2015 13:57
intellij yeoman scope
!file:node_modules//*&&!file:dist//*&&!file:app//*/*.min.*&&!file:.tmp//*&&!file:.sass-cache//*