Skip to content

Instantly share code, notes, and snippets.

const AccessToken = require('twilio').jwt.AccessToken;
const VoiceGrant = AccessToken.VoiceGrant;
// Used when generating any kind of tokens
// To set up environmental variables, see http://twil.io/secure
// Used specifically for creating Voice tokens
const outgoingApplicationSid = 'APd03584f63d77249726a31e44e315398';
const identity = 'user';
check_node_version() {
required_version=$(jq -r '.engines.node' package.json)
current_version=$(node -v)
if [[ $current_version == v$required_version ]]; then
echo "Node version is correct: $current_version"
else
echo "Error: Node version mismatch. Required: $required_version, Installed: $current_version"
fi
}
#!/bin/bash
# Helper functions to print success and error messages
function logSuccess {
echo "✅ $1"
}
function logError {
echo "❌ $1"
#!/usr/bin/env zsh
#
# Custom ZSH Prompt with JIRA Key and Git Status Icons
#
# Author: Ivan Abundis
# License: MIT
# Determine the color based on UID
if [[ $UID -eq 0 ]]; then
NCOLOR="red"
@abundis29
abundis29 / media-query.css
Created October 9, 2019 03:32 — forked from gokulkrishh/media-query.css
CSS Media Queries for Desktop, Tablet, Mobile.
/*
##Device = Desktops
##Screen = 1281px to higher resolution desktops
*/
@media (min-width: 1281px) {
//CSS