View queries.ex
iex> Ecto.Adapters.SQL.query!(MyApp.Repo, "select 1")
%Postgrex.Result{
columns: ["?column?"],
command: :select,
connection_id: 7250,
num_rows: 1,
rows: [[1]]
}
View readme.md

Create a bot, gets its API token, get the ID of the channel.

https://core.telegram.org/bots/api#sendmessage

$ curl -X POST \
       -H 'Content-Type: application/json' \
       -d '{"chat_id": "541123411", "text": "This is a test from curl", "disable_notification": true}' \
       https://api.telegram.org/bot$TELEGRAM_BOT_TOKEN/sendMessage
View usersettings.json
{
"[fish]": {
"editor.tabSize": 2,
"editor.insertSpaces": true,
"editor.detectIndentation": false,
"editor.trimAutoWhitespace": true,
},
}
View keybase.md

Keybase proof

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:

View notable-features-of-python.md

James Powell - james@nycpython.com

itertools

  • useful for dealing with iterators & iterables
  • e.g. chain (for appending lists and tuples, instead of +)
  • also includes algorithms, e.g. takewhile (e.g. takewhile fibonacci < 50)

generators

View Gemfile
source 'http://rubygems.org'
gem 'plexus'
gem 'gratr' # dependency of plexus to visualize graphs
View sample.io
# Hello world
"Hello world!" print
# Factorial
factorial := method(n, if(n == 1, 1, n * factorial(n - 1)))
99 bottles of beer
bottle := method(i,
View loading.sh
#!/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"
View irc.md

Register yourself

Choose a nick

/nick <newnick>

Register the nick

/msg NickServ REGISTER <password> <youremail@example.com>