Skip to content

Instantly share code, notes, and snippets.

@FBosler
FBosler / full.ipynb
Last active July 4, 2021 09:31
dodge_the_lasers
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@FBosler
FBosler / .eslintrc.js
Last active May 24, 2021 17:59
Eslint Config file
// .eslintrc.js
module.exports = {
root: true,
env: {
node: true,
es6: true,
},
parserOptions: { ecmaVersion: 8 }, // to enable features such as async/await
extends: ['eslint:recommended', 'plugin:tailwind/recommended'],
overrides: [
@FBosler
FBosler / .prettier.rc
Created May 23, 2021 11:46
Prettier config file
{
"semi": false,
"singleQuote": true,
"tabWidth": 2,
"useTabs": false
}
@FBosler
FBosler / .env.dev
Last active December 15, 2020 18:00
Backend redirect
#CANONICAL-URL
FRONT_END_URL=http://localhost:3000
DOMAIN=localhost
...
#OTHER STUFF
@FBosler
FBosler / vectorized_valc.py
Created October 26, 2020 17:02
Apply / Lambda
import numpy as np
import pandas as pd
samples = 100000
df = pd.DataFrame(
{
'col1':np.random.randint(2,100,samples),
'col2':np.random.randint(2,100,samples),
'col3':np.random.rand(samples)
}
const sample_data = [{'_id': 'cc7b7a9d8b9642299e3657af08dc0e2a',
'name': 'zCKVZkcKvB',
'net_worth': 45000},
{'_id': '0ec97c94bc654b3a84f47591169f75eb',
'name': 'LxfVwDeufE',
'net_worth': 39000},
{'_id': '1e2ea336022142c3be60ba174433c3d7',
'name': 'ZjhiifKLCp',
'net_worth': 68000},
{'_id': '37ba69d4661744cdb4e6d2f3b66734ec',
import uuid
import random
import string
# GENERATE SAMPLE DATA
sample_data = [{
'_id': uuid.uuid4().hex,
'name': ''.join(random.choices(
[_ for _ in string.ascii_letters],
k=10
IN:
employees = [
{
"name": "John Don't",
"performance": "medium",
"salary": 10000
},
{
"name": "Jane Does",
"performance": "high",
IN:
const employees = [
{
"name": "John Don't",
"performance": "medium",
"salary": 10000
},
{
"name": "Jane Does",
"performance": "high",
import { Container, Row, Col } from 'react-bootstrap';
import { CardRefSteps, CardRefGifts, CardLowerPart } from './styles';
import Link from 'next/link';
const FAQReferral = () => {
return (
<Container>
<Row
style={{
marginTop: '5%',