This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const timer = { | |
pomodoro: 25, | |
shortBreak: 5, | |
longBreak: 15, | |
longBreakInterval: 4, | |
sessions: 0, | |
}; | |
let interval; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const timer = { | |
pomodoro: 25, | |
shortBreak: 5, | |
longBreak: 15, | |
longBreakInterval: 4, | |
}; | |
let interval; | |
const mainButton = document.getElementById('js-btn'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const timer = { | |
pomodoro: 25, | |
shortBreak: 5, | |
longBreak: 15, | |
longBreakInterval: 4, | |
}; | |
let interval; | |
const mainButton = document.getElementById('js-btn'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const timer = { | |
pomodoro: 25, | |
shortBreak: 5, | |
longBreak: 15, | |
longBreakInterval: 4, | |
}; | |
const modeButtons = document.querySelector('#js-mode-buttons'); | |
modeButtons.addEventListener('click', handleMode); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
!Name: Gosper glider gun | |
!Author: Bill Gosper | |
!The first known gun and the first known finite pattern with unbounded growth. | |
!www.conwaylife.com/wiki/index.php?title=Gosper_glider_gun | |
........................O | |
......................O.O | |
............OO......OO............OO | |
...........O...O....OO............OO | |
OO........O.....O...OO | |
OO........O...O.OO....O.O |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Size | Signed | Unsigned | |
---|---|---|---|
8-bit | int8 | uint8 | |
16-bit | int16 | uint16 | |
32-bit | int32 | uint32 | |
64-bit | int64 | uint64 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// src/app.module.ts | |
import { BrowserModule } from '@angular/platform-browser'; | |
import { NgModule } from '@angular/core'; | |
import { AppComponent } from './app.component'; | |
import { NoopAnimationsModule } from '@angular/platform-browser/animations'; | |
import { NbThemeModule, NbChatModule, NbLayoutModule } from '@nebular/theme'; | |
import { NbEvaIconsModule } from '@nebular/eva-icons'; | |
import { AppRoutingModule } from './app-routing.module'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<nb-layout center> | |
<nb-layout-column> | |
<div *ngIf="!channel"> | |
Loading... | |
</div> | |
<nb-chat size="large" *ngIf="channel" title="Stream Chat Angular"> | |
<nb-chat-message | |
*ngFor="let msg of messages" | |
[message]="msg.text" | |
[sender]="msg.user.name" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Component, OnInit } from '@angular/core'; | |
import { StreamChat, ChannelData, Message, User } from 'stream-chat'; | |
import rug from 'random-username-generator'; | |
import axios from 'axios'; | |
@Component({ | |
selector: 'app-root', | |
templateUrl: './app.component.html', | |
styleUrls: ['./app.component.css'] | |
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require("dotenv").config(); | |
const express = require("express"); | |
const cors = require("cors"); | |
const bodyParser = require("body-parser"); | |
const { StreamChat } = require("stream-chat"); | |
const app = express(); | |
app.use(cors()); |