Skip to content

Instantly share code, notes, and snippets.

View peutetre's full-sized avatar
in a loop, building momo.coach and audio2text.email

Paul Panserrieu peutetre

in a loop, building momo.coach and audio2text.email
View GitHub Profile
@peutetre
peutetre / keybase.md
Last active August 29, 2015 14:04
keybase.md

Keybase proof

I hereby claim:

  • I am peutetre on github.
  • I am 42loops (https://keybase.io/42loops) on keybase.
  • I have a public key whose fingerprint is 3B6E 1233 6B99 BC65 D9AA 8676 AF92 07BD 2457 5A92

To claim this, I am signing this object:

var browserify = require('browserify');
var path = require('path');
var fs = require('fs');
var tmp = require('tmp');
var b = browserify();
var output = path.join(__dirname, 'test.js');
var src = path.join(__dirname, 'main.js');
var ws = fs.createWriteStream(output);
tmp.file({ prefix: 'settings-', postfix: '.json' }, function (err, tmpFilePath) {
@peutetre
peutetre / mixit
Last active August 29, 2015 14:16
mixit 2015
Titre : Applications mobiles hybrides avec tarifa.
Résumé : Découvrir la chaîne d'outils tarifa basée sur Apache Cordova
et dompter le workflow de développement des applications mobiles hybrides.
Vous le savez tous, Apache Cordova est la principale plateforme open source
pour construire des applications mobiles hybrides écrites en HTML, CSS et JavaScript.
Nous l'avons encapsulé dans une autre ligne de commande - tarifa.
Pourquoi le faire et comment l’utiliser ?
/*
* cat curve
*/
var n = 60,
cos = Math.cos,
sin = Math.sin,
floor = Math.floor,
PI = Math.PI,
cat = function cat(t) {
var cube = create({
width:'100px',
height:'100px',
backgroundColor:
'rgb(253,107,107)',
top: (height/2 - 50) + 'px',
left: (width/2 - 50) + 'px',
opacity: 0
});
var before = " #star:before{ border-bottom: 80px solid rgb(253,107,107); border-left: 30px solid transparent; border-right: 30px solid transparent; position: absolute; height: 0; width: 0; top: -45px; left: -65px; display: block; content: ''; -webkit-transform: rotate(-35deg); -moz-transform: rotate(-35deg); -ms-transform: rotate(-35deg); -o-transform: rotate(-35deg);}";
//https://css-tricks.com/examples/ShapesOfCSS/
var after = "#star:after { position: absolute; display: block; color: rgb(253,107,107); top: 3px; left: -105px; width: 0px; height: 0px; border-right: 100px solid transparent; border-bottom: 70px solid rgb(253,107,107); border-left: 100px solid transparent; -webkit-transform: rotate(-70deg); -moz-transform: rotate(-70deg); -ms-transform: rotate(-70deg); -o-transform: rotate(-70deg); content: ''; }";
var style = document.createElement('style');
style.type = 'text/css';
@peutetre
peutetre / dump.json
Last active August 29, 2015 14:24
tarifa.json
{
"name": "few",
"id": "few.few",
"description": "",
"version": "0.0.0",
"platforms": [
"[email protected]",
"[email protected]",
"[email protected]",
"[email protected]"
@peutetre
peutetre / package.json
Created August 11, 2015 14:01
ionic package.json vs tarifa tarifa.json
{
"name": "myapp",
"version": "1.0.0",
"description": "myApp: An Ionic project",
"dependencies": {
"gulp": "^3.5.6",
"gulp-sass": "^1.3.3",
"gulp-concat": "^2.2.0",
"gulp-minify-css": "^0.3.0",
"gulp-rename": "^1.2.0"
@peutetre
peutetre / tarifa.json
Created October 15, 2015 08:55
cat ~/.config/configstore/tarifa.json
{
"author_name": "Plop Plop",
"author_email": "[email protected]",
"author_href": "http://42loops.com",
"keystore_path": "/Users/toto/mysuperkey.keystore",
"hockeyapp_token": "dsadsadsadsadsadsa",
"apple_id": "[email protected]",
"apple_developer_team": "XXXXXXXXXXX",
"plugins": [
{
@peutetre
peutetre / machine.js
Created September 8, 2019 19:58
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions