Skip to content

Instantly share code, notes, and snippets.

@MattiSG
MattiSG / Artifacts, practice and knowledge elaboration.md
Created May 29, 2014 18:13
“Artefacts, practice & knowledge elaboration” seminary notes

Artefacts, practice & knowledge elaboration: an interdisciplinary perspective

Introduction

Two views of artefacts:

  • [Artefacts in groups?]
  • Artefacts as the prolongation of cognitive systems.
@MattiSG
MattiSG / notes.md
Created June 25, 2014 17:49
Faire science avec l'incertitude — notes de séminaire

Positivisme et Constructivisme

Les objets d'étude des SHS et leur connaissance est incertaine. La connaissance des objets physiques peut être incertaine, mais celle des objets sociaux l'est d'autant plus que ces derniers sont des constructions sociales. Double constructions ontologique car l'interprétation dépend à la fois des catégories du chercheur et de

Systèmes complexes : métathéorie. Individus, sociétés, cultures sont des systèmes complexes. Approche qui focalise sur les interactions, imbrication des niveaux, phénomènes émergents, imprédictibilité… changement car réductionnisme impossible.

Deux sources de complexité en SHS :

  • Grand nombre d’éléments et interactions, même si les interactions sont simples.
  • Complexité des interactions, caractéristique en SHS : comportements, stratégies, intentionnalité…
@MattiSG
MattiSG / Tutorial.md
Last active August 29, 2015 14:03
Watai v0.6.2 tutorial

Watai tutorial: the DuckDuckGo example

Subject

We’ll present a test for the DuckDuckGo search engine. This engine is just like Google, except that it doesn’t track you, and that it has a nice disambiguation feature: the “Zero Click Info box”.

Let’s imagine we are engineers at DuckDuckGo, and we want to test if a Zero Click Info box is shown for an acronym: “TTIP”.

@MattiSG
MattiSG / index.md
Created October 14, 2014 19:57
Humble Mozilla Bundle

I'll try to elaborate a bit more on https://twitter.com/matti_sg/status/522103990373588992 and explain why the Humble Mozilla Bundle is such a noticeable event.

Let's recap what's happening: a non-profit (Mozilla) partners with an indie promotion platform (HumbleBundle) to promote its free open-source tech (asm.js and Firefox). It uses all its communication power for this (social accounts but, more importantly, the Firefox start page that morphs into a game itself). Private, independent actors (the game creators and HumbleBundle) benefit from this, the non-profit does too (portions of the bundle price go back to Mozilla), and most of all the union of such big actors proves the platform can deliver the promise.

Mozilla had done several demos of HTML5 + WebGL + asm.js being a proper platform for

@MattiSG
MattiSG / Count unread mails.js
Created November 21, 2014 09:52
Userscripts for Outlook webmail
/** If you use Fluid.app, this is a drop-in.
* The variable storing the count of unread mails is window.fluid.dockBadge, change it as needed for your use case.
*/
window.fluid.dockBadge = '';
setTimeout(updateDockBadge, 1000);
setTimeout(updateDockBadge, 3000);
setInterval(updateDockBadge, 5000);
function updateDockBadge() {
@MattiSG
MattiSG / gist:91cc73e0f8cf76ddf094
Created January 9, 2015 14:22
OpenFisca failure stack trace
14:57:59,557 ERROR [openfisca_core.formulas] An error occurred while calling formula individus@reintegration_titre_restaurant_employeur<2015-02> in openfisca_france.model.cotisations_sociales.remuneration_prive.reintegration_titre_restaurant_employeur
14:57:59,558 ERROR [openfisca_core.formulas] An error occurred while calling formula individus@salbrut<2015-02> in openfisca_france.model.cotisations_sociales.remuneration_prive.salbrut
14:57:59,558 ERROR [openfisca_core.formulas] An error occurred while calling formula individus@ratio_smic_salaire<2015> in openfisca_france.model.cotisations_sociales.allegements.function_2012
14:57:59,558 ERROR [openfisca_core.formulas] An error occurred while calling formula individus@allegement_fillon_annuel<2015> in openfisca_france.model.cotisations_sociales.allegements.allegement_fillon_annuel
14:57:59,558 ERROR [openfisca_core.formulas] An error occurred while calling formula individus@allegement_fillon<2015-01> in openfisca_france.model.cotisations_sociales.allegements.al
@MattiSG
MattiSG / keybase.md
Created April 18, 2015 15:28
keybase.md

Keybase proof

I hereby claim:

  • I am mattisg on github.
  • I am mattisg (https://keybase.io/mattisg) on keybase.
  • I have a public key whose fingerprint is 4153 9680 D622 BF41 8CFE 53AD D175 0153 BF1B E9D0

To claim this, I am signing this object:

@MattiSG
MattiSG / gist:3075116
Created July 9, 2012 08:34
Drop-in cross-platform OSX “open” functionality
#!/bin/bash
# Cross-platform Darwin open(1)
# Simply add this function definition above any OSX script that uses the “open” command
# For additional information on the “open” command, see https://developer.apple.com/library/mac/#documentation/darwin/reference/manpages/man1/open.1.html
open() {
if [[ $(uname) = "Darwin" ]]
then /usr/bin/open "$@" #OS X
else xdg-open "$@" &> /dev/null & # credit: http://stackoverflow.com/questions/264395
fi
@MattiSG
MattiSG / gist:3471250
Created August 25, 2012 21:45
Automatically install Symfony 1 and dependencies on OS X
if ! /usr/local/mysql/support-files/mysql.server start > /dev/null
then echo "MySQL package installed ? Check http://dev.mysql.com/downloads/mysql/5.1.html#macosx-dmg"
exit 1
fi
echo '[client]
socket = /var/mysql/mysql.sock
[mysqld]
@MattiSG
MattiSG / pagesPDFextract.sh
Created August 25, 2012 21:44
Extract PDF preview from Pages document
extract() {
if echo $1 | egrep -q '.pages\/?$'
then arg="$1"
trimmed="$(echo $arg | sed 's:/$::' | sed 's:\.pages::')"
else arg="$1.pages"
trimmed="$1"
echo "source : $arg/QuickLook/Preview.pdf"
echo "dest : $trimmed.pdf"
fi
if cp "$arg/QuickLook/Preview.pdf" "$trimmed.pdf"