I hereby claim:
- I am quantumsheep on github.
- I am quantumsheep (https://keybase.io/quantumsheep) on keybase.
- I have a public key ASDhoA1jmGOWPj7gwYyIqMaNDsM9zFgl2GqhdfEP89xEEQo
To claim this, I am signing this object:
// List all files in a directory in Node.js recursively in an asynchronous fashion | |
const fs = require('fs').promises; | |
const path = require('path'); | |
const walk = async (dir, filelist = []) => { | |
const files = await fs.readdir(dir); | |
for (file of files) { | |
const filepath = path.join(dir, file); | |
const stat = await fs.stat(filepath); |
/** | |
* | |
* @param {number} percents / 100 | |
* @param {number} length | |
* @param {object} phases | |
* @param {string} phases.filled | |
* @param {string} phases.empty | |
* @param {string} phases.partial | |
*/ | |
function progress_bar(percents, length = 10, phases = { filled: '█', empty: '░', partial: '▓' }) { |
I hereby claim:
To claim this, I am signing this object:
/** | |
* @param {number} start | |
* @param {number} end | |
* @returns {number[]} | |
*/ | |
function range(start, end) { | |
if (start > end) return []; | |
return [...Array(end - start + 1).keys()].map(i => i + start); | |
} |
#include <stdio.h> | |
int flen(FILE *f) | |
{ | |
int len; | |
int origin = ftell(f); | |
fseek(f, 0, SEEK_END); | |
len = ftell(f); |
// ==UserScript== | |
// @name Vodeclic bot | |
// @version 0.5 | |
// @description Bot for vodeclic | |
// @author QuantumSheep | |
// @include *://*.vodeclic.com/*/formation/* | |
// @include *://*.vodeclic.com/*/course/* | |
// ==/UserScript== | |
(function() { |
$('#summernote').summernote({ | |
callbacks: { | |
onImageUpload: function(image) { | |
if((image[0].size/1024/1024) > 1) { | |
alert("Merci de déposer une image inférieure à 1 Mo, sinon uploadez-là sur un site d'hébergement d'image ou sur PETERPAN et utilisez la fonction image."); | |
return false; | |
} else { | |
var file = image[0]; | |
var reader = new FileReader(); | |
reader.onloadend = function() { |
(function () { | |
const interval = { | |
min: 15000, | |
max: 30000, | |
} | |
function add_random() { | |
const peoples = document.querySelectorAll("button[id^=ember]:not(.artdeco-button--muted)") | |
const i = Math.floor(Math.random() * peoples.length) |
#include <llvm/IR/DerivedTypes.h> | |
#include <llvm/Transforms/Utils/FunctionComparator.h> | |
bool equals(const llvm::Type *left, const llvm::Type *right) | |
{ | |
auto left_ptr = llvm::dyn_cast<llvm::PointerType>(left); | |
auto right_ptr = llvm::dyn_cast<llvm::PointerType>(right); | |
if (left == right) | |
return true; |
xrandr --newmode "1920x1080" 173.00 1920 2048 2248 2576 1080 1083 1088 1120 -hsync +vsync | |
xrandr --addmode Virtual1 1920x1080 | |
xrandr --output Virtual1 --mode 1920x1080 |