Skip to content

Instantly share code, notes, and snippets.

@jalakoo
jalakoo / style.css
Created October 21, 2020 20:35
Sendbird Getting Started UIKit JS - Final
.App {
font-family: sans-serif;
text-align: center;
height: 100vh;
}
@jalakoo
jalakoo / App.js
Created October 21, 2020 20:34
Sendbird Getting Started UIKit JS - Final
import React from "react";
import { App as SendbirdApp } from "sendbird-uikit";
import "sendbird-uikit/dist/index.css";
import "./styles.css";
const APP_ID = "45612F31-4304-4FC4-9FD9-C35B5FCDCE30"
const USER_ID = "Demo User"
export default function App() {
@jalakoo
jalakoo / App.js
Created October 21, 2020 20:33
Sendbird Getting Started UIKit JS - Intermediate 2
import React from "react";
import { App as SendbirdApp } from "sendbird-uikit";
import "sendbird-uikit/dist/index.css";
import "./styles.css";
const APP_ID = "45612F31-4304-4FC4-9FD9-C35B5FCDCE30";
const USER_ID = "Demo User";
@jalakoo
jalakoo / App.js
Created October 21, 2020 20:32
Sendbird Getting Started UIKit JS - Intermediate
import React from "react";
import { App as SendbirdApp } from "sendbird-uikit";
import "sendbird-uikit/dist/index.css";
import "./styles.css";
export default function App() {
return (
<div className="App">
<h1>Hello CodeSandbox</h1>
@jalakoo
jalakoo / style.css
Created October 21, 2020 20:31
Sendbird Getting Started UIKit JS - Start
.App {
font-family: sans-serif;
text-align: center;
}
@jalakoo
jalakoo / index.js
Created October 21, 2020 20:30
Sendbird Getting Started UIKit JS - Start
import React from "react";
import ReactDOM from "react-dom";
import App from "./App";
const rootElement = document.getElementById("root");
ReactDOM.render(
<React.StrictMode>
<App />
</React.StrictMode>,
@jalakoo
jalakoo / App.js
Last active October 21, 2020 20:30
Sendbird Getting Started UIKit JS - Start
import React from "react";
import "./styles.css";
export default function App() {
return (
<div className="App">
<h1>Hello CodeSandbox</h1>
<h2>Start editing to see some magic happen!</h2>
</div>
);
@jalakoo
jalakoo / assign_static_ip.sh
Last active June 3, 2020 18:13
NMCLI Static IP address setup
#!/bin/bash
echo 'Name of connection to make static (select from "nmcli conn show"):'
read CONN_NAME
echo $CONN_NAME
echo
echo 'IP Address to assign:'
read IP_ADDRESS
echo IP_ADDRESS
@jalakoo
jalakoo / alwaysai_create_standalone.sh
Last active May 19, 2020 23:25
Bash script for quickly creating a standalone alwaysai docker image
#!/bin/bash
# If this file is in your project root dir `aai app deploy`
# will copy this to the target device app root directory.
# Then either run this on the target deployment device
# with ./build_standalone.sh by direct ssh or by using
# `aai app shell --no-container` from your dev machine.
# Additional information at https://dashboard.alwaysai.co/docs/application_development/packaging_app_as_docker_image.html
echo 'Image name for standalone file? (no spaces)'
read image_name
@jalakoo
jalakoo / alwaysai_deploy_to_balena.sh
Last active May 19, 2020 23:23
Convenience Bash script for deploying alwaysAI apps to Balena
#!/bin/bash
############
# Simple script for preparing and deploying an alwaysAI app to Balena
# app_name arg should match the name of the application created in Balena
# To make this script runnable: run `chmod +x _name_of_this_script_.sh` in your command line
# NOTE: The entire app should exist in it's own repo.
############
# Extract app name from arg if present