Make sure you have installed the following commands:
- swaymsg
- jq
- slurp
- awk
The discord.js interactions PR has been merged, and d.js master (v13 dev) now has proper support for slash commands!
Official resources:
# The following comments fill some of the gaps in Solargraph's understanding of | |
# Rails apps. Since they're all in YARD, they get mapped in Solargraph but | |
# ignored at runtime. | |
# | |
# You can put this file anywhere in the project, as long as it gets included in | |
# the workspace maps. It's recommended that you keep it in a standalone file | |
# instead of pasting it into an existing one. | |
# | |
# @!parse | |
# class ActionController::Base |
#!/bin/bash | |
# Enter your vpn host here | |
CSD_HOSTNAME= | |
if [[ -z ${CSD_HOSTNAME} ]] | |
then | |
echo "Define CSD_HOSTNAME with vpn-host in script text. Exiting." | |
exit 1 | |
fi |
defmodule Poker do | |
## Rank a poker hand | |
## | |
## Card is {:suit, value}, e.g. {:heart, 3} | |
## Hand is a list of 5 cards | |
## | |
## Poker.rank [{:heart, 10}, {:club, 11}, {:heart, 9}, {:diamond, 12}, {:heart, 13}] | |
## >> :straight | |
def rank(hand) do |
The world, as we know it, has fallen into an apocalyptic scenario. The "Influenzer T-Virus" (a.k.a. Twiter Virus) is transforming human beings into stupid beasts (a.k.a. Zombies), hungry to cancel humans and eat their limbs.
You, the last survivor who knows how to code, will help the resistance by deploying a system to connect the remaining humans. This system will be essential to detect new infections and share resources between the members.
var runner = require('child_process'); | |
runner.exec( | |
'php -r \'include("settings.php"); print json_encode($databases);\'', | |
function (err, stdout, stderr) { | |
var connection = JSON.parse(stdout).default.default; | |
console.log(connection.database); | |
// result botdb | |
} |