It's possible to plot text on chart using Plot.Annotation
:
import Graphics.Rendering.Chart
import Graphics.Rendering.Chart.Backend.Cairo
import Data.Default.Class
import Control.Lens
var Bot = require('./index'); | |
var myBot = new Bot({token: '121143906:AAE6pcpBoARNZZjr3fUpvKuLInJ5Eee5Ajk'}); | |
myBot.start(); | |
myBot.on('Hi', function(update) { | |
const message = update.message; | |
const id = message.chat.id; |
export default class Trie { | |
constructor(value = '') { | |
this.value = value; | |
this.children = []; | |
} | |
add(value) { | |
let parent = this; | |
for (let i = 0, len = value.length; i < len; i++) { | |
let key = value.slice(0, i + 1); |
export function p2e(words) { | |
return words.split('').map(letter => { | |
switch (letter) { | |
case "ا": return "a"; | |
case "آ": return "a"; | |
case "ب": return "b"; | |
case "ت": return "t"; | |
case "ث": return "th"; | |
case "ج": return "j"; | |
case "ح": return "h"; |
function isSolved(board) { | |
board = board.join('-').replace(/,/g,''); | |
if(/222|2...2...2|2....2....2|2..2..2/.test(board)) return 2; | |
if(/111|1...1...1|1....1....1|1..1..1/.test(board)) return 1; | |
if(/0/.test(board)) return -1; | |
return 0; | |
} |
module Huffman ( tree, charSequence, decode ) | |
where | |
import Data.List | |
import Data.Function (on) | |
import Node | |
import qualified Data.Map as Map | |
import Data.Maybe | |
import Debug.Trace | |
import Data.Char (chr) |
It's possible to plot text on chart using Plot.Annotation
:
import Graphics.Rendering.Chart
import Graphics.Rendering.Chart.Backend.Cairo
import Data.Default.Class
import Control.Lens
#!/bin/bash | |
# put this in your bin directory, e.g. /usr/bin or ~/.local/bin | |
sleep 20 # update interval | |
# you have to generate a new ACCESS_TOKEN for yourself here (https://github.com/settings/tokens, you only need "notifications" access) and replace the value | |
response=$(curl -s https://api.github.com/notifications?access_token=ACCESS_TOKEN) | |
if [[ $response =~ "{" ]] |
#protonmail #centos #fedora #linux
Currently protonmail bridge for linux is distributed as part of an open beta program, but soon it will be made public (https://protonmail.com/bridge/install).
Consider that the bridge linux client requires a paid protonmail account to work.