Skip to content

Instantly share code, notes, and snippets.

@montycheese
montycheese / megaphone_guide.md
Last active July 8, 2019 22:15
Megaphone Guide

Megaphone User Guide

Play

The default tab is called “Play” and it is where users can type their text-to-speech message. They can additionally select the language as well as gender that they want to use to speak their message. Once they have typed out a message and selected their language & gender, they click the Submit button. The extension validates the message and ensures that it does not contain any profanity. After the message is deemed appropriate, Megaphone extension initiates a bits transaction and once the user confirms, the text-to-speech message is played on each of the viewer’s streams for that channel. Also, a chat message is sent to the chat room to inform users on who sent the current broadcasting message.

Leaderboard

The leaderboard tab ranks the viewers who have spent the most bits broadcasting messages to the channel.

Settings

The settings tab allow users to adjust the volume as well as mute the broadcast messages.

@LKS90
LKS90 / cheatsheet.md
Last active June 3, 2024 14:35
Cheatsheet for LaTex, using Markdown for markup. I use this with atom.io and markdown-preview-plus to write math stuff

Description

Cheatsheet for LaTex, using Markdown for markup. I use this with atom.io and 📦markdown-preview-plus to write math stuff. 📦keyboard-localization is necessary when using an international layout (like [swiss] german).

Further Reference and source: ftp://ftp.ams.org/pub/tex/doc/amsmath/short-math-guide.pdf

Example expressions / functions

@josephilipraja
josephilipraja / countries.php
Last active April 17, 2024 05:42
List of Countries with Country code & Telephone (Dial) Code as a PHP Array. Bonus: PHP function to list all Countries as HTML Select Tag Options with their 2 character Country code as values
<?php
$countryArray = array(
'AD'=>array('name'=>'ANDORRA','code'=>'376'),
'AE'=>array('name'=>'UNITED ARAB EMIRATES','code'=>'971'),
'AF'=>array('name'=>'AFGHANISTAN','code'=>'93'),
'AG'=>array('name'=>'ANTIGUA AND BARBUDA','code'=>'1268'),
'AI'=>array('name'=>'ANGUILLA','code'=>'1264'),
'AL'=>array('name'=>'ALBANIA','code'=>'355'),
'AM'=>array('name'=>'ARMENIA','code'=>'374'),
'AN'=>array('name'=>'NETHERLANDS ANTILLES','code'=>'599'),