Skip to content

Instantly share code, notes, and snippets.

Avatar

Matti Schneider MattiSG

View GitHub Profile
@MattiSG
MattiSG / Artifacts, practice and knowledge elaboration.md
Created May 29, 2014
“Artefacts, practice & knowledge elaboration” seminary notes
View Artifacts, practice and knowledge elaboration.md

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 Jun 25, 2014
Faire science avec l'incertitude — notes de séminaire
View notes.md

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 Aug 29, 2015
Watai v0.6.2 tutorial
View Tutorial.md

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 Oct 14, 2014
Humble Mozilla Bundle
View index.md

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 Nov 21, 2014
Userscripts for Outlook webmail
View Count unread mails.js
/** 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 Jan 9, 2015
OpenFisca failure stack trace
View gist:91cc73e0f8cf76ddf094
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
View 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 Jul 9, 2012
Drop-in cross-platform OSX “open” functionality
View gist:3075116
#!/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 Aug 25, 2012
Automatically install Symfony 1 and dependencies on OS X
View gist:3471250
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 Aug 25, 2012
Extract PDF preview from Pages document
View pagesPDFextract.sh
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"