I hereby claim:
- I am dideler on github.
- I am dideler (https://keybase.io/dideler) on keybase.
- I have a public key ASCZ-zKRi4tsgConaYw1Il11KFV67wcFI8IlpG9iYovPIwo
To claim this, I am signing this object:
# At a building there are two queues of people: entering and leaving. | |
# Only one person can go through the turnstile at a time. | |
# A person leaving and a person entering can approach the turnstile at the same time. | |
# Given two integer arrays of times and directions of people, figure out who goes when. | |
# | |
# If no conflict at time t, first come first served | |
# Otherwise, | |
# if gate was not used in previous second, out has priority | |
# if gate was used in previous second to go out, out has priority | |
# if gate was used in previous second to go in, in has priority |
iex> Ecto.Adapters.SQL.query!(MyApp.Repo, "select 1") | |
%Postgrex.Result{ | |
columns: ["?column?"], | |
command: :select, | |
connection_id: 7250, | |
num_rows: 1, | |
rows: [[1]] | |
} |
# Use this script to test that your Telegram bot works. | |
# | |
# Install the dependency | |
# | |
# $ gem install telegram_bot | |
# | |
# Run the bot | |
# | |
# $ ruby bot.rb | |
# |
{ | |
"[fish]": { | |
"editor.tabSize": 2, | |
"editor.insertSpaces": true, | |
"editor.detectIndentation": false, | |
"editor.trimAutoWhitespace": true, | |
}, | |
} |
I hereby claim:
To claim this, I am signing this object:
Official books and tutorials
Community posts
James Powell - [email protected]
source 'http://rubygems.org' | |
gem 'plexus' | |
gem 'gratr' # dependency of plexus to visualize graphs |
# Hello world | |
"Hello world!" print | |
# Factorial | |
factorial := method(n, if(n == 1, 1, n * factorial(n - 1))) | |
99 bottles of beer | |
bottle := method(i, |
#!/usr/bin/env bash | |
for i in {0..12}; do | |
if ! (($i % 4)); then | |
printf "\e[1K\rloading" | |
else | |
printf "." | |
fi | |
sleep 1 | |
done && printf "\e[2K\r" |