Skip to content

Instantly share code, notes, and snippets.

🎯
Focusing

Egor Gumenyuk boo1ean

🎯
Focusing
Block or report user

Report or block boo1ean

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@boo1ean
boo1ean / manjaro-change-default-browser.md
Created Apr 15, 2019
manjaro-change-default-browser.md
View manjaro-change-default-browser.md

Update $BROWSER env var

vim ~/.profile

export BROWSER=/usr/bin/google-chrome-stable

Remove mime bindings

@boo1ean
boo1ean / bluetooth-headphones-on-linux.md
Last active Apr 15, 2019
bluetooth-headphones-on-linux
View bluetooth-headphones-on-linux.md
yay -S pulseaudio-bluetooth bluez-utils
sudo vim /etc/bluetooth/main.conf 

ControllerMode = bredr
AutoEnable=true
View gist:bab08c255bb008d3a0ea0841f07eb514
printWarning @ warning.js:33
warning @ warning.js:57
handleElement @ ReactDOMNullInputValuePropHook.js:25
onBeforeUpdateComponent @ ReactDOMNullInputValuePropHook.js:36
callHook @ ReactDebugTool.js:25
emitEvent @ ReactDebugTool.js:37
onBeforeUpdateComponent @ ReactDebugTool.js:324
receiveComponent @ ReactReconciler.js:112
updateChildren @ ReactChildReconciler.js:107
_reconcilerUpdateChildren @ ReactMultiChild.js:204
View wat.rs
fn sort(list: &mut [i32]) -> &mut [i32] {
list[0] = list[1];
list
}
fn main() {
println!("Hello, world!");
let mut v = vec![1, 2, 3];
let q = sort(&mut v);
q[2] = q[1];
View 1.js
const cars = [
{
title: 'Opel',
power: 100,
},
{
title: 'Audi',
power: 200,
},
{
View edit.js
const EditPage = (props) => {
switch (true) {
case editPlatformNoData(props): return fetchPlatform(props)
case editPlatformHasData(props): return <EditForm onSubmit={props.updatePlatform} initialValues={props.data} />
case newPlatform(props): return <EditForm onSubmit={props.createPlatform} />
case error(props): return <h2>нельзя такое редактировать</h2>
default: throw new Error('Undefined state')
}
View service-class.js
class Math {
add(a, b) {
return a + b;
}
sub(a, b) {
return a - b;
}
}
View service.js
module.exports = {
sum: (a, b) => {
return a + b;
},
sub: (a, b) => {
return a - b;
}
}
View README.md

Join channel

Join to channel using specified identifier. After joining user will remain active in channel until manual leave request

Request

POST /channels/{channel_name}/join
View README.md

Join channel

Join to channel using specified identifier. After joining user will remain active in channel until manual leave request

Request

POST /channels/{channel_name}/join
You can’t perform that action at this time.