Skip to content

Instantly share code, notes, and snippets.

View serbiant's full-sized avatar

Vladimir serbiant

  • Shypple
  • Rotterdam, the Netherlands
View GitHub Profile
@serbiant
serbiant / [1] convertToMarkup.js
Created September 22, 2021 12:36 — forked from nathansmith/[1] convertToMarkup.js
Handy utilities for dealing with `<div contenteditable="true">` areas.
// Helpers.
import { convertToText } from './';
/*
You would call this when receiving a plain text
value back from an API, and before inserting the
text into the `contenteditable` area on a page.
*/
const convertToMarkup = (str = '') => {
return convertToText(str).replace(/\n/g, '<br>');
class Dirk < ActiveDeveloper::ProactiveDeveloper
extend Transport::Bike
extend Editor::VIM
extend Dutch
# particular things...
extend Github::PullRequest
extend Developer::Actions
extend JIRA::Workload
extend Google::Meet
console.log('here we go!');
var App = {};
var client = 'r-fNxy-djik7RS--qCOxbQ',
access_token = 'dYGeW4UHUlAuiBP8sASs8w',
uid = '%2B79885647988';
App.cable = ActionCable.createConsumer('/cable?access-token=' + access_token + '&client='+ client +'&uid=' + uid);
App.room = App.cable.subscriptions.create({
channel: "TrainingChannel",
@serbiant
serbiant / install_ffmpeg.sh
Created June 8, 2017 23:08
Installing FFMPEG at Ubuntu 14.04
#!/bin/bash
mkdir ~/.src
cd ~/.src
sudo apt-get update
sudo apt-get upgrade
sudo apt-get remove x264 ffmpeg
apt-get install make automake g++ bzip2 unzip patch subversion git yasm