Skip to content

Instantly share code, notes, and snippets.

View fuunnx's full-sized avatar
💭
🤯

Géraud Henrion fuunnx

💭
🤯
View GitHub Profile

Estimation

This document is an attempt to pin down all the things you don't think about when quoting for a project, and hopefully provide a starting point for some kind of framework to make quoting, working and delivering small-medium jobs more predictable and less stressful.

Contents

@tabatkins
tabatkins / pipeline.md
Last active October 17, 2022 22:40
Comparing the three pipeline proposals

We've been deadlocked for a while on the pipeline operator proposal, for a few reasons. Partially it's just low implementor interest, as this is fundamentally just syntactic sugar, but also because there are three competing proposals and the proponents of each haven't been convinced by the others yet.

In this essay I hope to briefly outline the problem space, summarize the three proposals, and talk about what's gained/lost by each of them. (Spoiler: they're all nearly identical; we're arguing over very small potatoes.)

@fuunnx
fuunnx / ..Scripts and configs.md
Last active February 17, 2025 08:41
Scripts and configs

Mon setup

  • vscode, spotify, git, slack, discord

  • fira code

  • sync vs code settings

  • tabby

  • diodon (gestionnaire de presse papier) + raccourci clavier

  • gestionnaire de fichiers avec des colonnes de Miller : patheon-files

  • activation smooth scroll dans vs code et dans ff

@jiraguha
jiraguha / deno-script.md
Last active November 25, 2024 10:50
Deno for scripting

Deno for scripting

Foreword

It is largely inspired by kscript. The idea is to leverage the scripting abilities of javascript using Deno. I feel that scripting can be so much fun with Deno as:

  • It can import modules from any location on the web,
  • It is secure by default. Imported module can run in sandbox.
  • It is Supports TypeScript out of the box.
  • It is much more that Node
@mrehayden1
mrehayden1 / Touch.ts
Last active August 18, 2018 09:57
Mostjs Drag and Drop for touch devices.
import { Stream } from 'most';
import * as most from 'most';
type Maybe<T> = null | T
type Position = [number, number]
export function dragPositionStream(
touchStart$: Stream<TouchEvent>,
touchMove$: Stream<TouchEvent>,
touchEnd$: Stream<TouchEvent>
import React from "react";
import { render } from "react-dom";
import Task from "data.task";
import TaskComponent from "./TaskComponent";
const users = [
{ id: 1, name: "User A", points: 45 },
{ id: 2, name: "User B", points: 22 },
{ id: 3, name: "User C", points: 79 },
{ id: 4, name: "User D", points: 54 }
@alexlafroscia
alexlafroscia / README.md
Last active August 6, 2018 19:13
Skate.js ShadyCSS Mixin

ShadyCSS Skate.js Mixin

Out of the box, Skate.js doesn't work that well with ShadyCSS. This is a mixin that helps bridge the gap.

Usage

The usage example below assumes you're using a build tool like Webpack to transform a CSS file into a string when loaded.

import Component from 'skatejs';
@ericelliott
ericelliott / cancellable-wait.js
Last active October 8, 2019 08:06
Cancellable wait -- an ES6 promise example
const wait = (
time,
cancel = Promise.reject()
) => new Promise((resolve, reject) => {
const timer = setTimeout(resolve, time);
const noop = () => {};
cancel.then(() => {
clearTimeout(timer);
reject(new Error('Cancelled'));
@oxpa
oxpa / webpack.config.js
Last active January 14, 2020 16:26
webpack configuration suitable for static content generator plugin and chunks
var path = require('path');
var StaticSiteGeneratorPlugin = require('static-site-generator-webpack-plugin')
var ExtractTextPlugin = require('extract-text-webpack-plugin')
var webpack = require('webpack');
var urlloader = require('url-loader');
var React = require("react");
var ReactDom = require("react-dom");
var Redux = require("redux");
@staltz
staltz / helper.js
Created June 6, 2016 10:56
How to use Stanga (https://github.com/milankinen/stanga) as a wrapper, not as a driver
// Generic helper function that takes a main() (the top-level component)
// and wraps it with Stanga logic
function wrapWithStanga(main, initialState) {
return function (sources) {
const modProxy$ = new Subject();
const modelSource = Model(initialState)(modProxy$);
sources.model = modelSource;
const sinks = main(sources);
sinks.model.subscribe(modProxy$);