Skip to content

Instantly share code, notes, and snippets.

View veksen's full-sized avatar
:octocat:
Focusing

Jean-Philippe Sirois veksen

:octocat:
Focusing
View GitHub Profile
import { describe, it, expect } from 'vitest'
import { CLAW_WSM, ClawBaseName } from '~/data/claw-bases'
import { calcWhirlwindResult, Weapon } from './whirlwind-speed'
const feralChaos = buildWeapon('Feral Claws', 35)
const suwayyahChaos = buildWeapon('Suwayyah', 35)
const slow = 10 // Arachnid 10 %
function buildWeapon(clawBase: ClawBaseName, ias: number): Weapon {
return {
@veksen
veksen / typo.ts
Created September 26, 2025 17:35
export enum EFontScale {
F7 = "F7",
F6 = "F6",
F5 = "F5",
F4 = "F4",
F3 = "F3",
F2 = "F2",
F1 = "F1",
}
import React from "react"
import useImage from "@hooks/useImage"
import * as S from "./build-image.styles"
const generateSrcSet = (src: string) => {
return Array.from({ length: 20 })
.map((_, index) => index)
.slice(1)
.map((index) => {
const width = index * 100
@veksen
veksen / .env
Created October 16, 2020 04:42 — forked from giladaya/.env
.env support for webpack - based on code from create-react-app
# example of a config value
REACT_APP_EXAMPLE_VAL=1234
// resources/src/gulps-tasks/fa.js
var gulp = require('gulp'),
paths = require('../gulp-paths.js');
gulp.task('fa', function () {
return gulp.src(paths.bower + '/font-awesome/fonts/**.*')
.pipe(gulp.dest(paths.fonts));
});
@veksen
veksen / test
Created February 13, 2016 12:55
/* global describe, it, expect */
import Vue from 'vue'
import Labels from 'src/components/Labels'
describe('Labels.vue', () => {
const vm = new Vue({
template: '<div><labels></labels></div>',
components: { Labels }
.chosen-container {
max-width: 100%;
}
select.form-control + .chosen-container.chosen-container-single .chosen-single {
display: block;
width: 100%;
height: 34px;
padding: 6px 12px;
font-size: 14px;