Skip to content

Instantly share code, notes, and snippets.

View margauxflores's full-sized avatar
🖐️
Looking for fun projects to help out with!

Margaux Flores margauxflores

🖐️
Looking for fun projects to help out with!
View GitHub Profile
@margauxflores
margauxflores / gulpfile.js
Last active August 28, 2019 14:17
Gulp Boilerplate
// File Paths
var paths = {
input: 'src/**/*',
output: 'dist/',
js: {
input: 'src/js/**/*.js',
output: 'dist/js/'
},
css: {
input: 'src/scss/**/*.scss',
@margauxflores
margauxflores / branch-cleanup.sh
Last active January 19, 2022 02:14
Clean Up Local Git Branches
# For the master branch
# Delete all local branches except master
$ git branch | grep -v "master" | xargs git branch -D
# Delete all local branches except those containing 'master'
$ git branch | grep -ve " master$" | xargs git branch -D
---
# For the develop branch
import { ReCaptchaInstance } from 'recaptcha-v3';
declare module '@vue/runtime-core' {
interface ComponentCustomProperties {
$recaptcha: (action: string) => Promise<string>;
$recaptchaLoaded: () => Promise<boolean>;
$recaptchaInstance: ReCaptchaInstance;
}
}
# TypeScript declaration to use $style in a Vue CSS Modules setup
import Vue from 'vue';
declare module 'vue/types/vue' {
interface Vue {
$style: { [key: string]: string };
}
}
@margauxflores
margauxflores / passingDataThroughVueRouter.vue
Last active July 10, 2023 06:59
Passing Data Through Vue Router
# Use case:
# I have a route where there's an ID parameter and I want to be able to pass data through Vue Router.
# Code setup is Vue + TypeScript using vue-class-component
# Home.vue template section
# This list is rendered after fetching data from an API call.
<template>
<li v-for="item in items" :key="item.id" @click.prevent="goToItem(item)">...</li>
</template>
@margauxflores
margauxflores / AutoMapperProfile.cs
Last active January 2, 2022 20:29
AutoMapper Problem
// Vessel from Models does not work
using Citadel.Models;
// Vessel from Entities works
using Vessel = Citadel.Entities.Vessel;
namespace Citadel
{
public class AutoMapperProfile : Profile
{
var lua_script = (function() {
var tmp;
var G = lua_newtable2(lua_core);
for (var i in lua_libs) {
G.str[i] = lua_newtable2(lua_libs[i]);
}
G.str['arg'] = lua_newtable();
G.str['_G'] = G;
G.str['module'] = function (name) {
lua_createmodule(G, name, slice(arguments, 1));
@margauxflores
margauxflores / README.md
Last active June 25, 2022 13:26
README file

Frobots Client

The frobots_client repository contains the scenic elements that you need to run the FUBARs arena to develop your own Frobots locally.

Getting Started

1. Clone the repository

git clone git@github.com:Bittoku/frobots_client.git

2. Get a Bearer Token

import React from 'react';
import styles from './DocsLayout.module.css';
import { Header, HeaderType } from '~/components/_shared/Header';
type DocsLayoutProps = HasChildrenProps;
export const Layout: React.FC<LayoutProps> = ({ children }) => {
return (
<>
<Header layout={HeaderType.DOCSLAYOUT} />
:root {
--color-secondary: #5c1c93;
--color-alert: #fafa4d;
--color-black: black;
--color-black2: #1a1a1a;
--color-white: white;
--color-grey-1: #141414;
--color-grey-2: #4b4b4b;
--color-grey-3: #adadad;
--color-grey-4: #5a5a5a;