Skip to content

Instantly share code, notes, and snippets.

View davidroman0O's full-sized avatar
🏠
Working from home

David Roman davidroman0O

🏠
Working from home
  • Ubisoft
  • Montréal, Canada
View GitHub Profile
@davidroman0O
davidroman0O / readme.md
Last active November 22, 2023 13:07
Delete all "Watch later" videos

It's semi-automated at worse, automated at best

open browser

open inspector on console

copy paste, enter

wait

@davidroman0O
davidroman0O / README.md
Created March 24, 2022 16:20 — forked from josephg/README.md
Getting Zig compiling to WASM

In case anyone else wants to play with Zig on webassembly, here's what you need to do to make it work on a mac today.

1. Get LLVM 7 compiled with webassembly support.

You'll need LLVM to output to the WASM target. This has just been added by default in trunk, so if LLVM >7 is available, you might be able to just brew install llvm.

If you have wasm support already you should see:

$ llc --version
@davidroman0O
davidroman0O / css-size-comparison.csv
Created February 27, 2022 02:30 — forked from shqld/css-size-comparison.csv
A comparison of CSS library sizes.
We can make this file beautiful and searchable if this error is corrected: Unclosed quoted field in line 8.
Caution,Name,Version,Size (raw),Size (minified),Size (gzipped),"Site","URL",Remarks
,Milligram,v1.4.1,11 kb,9.0 kb,2.3 kb,"https://milligram.io/","https://cdnjs.cloudflare.com/ajax/libs/milligram/1.4.1/milligram.min.css",
,Skelton,v2.0.4,11 kb,5.8 kb,1.6 kb,"http://getskeleton.com/","https://cdnjs.cloudflare.com/ajax/libs/skeleton/2.0.4/skeleton.min.css",
,Material Design Lite,v1.3.0,146 kb,62 kb,12 kb,"https://getmdl.io/","https://code.getmdl.io/1.3.0/material.min.js",
,Foundation,v6.6.3,168 kb,133 kb,17 kb,"https://get.foundation/","https://cdn.jsdelivr.net/npm/foundation-sites@6.6.3/dist/css/foundation.min.css",
,Materialize,v1.0.0,179 kb,141 kb,21 kb,"https://materializecss.com/","https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/css/materialize.min.css",
,Bootstrap,v4.6.0,199 kb,161 kb,24 kb,"https://getbootstrap.com/docs/4.6/","https://cdn.jsdelivr.net/npm/bootstrap@4.6.0/dist/css/bootstrap.min.css",
,Bootstrap,v5.1.2,206 kb,164 kb,24 kb,"https://getbootstrap.com/","https://cdn.jsdelivr.net/npm/b
@davidroman0O
davidroman0O / pipeline.js
Created August 15, 2019 21:01
Pipelines with bluebird
const Promise = require("bluebird");
// It's that simple
const Pipeline = async a => {
return await Promise.reduce(
a.slice(1, a.length),
(ac, cv) => {
return cv(ac);
},
a[0]
@davidroman0O
davidroman0O / Dockerfile
Created April 16, 2019 19:35
Moleculer Jest Setup for docker-compose unit testing
FROM node:8-alpine
ENV NODE_ENV=production
RUN mkdir /app
WORKDIR /app
COPY package.json .
RUN npm install --production
@davidroman0O
davidroman0O / LazyView.js
Last active May 8, 2017 22:26
React Native Lazy View
import React from 'react';
import {View } from 'react-native';
/*
@description: for lazy people who don't give a fuck on performances
it's working for only ONE child!
<LazyView topleft|top|topright|left|center|right|bottomleft|bottom|right>
<View
style={{
@davidroman0O
davidroman0O / Commands.sh
Created April 29, 2017 19:14
Medium Commands
npm install
yarn start
@davidroman0O
davidroman0O / RenderMapView.js
Created April 29, 2017 19:06
Medium Cluster
import Expo from 'expo';
render() {
return (
<View
style={{
flex: 1
}}
@davidroman0O
davidroman0O / Cluster usage.js
Last active April 29, 2017 19:05
Medium Gist
import supercluster from 'supercluster';
componentWillReceiveProps(nextProps) {
const markers = this.createMarkersForLocations(nextProps);
if (markers && Object.keys(markers)) {
const clusters = {};
this.setState({
mapLock: true
});