Skip to content

Instantly share code, notes, and snippets.

View adamthewan's full-sized avatar

Adam Wan adamthewan

View GitHub Profile
async function syncDailySession(startingAfter) {
/* first we check if the room exists */
const response = await axios(`${config.dailyCoApiUrl}/meetings`, {
method: 'GET',
headers: {
'Content-Type': 'application/json',
authorization: `Bearer ${config.dailyCoApiKey}`,
},
params: {
ongoing: false,
@adamthewan
adamthewan / demo.js
Last active March 5, 2021 11:08
RNNoise Demo
var selected_level;
var selected_type;
var selected_processing;
var noise_level_id=-1;
var noise_type_id=-1;
var noise_processing_id=-1;
var music_pos = -1;
import styled from "styled-components"
const Bubble = styled(div)`
border-radius: 20px;
padding: 8px 15px;
margin-top: 5px;
margin-bottom: 5px;
display: inline-block;
margin-right: 25%;
@adamthewan
adamthewan / AA Inventory Update
Last active March 4, 2016 03:22
FreeCodeCamp Bonfire Snippets
function inventory(arr1, arr2) {
// All inventory must be accounted for or you're fired!
var index;
// checks if the inventories match
function check(name){
for (var i = 0; i < arr1.length; i++){
if (arr1[i][1] === name){
return i;