Skip to content

Instantly share code, notes, and snippets.

View seveibar's full-sized avatar
💭
twitter dms or mentions to get my attenion!

Severin Ibarluzea seveibar

💭
twitter dms or mentions to get my attenion!
View GitHub Profile
@seveibar
seveibar / prebuilt-with-fake.tsx
Created May 26, 2023 23:54
Seam prebuilt component using fake, read-only server
import { SeamProvider, DeviceTable } from "@seamapi/react"
export default () => {
return (
<SeamProvider
endpoint="https://react.seam.co/api"
clientSessionToken="seam_cst1_0000"
>
<DeviceTable />
</SeamProvider>
const dictionary = {
word1List: [
"afraid",
"ancient",
"angry",
"average",
"bad",
"big",
"bitter",
"black",
# This file has been auto-generated by i3-config-wizard(1).
# It will not be overwritten, so edit it as you like.
#
# Should you change your keyboard layout some time, delete
# this file and re-run i3-config-wizard(1).
#
# i3 config file (v4)
#
# Please see https://i3wm.org/docs/userguide.html for a complete reference!

Seam Connect NoiseAware Integration Guide

This guide is for Seam Connect customers who are interested in enabling their users (airbnb hosts, homeowners etc.) to grant access to their NoiseAware devices. By using Seam Connect, customers can see all of a host's devices, see noise events, and add, change or remove noise thresholds.

Getting Started

All requests to the Seam API should have the following header:

@seveibar
seveibar / presign_post_message.rb
Last active February 13, 2021 22:43
Presigning ReceiveMessage and SendMessage SQS Queue Operations in Ruby
require "httparty"
require("aws-sdk")
message_body = { "hello": "world" }
msg_body_encoded = CGI.escape(message_body.to_json)
signer = Aws::Sigv4::Signer.new(
service: "sqs",
region: "us-east-1",
access_key_id: "ACCESS KEY ID",
{ "title": "Test JSON", "someNumbers": [1,2,3] }
set runtimepath^=~/.vim runtimepath+=~/.vim/after
let &packpath=&runtimepath
source ~/.vimrc
call plug#begin("~/.vim/plugged")
" Plugin Section
Plug 'dracula/vim'
Plug 'scrooloose/nerdtree'
Plug 'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --all' }
Plug 'junegunn/fzf.vim'
@seveibar
seveibar / init.vim
Created October 16, 2020 23:46
seveibar's .config/nvim/init.vim
set runtimepath^=~/.vim runtimepath+=~/.vim/after
let &packpath=&runtimepath
source ~/.vimrc
call plug#begin("~/.vim/plugged")
" Plugin Section
Plug 'dracula/vim'
Plug 'scrooloose/nerdtree'
Plug 'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --all' }
Plug 'junegunn/fzf.vim'
@seveibar
seveibar / LinkOverride.js
Last active March 23, 2022 04:25
React Override Link onClick for all Hyperlink Elements
// @flow
/*
Overrides the behavior of <a /> tags for all children.
Use it in your App.js to make it easier for your single page web application to route without reloading, e.g.
// App.js
class App extends Component {
render() {
return <LinkOverride onClickLink={(url) => { dispatch({type: 'PUSH_ROUTE', url}) }}>
@seveibar
seveibar / serial-resolve.js
Created April 14, 2017 23:37
Resolve promises serially, with a given number in parallel
// @flow
export const serialResolve = (functionsReturningPromises: Array<() => Promise<any>>, parallelTasks: number) => new Promise((resolve, reject) => {
let tasksStarted = 0;
// Create empty results array
const results = Array.from(functionsReturningPromises, () => null);
const totalFunctions = functionsReturningPromises.length;
// When a promise completes, set the correct results index and start any additional tasks
let completedPromises = 0;