Skip to content

Instantly share code, notes, and snippets.

@connor11528
connor11528 / UploadResume.vue
Last active January 20, 2022 16:03
Vue.js component for uploading a file to Amazon S3
<template>
<div class="row text-center">
<div class="col-md-12 mb-3">
<label>Upload your resume</label>
<small>(.pdf or .docx file please)</small>
</div>
<div class="col-4 offset-4 text-center mb-3">
<!-- Upload resume button. Trigger function on browser file upload -->
<input type="file" name="resume" @change="uploadResume" class="form-control-file">
</div>
@connor11528
connor11528 / companies_that_use_Reactjs.tsv
Last active April 14, 2024 01:23
List of companies that use React.js in their tech stack and have at least one physical office in the SF Bay Area
We can make this file beautiful and searchable if this error is corrected: It looks like row 6 should actually have 6 columns, instead of 4 in line 5.
Company Name Website Year Founded Company Description Headquarters Address Location
Adobe http://www.adobe.com/ 1982 Adobe is changing the world through digital experiences. We help our customers create, deliver and optimize content and applications. 601 Townsend St, San Francisco, CA 94103 San Francisco
AdRoll https://www.adroll.com/ 2006 AdRoll is the Growth Platform that makes your display, social, and email advertising work together to drive more revenue, with less effort from you. 2300 Harrison St 2nd floor, San Francisco, CA 94110 San Francisco
Airbnb https://www.airbnb.com/ 2008 Book unique homes and experiences all over the world. 999 Brannan St, San Francisco, CA 94103 San Francisco
Algolia https://www.algolia.com/ 2012 Algolia's hosted search API helps product builders create lightning-fast, highly relevant search to connect their users with what matters 589 Howard St, San Francisco, CA 94105 San Francisco
Allbirds https://www.allbirds.com 2014 The world's most comfortable shoes, made with natural m
@connor11528
connor11528 / addSalesperson.js
Created April 25, 2019 22:17
Netlify function to add a salesperson to a Fauna database
require('dotenv').config()
const fauna = require('faunadb');
const q = faunadb.query;
const client = new faunadb.Client({
secret: process.env.FAUNADB_SERVER_SECRET
});
exports.handler = (event, context, callback) => {
@connor11528
connor11528 / bootstrap-fauna-database.js
Last active April 25, 2019 22:31
Script to create classes for your FaunaDB database
require('dotenv').config()
/* bootstrap database in your FaunaDB account */
const readline = require('readline')
const faunadb = require('faunadb')
const chalk = require('chalk')
const insideNetlify = insideNetlifyBuildContext()
const q = faunadb.query
if (!process.env.FAUNADB_SERVER_SECRET) {
@connor11528
connor11528 / addSalesperson.js
Last active April 23, 2019 23:18
React.js component for sending a POST request
import React from "react"
import axios from "axios"
export default class AddSalesperson extends React.Component {
state = {
name: '',
}
submit = event => {
event.preventDefault();
@connor11528
connor11528 / CandidateController.php
Last active January 20, 2019 21:22
Laravel backend for adding tags to the Employbl candidate application
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\User;
use Spatie\Tags\Tag;
class CandidateController extends Controller
{
@connor11528
connor11528 / CandidateProfileForm.vue
Last active January 20, 2019 21:23
Form for the update candidate job search profile on Employbl
<template>
<div class="row">
<div class="col-7 offset-2">
<div class="row">
<div class="col-md-12 mb-3">
<label>Summary</label>
<textarea class="form-control" v-model="candidateInfo.summary"
placeholder="What do you like to do?"></textarea>
<div v-if="errors && errors.summary" class="text-danger">{{ errors.summary[0] }}</div>
</div>
@connor11528
connor11528 / CompaniesMap.vue
Last active August 1, 2018 23:51
Employbl companies map
<template>
<div id="companies-map-container">
<div id="companies-map" class="h-500"></div>
</div>
</template>
<style scoped>
#companies-map {
margin: 0 auto;
background: gray;
@connor11528
connor11528 / JobListingList.vue
Created August 1, 2018 23:44
render and search a list with Vue.js
<template>
<section>
<input type="text" class="form-control" placeholder="Search by job title" v-model="searchTerm">
<div class="list-group mt-2" :style="{ height: this.search_window_height + 'px' }">
<div class="list-group-item list-group-item-action flex-column align-items-start" v-for="jobListing in filteredJobListings">
<div class="d-flex w-100 justify-content-between">
<h5 class="mb-1">
{{ jobListing.title }}
@connor11528
connor11528 / ScapeGreenhouse.php
Last active January 6, 2024 21:50
Artisan command to scrape jobs from Greenhouse.io
<?php
namespace App\Console\Commands;
use App\Company;
use App\JobListing;
use Illuminate\Console\Command;
use Goutte\Client;
class ScrapeGreenhouse extends Command